Developers

Get started with the TrueGivers API

If you're a CRM, service bureau or other platform, the TrueGivers API lets you clean your customers' donor data from your own code: send their donor records, and read back standardized addresses, USPS NCOA moves, vacant and undeliverable flags, deceased flags and demographics.

Want to see if your CRM is already integrated? Visit our integrations page to get started immediately. You'll be done in minutes, and it won't cost you a dime to see your Data Stewardship Dashboard.

Fastest: let an AI assistant build it with you

Copy this prompt into ChatGPT, Claude, Gemini, Copilot or any coding assistant. It describes the API and guides the assistant through each call, one step at a time, in your language. We test it end to end against our testing site.

You are helping me integrate the TrueGivers API into my code. TrueGivers keeps donor databases clean: it standardizes and validates each donor's mailing address (CASS/DPV), finds people who moved (USPS NCOA) and gives their new address, flags vacant and undeliverable addresses, flags deceased donors, and adds demographics. I am a TrueGivers partner (a CRM, service bureau or other platform): I send my customers' donor records to TrueGivers and read the results back. Work with me step by step: ask me for anything you need, write the code in the language I use, run each step, and show me what came back before moving on.

ABOUT THE API
- Base URL: https://api.truegivers.com/v1/ (the live API is https://api.truegivers.com/v1/ and the free testing API is https://api.testing.truegivers.com/v1/ - build and test against testing first, then switch the base URL setting). Every path below is relative to the base URL.
- Every request sends my partner credentials as HTTP headers: user_name (my TrueGivers sign-in email) and password. (If TrueGivers gave me an API id and key instead, send them as the headers api_id and api_key.) Ask me for them, read them from my configuration or a secrets store, and never print them, log them or write them into the code.
- Send JSON bodies with the header Content-Type: application/json. Leave out fields I don't have rather than sending empty strings.
- Responses are JSON wrapped as {"Records": n, "Page": n, "Total": n, "Data": ...}. Searches (GET organizations, GET .../files, GET .../records) put their rows in Data.Results; a single item (one organization, one file, a submit) is in Data itself. Lists are paged: send page (from 1) and size (the default size is only 10, so always send size); Total is the full count. File dates look like /Date(1795211053557)/ (milliseconds since 1970). Records carry a few date columns (create_date, paid_date) whose text format varies; I don't need them.
- Errors come back as an HTTP status: 401 wrong credentials, 404 an organization or file that isn't mine, 400 with a message (often {"error": "..."}). Stop and show me the status and message. A 5xx status or a network error can be retried a couple of times (every call below is safe to repeat, except that repeating step 3 starts another run once the first one has finished).
- An "organization" is one of my customers (one nonprofit). Each organization has its own records, and every record is one person (a donor), keyed by an individual_id I choose (my own unique id for that person in my system, for example my CRM's constituent id). TrueGivers processes individuals only: every record needs individual_first_name and individual_last_name, and organizations (businesses, foundations) must be left out.
- Billing: submitting (step 3) uses one credit for each individual_id the organization has never submitted before; re-processing records already submitted is free. On the testing API credits are free. On the live API, ask me before the first submit for a customer.

THE WORKFLOW
1. Find or create the organization
   Each organization carries my own customer id as its Identifier. Look for it first: GET organizations?identifier={my customer id}&page=1&size=100 and take the result in Data.Results whose Identifier equals my customer id exactly (the search matches part of the identifier). If there is none:
   POST organizations   body {"Name": "Customer name", "Identifier": "my customer id"}
   The response's Data has Id (a GUID), Name, Status ("Active") and Identifier. Keep Data.Id as OrgId and use it in every URL below (saving it next to my customer id saves a lookup next time).
   To change a customer's name or identifier later: PATCH organizations/{OrgId}   body {"Name": "...", "Identifier": "..."} (send only the fields that change).

2. Send the records
   POST organizations/{OrgId}/records
   Body: a JSON array of records - send big lists in batches of up to 1,000. Each record uses these fields (send the ones I have):
     individual_id (required), individual_first_name (required), individual_last_name (required), individual_middle_name, individual_suffix,
     input_address_line_1, input_address_line_2, input_address_city, input_address_state (2-letter code), input_address_postal_code, input_address_country (US only; defaults to US),
     input_email_address, input_phone_number
   The response's Records is the organization's total record count. A request is refused whole (400) if any record has no first or last name, or if an individual_id appears twice in one request - the message names the ids; fix them and send the batch again.
   Sending an individual_id that is already there replaces that record with the new values (it is not added twice), so re-sending a failed batch is safe. Every record sent is processed again at the next submit (free, but it is a full run for those people), so after the first time send only people who are new or whose name or address changed in my system (keep a copy or hash of what was last sent for each person, and don't count TrueGivers' own corrections that I applied in step 6 as a change).
   NCOA moves are only found when the organization has at least 100 different people; smaller lists still get address standardization.
   Records can't be sent while a submit is processing (400 "Organization is not Active" or "already processing") - wait for step 4 to finish.

3. Submit for processing (uses credits on the live API - see Billing)
   PUT organizations/{OrgId}/records?status=Process   (no body)
   The response's Data has Id (the processing file's GUID - save it as FileId before polling) and Status, usually "Imported" (Records is always 1 here: one file; ignore it). If Status is already "Completed", no records were waiting to be processed. Don't retry a submit blindly after a timeout or network error: first look at the newest file (below) - if it is newer than the newest file before the submit, that submit worked; keep it and go to step 4. If the FileId is lost, GET organizations/{OrgId}/files?page=1&size=10 lists the organization's files newest first (Data.Results, each with Id, Status, CreateDate, RecordCount).
   If the balance is short, TrueGivers buys the missing credits with the card saved on the partner account. If the answer is 400 "You need N credits...", there are not enough credits and no saved card - show me the message and stop.

