Create an event
Changed onemail and phone create a profile when none matches. Platform identifiers such as external_id and shopify_customer_id must already match a profile. Send any event type; the event catalog lists the canonical types, the shape each is validated against, and what each field powers.
Request
- Base URLhttps://api.pscrpt.com/v1
- URLhttps://api.pscrpt.com/v1/events
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.pscrpt.com/oauth/authorizeToken URL: https://api.pscrpt.com/oauth/token scopes: events:write
Headers
Deduplicates retries for 24 hours: the same key returns the original response with Idempotency-Replayed: true; the same key with a different body returns 409 idempotency_key_reused.
Overrides the key's pinned API revision for this request.
Request body
Example request
{
"identifier": {
"type": "email"
}
}Response
The created event.
Example response
{
"data": {
"event_type": {
"first_seen_at": "2026-07-23T17:32:01.123456Z"
},
"occurred_at": "2026-07-23T17:32:01.123456Z",
"profile": {
"consents": [
{
"channel": "sms",
"consented_at": "2026-07-23T17:32:01.123456Z",
"identifier": {
"created_at": "2026-07-23T17:32:01.123456Z",
"type": "email",
"updated_at": "2026-07-23T17:32:01.123456Z",
"verified_at": "2026-07-23T17:32:01.123456Z"
},
"method": "checkout",
"updated_at": "2026-07-23T17:32:01.123456Z"
}
],
"created_at": "2026-07-23T17:32:01.123456Z",
"identifiers": [
{
"created_at": "2026-07-23T17:32:01.123456Z",
"type": "email",
"updated_at": "2026-07-23T17:32:01.123456Z",
"verified_at": "2026-07-23T17:32:01.123456Z"
}
],
"updated_at": "2026-07-23T17:32:01.123456Z"
},
"received_at": "2026-07-23T17:32:01.123456Z",
"source": "api"
}
}Changes
- warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning
- info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status
- info