Collection

Send tracking data

POST/api/send

Collects a pageview, custom event, visitor identification, or performance payload and returns session information and a tracking cache token when accepted.

Request body

NameTypeDescription
payloadrequiredobject
typerequiredenum<string>
Options: event, identify, performance
Example request

Responses

200The operation completed successfully.
NameTypeDescription
anyOfanyOf
200 example
400Bad request.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
400 example
403Forbidden.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
403 example
500Server error.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
500 example

Code samples

cURL