4. Wait for processing
   GET organizations/{OrgId}/files/{FileId} every 60 seconds until Data.Status is "Completed" (Data has Id, Name, Status, CreateDate and IsPadded; no record count). It shows "Imported" while it waits in the processing queue (usually most of the wait), then steps such as "Validating" and "Matching", then "Completed"; 100 records took 5 to 17 minutes on testing. Poll the file, not the organization: the organization's own Status stays "Active". Give up after 90 minutes and tell me. Stop if Status is "Errored" or "Cancelled".

5. Read the summary report
   GET organizations/{OrgId}/files/{FileId}/reports
   Data.Items is a list of {Name, Item, Value, IsPercentage, IsError}: Name is the group (Summary, Address Types, Calculated Potential Savings, and Move Types when someone moved) and Item the line ("Records Processed", "Total NCOA Moves", "DPV Deliverable Records", ...). Show me the Summary lines. "Total NCOA Moves" 0 is normal for a list with no movers; the API does not report separately whether the move check ran (it needs 100 or more people, see step 2). Values are numbers like 1005.000 - show counts as whole numbers; when IsPercentage is true the Value is a fraction (0.070 means 7%).

6. Get the results
   GET organizations/{OrgId}/records?status=49&page=1&size=500
   Status 49 (Synchronize) means "processed, results ready for you". Data.Results is a list of records, one per person, with my input and TrueGivers' results side by side. Request page 2, 3, ... until you have Total rows. Match each row to my data by individual_id.
   - My input as I sent it: the input_ columns (input_address_line_1, input_address_city, ...).
   - The address to use now: address_line_1, address_line_2, address_city_name, address_state_code, address_postal_code, address_postal_code_extension (ZIP+4), address_county_name. For a person who moved, this is the NEW address.
   - Moves: address_move_record_type A = no move, C = moved and this is the new address, H = moved with no forwarding address (don't mail them); address_move_type I individual or F family, address_move_date (YYYYMM), address_move_distance.
   - Deliverability: the rule to mail by is address_deliverability_code: Y = deliverable; anything else (N or blank) = don't mail. It is N (with address_status_code V) for a real building that needs an apartment or suite (often a high rise) and blank when the address is not valid at all. Details: address_status_code V = valid, S = the street address is valid but the apartment or suite is missing or unconfirmed, N = not a valid address (address_status_description says why; address_vacant is then U); address_vacant Y = vacant (don't mail), N = not vacant, U = unknown; address_residential_delivery_indicator Y = residential; address_address_type S = single family, H = high rise, P = PO box.
   - Deceased: deceased_type is set when the person is found deceased (I = this individual, H = someone in the household); deceased_date and deceased_link when known. Empty means not found deceased.
   - Demographics when found: individual_heritage, individual_religion, individual_date_of_birth, household_* columns.
   - Bookkeeping columns: status is the record's status (49 here); id is TrueGivers' own GUID for the record; account_id repeats my individual_id; record_id, rowindex, party_id, paid_date, create_date and the input_ columns I didn't send (input_status, input_deceased, ...) are internal or empty - keep them if you save every column, but ignore them for logic.
   Save every column for each person, then update my own database from the results: the donor's mailing address from the address_ columns (for a C row that is the new address), a do-not-mail flag when address_deliverability_code is not Y or the person moved with no forwarding address, and the deceased flag. Ask me which of these I want applied.

