Atune Docs
API reference

Attach intentional identity traits

The only public API path that accepts PII. It writes company, name, and email traits only after the workspace has accepted the DPA.

Identify a user
curl -X POST https://staging.useatune.com/api/v1/identify \  -H "Authorization: Bearer <YOUR_API_KEY>" \  -H "Content-Type: application/json" \  -d '{    "accountId": "acme",    "userId": "user_123",    "traits": {      "name": "Kari Nordmann",      "email": "kari@acme.example",      "company": "Acme AS"    }  }'

Sign in to find your API key in Settings.

POST
/api/v1/identify

The only public API path that accepts PII. It writes company, name, and email traits only after the workspace has accepted the DPA.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Workspace API key from Atune settings or onboarding.

Request Body

application/json
  1. body

Requires accountId, userId, or both. Without accountId, a known user's traits apply to every account they belong to; an unknown user becomes an account of one (the userId is the account ID).

accountId*string
Length1 <= length
userId?string
Length1 <= length
traits?

Response Body

Traits accepted.

application/json
  1. response
ok*boolean
account*|

Null when a userId without an account belongs to no account yet; the traits are kept until one does.

user*|null
Example Request
curl -X POST 'https://useatune.com/api/v1/identify' \  -H 'Content-Type: application/json' \  -d '{  "accountId": "acme",  "userId": "user_123",  "traits": {    "name": "Kari Nordmann",    "email": "kari@acme.example",    "company": "Acme AS"  }}'
Example Response
{  "ok": true,  "account": {    "id": "cm123",    "externalId": "acme"  },  "user": {    "id": "cm456"  }}