Atune Docs
API reference

Capture a behavior event

Stores one behavior event for an account. Scoring is not triggered here; the scheduled recompute job remains the sole writer of health and inbox outcomes.

Capture an event
curl -X POST https://useatune.com/api/events \  -H "Authorization: Bearer <YOUR_API_KEY>" \  -H "Content-Type: application/json" \  -d '{    "accountId": "acme",    "userId": "user_123",    "event": "feature.report.generated",    "properties": { "reportType": "activation" }  }'

Sign in to see this sample with your own workspace API key.

POST/api/events

Stores one behavior event for an account. Scoring is not triggered here; the scheduled recompute job remains the sole writer of health and inbox outcomes.

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/events" \  -H "Content-Type: application/json" \  -d '{    "accountId": "acme",    "userId": "user_123",    "event": "feature.report.generated",    "properties": {      "reportType": "activation",      "source": "dashboard"    },    "accountStage": "trial",    "trialEndsAt": "2026-08-15T00:00:00.000Z"  }'
{  "ok": true,  "account": {    "id": "cm123",    "externalId": "acme"  },  "user": {    "id": "cm456",    "externalId": "user_123"  }}