7. Tell TrueGivers the results are applied
   After a person's results are saved in my system, mark that record done:
   PATCH organizations/{OrgId}/records/{individual_id}   body {"status": "51"}   (URL-encode the individual_id in the path)
   (51 = Synchronized). The response's Data is a one-item list holding the record; its status comes back as the number 51 (you send the string "51"). Do this for each record from step 6; afterwards GET organizations/{OrgId}/records?status=49&size=1 should show Total 0. The next time I send changes (step 2) and submit (step 3), only the people I sent again are re-screened and only new individual_ids cost credits.

WHEN WE ARE DONE
Give me one script or module that runs steps 1 to 7 end to end, with the credentials and the base URL as settings, and a short summary of what each step returned in our test. To test without spending real credits, use the testing API (https://api.testing.truegivers.com/v1/) with a testing partner account (email support@truegivers.com for one); you can sign in at https://app.testing.truegivers.com/Users/Login to watch your organizations being processed.

Before you start, email support@truegivers.com for a partner API account on our testing site (we recommend a separate user just for the API, so it can't be locked out by accident). Your assistant will ask for its email and password: keep them in a secret store, never in the code.

Or do it yourself in six steps

Every request sends your TrueGivers sign-in in two headers, user_name and password. Bodies and responses are JSON. Each of your customers is an organization, and each donor is a record with your own unique individual_id. The examples use curl with your credentials in the shell variables TRUEGIVERS_USER and TRUEGIVERS_PASSWORD.

  1. Get an account

    Email support@truegivers.com for a partner account. Build against our free testing site first (https://api.testing.truegivers.com/v1/, and app.testing.truegivers.com to watch your organizations being processed) so you don't spend credits, then switch the base URL to https://api.truegivers.com/v1/.

  2. Create an organization for your customer

    Send your own customer id as the Identifier, and keep the Id it returns. To find the organization again later, use GET organizations?identifier=....

    curl -X POST https://api.truegivers.com/v1/organizations \
      -H "user_name: $TRUEGIVERS_USER" -H "password: $TRUEGIVERS_PASSWORD" \
      -H "Content-Type: application/json" \
      -d '{"Name":"Example Food Bank","Identifier":"cust-1001"}'
    
    {"Records":1,"Page":1,"Total":1,"Data":{"Id":"dd90cce4-...","Name":"Example Food Bank","Status":"Active","Identifier":"cust-1001"}}
  3. Send the donor records

    POST a JSON array, up to 1,000 records per request. Every record needs an individual_id, a first name and a last name: TrueGivers processes individuals, not businesses. Sending an individual_id again replaces that record.

    curl -X POST https://api.truegivers.com/v1/organizations/{OrgId}/records \
      -H "user_name: $TRUEGIVERS_USER" -H "password: $TRUEGIVERS_PASSWORD" \
      -H "Content-Type: application/json" \
      -d '[{"individual_id":"1001","individual_first_name":"Jane","individual_last_name":"Sample",
            "input_address_line_1":"3000 Westminster Ave","input_address_city":"Dallas",
            "input_address_state":"TX","input_address_postal_code":"75205"}]'
    
    {"Records":1,"Page":1,"Total":1,"Data":{"ids":[]}}

    USPS returns moves only when an organization has at least 100 different people. Smaller lists are still standardized.

  4. Submit for processing

    Submitting uses one credit for each individual_id the organization has never submitted before. Re-processing is free. Keep the file Id it returns.

    curl -X PUT "https://api.truegivers.com/v1/organizations/{OrgId}/records?status=Process" -H "user_name: $TRUEGIVERS_USER" -H "password: $TRUEGIVERS_PASSWORD"
    
    {"Records":1,"Page":1,"Total":1,"Data":{"Id":"56a0106f-...","Status":"Imported"}}
  5. Poll until it's done

    Check every minute until the file's Status is Completed. Then read its summary report. Or pass &webhookurl=... when you submit, and we'll call you when it completes.

    curl https://api.truegivers.com/v1/organizations/{OrgId}/files/{FileId} -H "user_name: $TRUEGIVERS_USER" -H "password: $TRUEGIVERS_PASSWORD"
    curl https://api.truegivers.com/v1/organizations/{OrgId}/files/{FileId}/reports -H "user_name: $TRUEGIVERS_USER" -H "password: $TRUEGIVERS_PASSWORD"
  6. Read the results and mark them applied

    Records with status 49 have results waiting: the current address (a mover's new one) is in address_line_1, address_city_name, address_state_code and address_postal_code, next to your input in the input_ columns, along with the move, deliverability, deceased and demographic columns. Page through them, update your database, then set each record to 51 (Synchronized).

    curl "https://api.truegivers.com/v1/organizations/{OrgId}/records?status=49&page=1&size=500" -H "user_name: $TRUEGIVERS_USER" -H "password: $TRUEGIVERS_PASSWORD"
    
    curl -X PATCH https://api.truegivers.com/v1/organizations/{OrgId}/records/1001 \
      -H "user_name: $TRUEGIVERS_USER" -H "password: $TRUEGIVERS_PASSWORD" \
      -H "Content-Type: application/json" \
      -d '{"status":"51"}'

Reference

Paths are relative to https://api.truegivers.com/v1/. Lists take page and size (default 10).

CallWhat it does
GET organizationsYour customers' organizations. Filter with identifier (your customer id) or name; both match part of the value.
POST organizationsCreates an organization: {"Name": "...", "Identifier": "your customer id"}.
GET organizations/{OrgId}One organization: Name, Identifier and Status.
PATCH organizations/{OrgId}Changes its Name or Identifier (send only what changes).
DELETE organizations/{OrgId}Deletes the organization and all its data.
POST organizations/{OrgId}/recordsAdds or replaces records (by individual_id): a JSON array, or form fields. ?returnIds=true returns each record's id.
GET organizations/{OrgId}/recordsThe organization's records. Filter with status (1 Active, 49 results ready, 51 Synchronized) or file_id.
GET organizations/{OrgId}/records/{individual_id}One record, by your individual_id or its TrueGivers id.
PATCH organizations/{OrgId}/records/{individual_id}Sets a record's status: 51 once you've applied its results, or Archived / Inactive.
DELETE organizations/{OrgId}/records/{individual_id}Deletes one record.
PUT organizations/{OrgId}/records?status=ProcessSubmits the organization's active records for processing. Returns the file. Optional webhookurl. status=Cancel cancels.
GET organizations/{OrgId}/filesThe organization's processing files.
GET organizations/{OrgId}/files/{FileId}One file: Status (Completed when done).
GET organizations/{OrgId}/files/{FileId}/reportsThe file's summary report (JSON).
POST organizations/{OrgId}/files/{FileId}/webhooks?webhookurl=...Sends a completed file's webhook again, to test your receiver.
GET, POST organizations/{OrgId}/usersYour customer's users in the TrueGivers app (UserName, FirstName, LastName).
GET statusesEvery status number and its name (no sign-in needed).

Every request and field is in our Postman documentation.

Questions? Email support@truegivers.com.

Pricing

The API is billed in credits on your partner account: submitting an organization's records uses one credit for each person (individual_id) that organization has never submitted before. Sending the same people again and re-processing them doesn't use more credits, and there is no monthly fee. If the balance is short, the missing credits are bought with the card saved on your account; with no saved card, the submit is refused with a message saying how many credits it needs.

Our testing site is free to build against. For a partner account and credit pricing, email support@truegivers.com.

See your Data Stewardship Dashboard

Connect your CRM in minutes. It won't cost you a dime to see your Data Stewardship Dashboard.