Events
Authorizations
X-API-KeystringRequired
API key (UUID)
Path parameters
populationIdstring · uuidRequired
Population identifier (UUID)
Header parameters
X-Request-Idstring · uuidOptional
Optional request correlation ID
Body
typestringRequired
Event type identifier
occurredAtstring · date-timeOptional
Responses
201
Event stored
application/json
okbooleanRequiredExample:
Indicates whether the request succeeded.
truestatusintegerRequiredExample:
Application-level status code returned by the API.
201statusTextstringRequiredExample:
Application-level status text returned by the API.
Createdbodyany · nullableOptional
Optional response body. Null when no structured body is returned.
rawstringRequiredExample:
Raw response value returned by the API.
6yC9g6vFzUmFBwjeeulYnQ400
Validation error
application/json
401
Invalid or missing API key
application/json
429
Too many requests
application/json
500
Internal server error
application/json
post/v1/events/send/{populationId}
POST /v1/events/send/{populationId} HTTP/1.1
Host: api.pristo.io
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 302
{
"type": "purchase_completed",
"occurredAt": "2026-02-04T13:25:00Z",
"customFields": {
"channel": "website"
},
"contact": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email": "dana@example.com",
"phone": "0545123456",
"name": "Dana",
"lastName": "Altman",
"language": "en",
"customFields": {
"gender": "female",
"age": "12"
}
}
}{
"ok": true,
"status": 201,
"statusText": "Created",
"body": null,
"raw": "6yC9g6vFzUmFBwjeeulYnQ"
}עודכן לאחרונה