Server API: Contacts
Who a person is: Identify, erase and export, by your own id for them.
| What it does | Route |
|---|---|
| Save a company | PUT /server/v1/companies/{external_id} |
| Erase a person | DELETE /server/v1/contacts/{external_id} |
| Identify a person | PUT /server/v1/contacts/{external_id} |
| Export a person | GET /server/v1/contacts/{external_id}/export |
| Identify people in a batch | POST /server/v1/contacts/batch |
| Tag people | POST /server/v1/tags/{name}/people |
Save a company
Section titled “Save a company”PUT /server/v1/companies/{external_id}
Makes or updates the company with your id for it. Only what you send changes; a data key sent null is removed. People named by your ids for them are put in it or taken out; anyone PurrCRM has no contact of is named in missing.
Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.
Parameters
| Name | In | Description |
|---|---|---|
external_id (required) | path | Your id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject. |
Body (application/json): Company
| Field | Type | Description |
|---|---|---|
data | object of any | The app’s own about it, by key: a string, a number, or true or false. Null removes a key; a key not sent is left as it is. At most 50 keys. |
employees | integer | How many work there; MonthlySpend what it spends a month, in the app’s own currency. |
industry | string | Industry and Plan are the app’s own words, at most 100 characters. |
monthly_spend | number | |
name | string | What it is called, at most 200 characters. |
people | array of string | The external ids of the people to put in it, and RemovePeople of those to take out: each at most MaxPeoplePerRequest. A person PurrCRM has no contact of is left out, and named in the answer’s Missing. |
plan | string | |
remove_people | array of string | |
website | string | Its http or https address. |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | CompanyAnswer | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 429 | problem | Too many requests: wait for Retry-After. |
Erase a person
Section titled “Erase a person”DELETE /server/v1/contacts/{external_id}
Queues the erase of everything kept about the person, done within minutes. For 30 days afterwards nothing new is kept about that id (409 erased).
Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.
Parameters
| Name | In | Description |
|---|---|---|
external_id (required) | path | Your id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject. |
Answers
| Status | Body | Meaning |
|---|---|---|
| 202 | none | Queued |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 429 | problem | Too many requests: wait for Retry-After. |
Identify a person
Section titled “Identify a person”PUT /server/v1/contacts/{external_id}
Makes or updates the contact with your id for them. Only what you send changes: a field left out keeps its value, and one sent empty (or an attribute sent null) clears it. Safe to send again.
Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.
Parameters
| Name | In | Description |
|---|---|---|
external_id (required) | path | Your id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject. |
Body (application/json): Identify
| Field | Type | Description |
|---|---|---|
attributes | object of any | The app’s custom attributes, by name, each held to its definition: a string, a number, true or false, a date as 2026-09-27 or an RFC 3339 time, or a list of strings. Null removes the value. One PurrCRM computes is refused; one the app does not define is made on first sight, its type worked out, for review, unless the app’s strict data refuses it. |
companies | array of string | The external ids of companies the person is in (U5-2), at most MaxIdentifyCompanies: each one the app has not told PurrCRM of is made with nothing but its id, for a later PUT /server/v1/companies/{external_id} to fill in. Leaving them out takes the person out of none. |
consent | crm.Consent | |
display_name | string | What they are called, at most 100 characters. |
email | string | Their address, which PurrCRM sends email to. |
language | string | Their language as a BCP 47 tag (“en”, “en-GB”). |
phone | string | Their mobile number in international form, +44 7700 900123 (U2-3): kept in E.164, +447700900123. Spaces, dashes, dots and brackets are dropped, and a leading 00 is read as +; "" removes it. |
provider | string | How they sign in, in the app’s own word: apple, google, password, or any other of at most 40 characters. |
signed_up_at | string (date-time) | When they made their account. |
time_zone | string | Their IANA zone (“Europe/London”). |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | IdentifyAnswer | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 409 | problem | Refused as things stand: the problem says why. |
| 429 | problem | Too many requests: wait for Retry-After. |
Export a person
Section titled “Export a person”GET /server/v1/contacts/{external_id}/export
Everything kept about the person, for your own subject-access export.
Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.
Parameters
| Name | In | Description |
|---|---|---|
external_id (required) | path | Your id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject. |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | ExportContact | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 404 | problem | Not found, or the part is switched off. |
| 429 | problem | Too many requests: wait for Retry-After. |
Identify people in a batch
Section titled “Identify people in a batch”POST /server/v1/contacts/batch
Up to 100 Identifies at once, each as PUT /server/v1/contacts/{external_id} takes it and each kept or refused on its own, with what became of each in order.
Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.
Body (application/json): IdentifyBatch
| Field | Type | Description |
|---|---|---|
contacts (always) | array of BatchIdentify |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | IdentifyBatchAnswer | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 429 | problem | Too many requests: wait for Retry-After. |
Tag people
Section titled “Tag people”POST /server/v1/tags/{name}/people
Puts the tag on the people named by your ids for them, or takes it off (remove). A tag you put on that does not exist yet is made. Anyone PurrCRM has no contact of is named in missing.
Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.
Parameters
| Name | In | Description |
|---|---|---|
name (required) | path | The app’s link name. |
Body (application/json): TagPeople
| Field | Type | Description |
|---|---|---|
external_ids (always) | array of string | |
remove | boolean |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | TagPeopleAnswer | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 429 | problem | Too many requests: wait for Retry-After. |