Create a consent event
Changed onEmail consent only.
Request
- Base URLhttps://api.pscrpt.com/v1
- URLhttps://api.pscrpt.com/v1/consent-events
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.pscrpt.com/oauth/authorizeToken URL: https://api.pscrpt.com/oauth/token scopes: consent: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
{
"evidence": {
"lawful_basis": "express_written_consent",
"method": "checkout"
},
"occurred_at": "2026-07-23T17:32:01.123456Z"
}Response
The consent already had this status; returns the stored event.
Example response
{
"data": {
"channel": "sms",
"consent": {
"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",
"evidence": {
"lawful_basis": "express_written_consent",
"method": "checkout"
},
"occurred_at": "2026-07-23T17:32:01.123456Z"
}
}Changes
- breaking
request property
/////was restricted to a list of enum values - breaking
added
subschema #2to the/response propertyoneOflist for the response status - breaking
added
subschema #2to the/response propertyoneOflist for the response status - breaking
the
/response's property type changed fromstringto no type, and format fromdate-timeto no format for status - breaking
the
/response's property type changed fromstringto no type, and format fromdate-timeto no format for status - warning
the
/////request property's maxLength was set to255 - warning
removed the request property
///// - info
added the new
emailenum value to the request property///// - info
removed the pattern
^[a-z][a-z0-9_.]*$from the request property/////
- breaking
- info
endpoint added
- info