PeopleIdentify a person

Identify a person

Create or update one person and their traits, keyed on your own user id. This is the primary ingestion route for a people-first integration.

Requires people:write or the narrower people:identify. The latter authorizes this route and nothing else, which is what makes it safe on a key shipped inside an app.

curl -X POST "https://api.flameup.ai/api/v1/identify" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "userId": "example_string",
  "external_id": "example_string",
  "user_id": "example_string",
  "email": "user@example.com",
  "phone": "+1-555-0123",
  "anonymousId": "example_string",
  "traits": {},
  "timestamp": "2024-12-25T10:00:00Z"
}'
{
  "success": true,
  "person": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
    "userId": "example_string"
  }
}
POST
/identify
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Your Flameup API key (passed as Bearer token)

Your Flameup API key (passed as Bearer token)
Content-Typestring
Required

The media type of the request body

Options: application/json
userIdstring

Your own user id. external_id and user_id are accepted aliases. Send only one — if two are present and disagree the request is rejected rather than one being picked for you.

emailstring
Format: email
anonymousIdstring

Anonymous id to merge into this person.

traitsobject

Merged with existing traits; new values win.

timestampstring
Format: date-time
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Your Flameup API key (passed as Bearer token)

Body

application/json
userIdstring

Your own user id. external_id and user_id are accepted aliases. Send only one — if two are present and disagree the request is rejected rather than one being picked for you.

anonymousIdstring

Anonymous id to merge into this person.

traitsobject

Merged with existing traits; new values win.

Responses

successboolean
personstring

IdentifiedPerson for a key without people:read — the common case for a pk_live_ key. The full Person for a key that holds people:read and could have read the record anyway. anyOf rather than oneOf because the trimmed shape is a subset of the full one and validates against both; the permission decides which you get, and that is not expressible in the schema.