Skip to content
EmitKitDocs
Esc
↑↓navigate↵open⌘Jpreview

Identify User

Creates or updates the Organization-scoped identity for user_id. Properties are merged into the stored ones (new values replace old ones; keys you leave out are kept), and each alias moves to this identity.

POST/v1/identify
Authorization
AuthorizationBearer token (EmitKit API key) · headerrequired

EmitKit API key in the Authorization header as Bearer emitkit_…

or
X-API-KeyAPI key · headerrequired

EmitKit API key beginning with emitkit_.

Request body
requiredapplication/json
aliasesstring[]
propertiesobject
default: {}
user_idstringrequired
min length 1
Responses
200

The identity was created or updated.

dataobjectrequired
Show properties
aliasesobjectrequired
Show properties
createdstring[]required
idstringrequired
propertiesobjectrequired
updatedAtstring<date-time>required
matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
userIdstringrequired
requestIdstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired
400

The request does not match the operation contract.

detailsobject[]required
Show properties
Array of object
codestring
min length 1
messagestringrequired
min length 1
pathstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
errorstringrequired
requestIdstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired
401

Authentication credentials are missing or invalid.

errorstringrequired
messagestringrequired
413

The request body exceeds the public API's 1 MiB limit.

errorstringrequired
messagestringrequired
Allowed:Request body exceeds the 1 MiB limitEvent exceeds the 16 KB storage limit
requestIdstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired
429

The authenticated principal exceeded its rate limit.

errorstringrequired
messagestringrequired
requestIdstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired
500

The identity could not be written.

errorstringrequired
messagestringrequired
requestIdstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://api.emitkit.com/v1/identify" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "aliases": [
    "string"
  ],
  "properties": {},
  "user_id": "string"
}'
Response
{
  "data": {
    "aliases": {
      "created": [
        "string"
      ]
    },
    "id": "string",
    "properties": {
      "property1": "string",
      "property2": "string"
    },
    "updatedAt": "2019-08-24T14:15:22Z",
    "userId": "string"
  },
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "success": true
}