Make a single request
This endpoint lets you create, update, or delete a single person or object—including managing relationships between objects and people.
An "object" is any kind of non-person entity that you want to associate with one or more people—like a company, an educational course that people signed up for, a product, etc.
Your request must be smaller than 32kb.
Add or update a person.
- actionDiscriminatorenumconst:identifyrequired
Indicates that the operation will
identifythe item of the specifiedtype.values- identify
- identifiersrequired
The person you want to perform an action for—one of
id,email,phone, orcio_id. You cannot pass multiple identifiers. You can useemailandphoneonly if they're enabled as identifiers in your workspace settings. - typeenumconst:personrequired
The operation modifies a person in Customer.io
values- person
- attributesType: object
Attributes that you want to add or update for this person. You can pass properties that aren't defined below to set custom attributes; the defined properties are reserved in the Customer.io Track API.
- bulkType: boolean
Set to
trueto process this identify at a lower priority than your other requests. Use it for low-importance updates, like an attribute backfill or a nightly sync from your data warehouse. Customer.io can apply a bulk identify after requests you send later, but the bulk identify never overwrites an attribute that a request with a latertimestampset. The field doesn't change message delivery priority. If the identify includescio_relationships, Customer.io deprioritizes only the person's attribute update. - cioType: array object[]
_relationships Each object in the array represents a relationship you want to add to, or remove from, a person.
- timestampType: integer
The Unix timestamp, in seconds, for when the attribute update occurred. Customer.io uses it to order attribute updates when you send multiple requests in rapid succession. If two updates to the same attribute have the same
timestamp, Customer.io keeps the one it processes last. To order updates that happen within the same second, sendtimestamp_msinstead. - timestamp
_ms The Unix timestamp, in milliseconds, for when the attribute update occurred, like the value of
Date.now()in JavaScript. A validtimestamp_mstakes precedence overtimestamp. Customer.io orders two updates to the same attribute by milliseconds only when both includetimestamp_ms, so send it on every identify request for a person whose updates can happen within the same second. Customer.io ignores an invalid value and processes the request as if you hadn't sent one. If you've edited your workspace's actions to transform Track API calls before Customer.io processes them, Customer.io orders your identify calls by whole seconds and ignorestimestamp_ms.
- 200
A successful request returns an empty object response.
- application/json
- 401
Unauthorized request. Make sure that you provided the right credentials.
{
"action": "identify",
"identifiers": {
"id": "42"
},
"type": "person",
"attributes": {
"first_name": "Jane"
}
}
A successful request returns an empty object response.