POST /v1/track
Custom events and identify.
POST
/v1/trackIngests a named event, identify, or profile field update.
Events base URL: https://api.amplifyup.ai
The SDK uses this for track(), identify(), and related calls. Skip it inside Composer preview.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Content-Type | string | Yes | application/json |
Body fields
| Name | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | track, identify, or set_fields |
| event | string | No | Event name when type is track |
| anonymousId | string | Yes | Visitor ID |
| userId | string | No | Known user id (identify) |
| properties | object | No | Event properties; include trackingId |
| traits | object | No | Identify traits |
| timestamp | string | No | ISO-8601 time |
Example request
Example response (200)