Get public trigger by slug
GET
/public/trigger/{slug}
const url = 'https://localhost:3000/api/v1/public/trigger/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:3000/api/v1/public/trigger/exampleReturns details of a public trigger by its slug
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Trigger slug
Responses
Section titled “Responses”Trigger details
Media typeapplication/json
object
allow_public_events
required
boolean
color
string
description
string
event_mode
required
string
id
required
string format: uuid
max_batch_size
integer
name
required
string
owner
required
string
owner_type
required
string
slug
string
tags
required
Array<string>
total_events
integer
Example
{ "allow_public_events": true, "color": "#FF5733", "description": "Tracks user signups", "event_mode": "both", "id": "550e8400-e29b-41d4-a716-446655440000", "max_batch_size": 50, "name": "user-signups", "owner": "Acme Corp", "owner_type": "tenant", "slug": "user-signups", "tags": [ "analytics", "signup" ], "total_events": 15234}Invalid slug
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"}Internal error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}