Create event by public trigger slug
POST
/public/trigger/{slug}
const url = 'https://localhost:3000/api/v1/public/trigger/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:3000/api/v1/public/trigger/example \ --header 'Content-Type: application/json' \ --data '{ "metadata": {} }'Create a single event on a public trigger using its slug
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Trigger slug
Request Body
Section titled “Request Body”Event data
Media typeapplication/json
object
metadata
Metadata contains custom event data as a JSON object
object
Example generated
{ "metadata": {}}Responses
Section titled “Responses”Event accepted
Media typeapplication/json
object
message
string
success
required
boolean
Example
{ "message": "Operation completed successfully", "success": true}Bad Request
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Forbidden
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Not Found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Too Many Requests
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Internal server error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}