Add events and their linked schemas in SuprSend
cURL
curl -X POST "https://management-api.suprsend.com/v1/{workspace}/event/" \ --header 'Authorization: ServiceToken <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "User Signup Event", "description": "Triggered whenever a new user successfully signs up on the platform", "payload_schema": { "schema": "user_signup_v1" } }'
{}
You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Workspace slug (staging, production, etc.)
Unique Identifier of the Event.
"User Signup Event"
Description of the event. Can be used to describe which action this event is linked to.
"Triggered whenever a new user successfully signs up on the platform"
Show child attributes
Linked schema slug to validate event properties structure. You can create a schema via Create Schema endpoint and then link it here.
"user_signup_v1"
Schema version number to link. By default, live version is always picked for validation.
1
Updated event details
The response is of type object.
object
Was this page helpful?