Skip to content

Server API: Contacts

Who a person is: Identify, erase and export, by your own id for them.

What it doesRoute
Save a companyPUT /server/v1/companies/{external_id}
Erase a personDELETE /server/v1/contacts/{external_id}
Identify a personPUT /server/v1/contacts/{external_id}
Export a personGET /server/v1/contacts/{external_id}/export
Identify people in a batchPOST /server/v1/contacts/batch
Tag peoplePOST /server/v1/tags/{name}/people

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

NameInDescription
external_id (required)pathYour id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject.

Body (application/json): Company

FieldTypeDescription
dataobject of anyThe 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.
employeesintegerHow many work there; MonthlySpend what it spends a month, in the app’s own currency.
industrystringIndustry and Plan are the app’s own words, at most 100 characters.
monthly_spendnumber
namestringWhat it is called, at most 200 characters.
peoplearray of stringThe 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.
planstring
remove_peoplearray of string
websitestringIts http or https address.

Answers

StatusBodyMeaning
200CompanyAnswerOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
429problemToo many requests: wait for Retry-After.

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

NameInDescription
external_id (required)pathYour id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject.

Answers

StatusBodyMeaning
202noneQueued
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
429problemToo many requests: wait for Retry-After.

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

NameInDescription
external_id (required)pathYour id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject.

Body (application/json): Identify

FieldTypeDescription
attributesobject of anyThe 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.
companiesarray of stringThe 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.
consentcrm.Consent
display_namestringWhat they are called, at most 100 characters.
emailstringTheir address, which PurrCRM sends email to.
languagestringTheir language as a BCP 47 tag (“en”, “en-GB”).
phonestringTheir 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.
providerstringHow they sign in, in the app’s own word: apple, google, password, or any other of at most 40 characters.
signed_up_atstring (date-time)When they made their account.
time_zonestringTheir IANA zone (“Europe/London”).

Answers

StatusBodyMeaning
200IdentifyAnswerOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
409problemRefused as things stand: the problem says why.
429problemToo many requests: wait for Retry-After.

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

NameInDescription
external_id (required)pathYour id for the person: 1 to 200 characters, the same id your users’ tokens carry as their subject.

Answers

StatusBodyMeaning
200ExportContactOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

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

FieldTypeDescription
contacts (always)array of BatchIdentify

Answers

StatusBodyMeaning
200IdentifyBatchAnswerOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
429problemToo many requests: wait for Retry-After.

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

NameInDescription
name (required)pathThe app’s link name.

Body (application/json): TagPeople

FieldTypeDescription
external_ids (always)array of string
removeboolean

Answers

StatusBodyMeaning
200TagPeopleAnswerOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
429problemToo many requests: wait for Retry-After.