Create a public event
POST
/public/triggers/{id}/events
const url = 'https://localhost:3000/api/v1/public/triggers/example/events';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/triggers/example/events \ --header 'Content-Type: application/json' \ --data '{ "metadata": {} }'Ingests an event on a public trigger (no authentication)
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Trigger ID (UUID)
Request Body
Section titled “Request Body”Event metadata
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}Invalid request
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Public events disabled
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Trigger not found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Quota exceeded
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Buffer full (buffer_full) or shutdown in progress (shutting_down)
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}