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://test.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
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.

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).

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).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.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"    }  }'
{  "ok": true,  "account": {    "id": "cm123",    "externalId": "acme"  },  "user": {    "id": "cm456"  }}