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://useatune.com/api/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 see this sample with your own workspace API key.

POST/api/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
AuthorizationBearer <token>

Workspace API key from Atune settings or onboarding.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

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