List triggers
const url = 'https://localhost:3000/api/v1/triggers';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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/triggers \ --header 'Authorization: <Authorization>'Returns all triggers of the authenticated account. Optionally filter by tags or by owner. owner=all returns everything the account sees (personal, organizations it belongs to, triggers shared through access), without third-party public triggers, sorted by (created_at, id) and capped at 10000: the response then carries the X-Truncated: true header if the cap is reached, and owner_name names the organization. Tags also apply to owner=all.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Filter by tags (comma-separated)
Scope the list to an owner workspace: ‘personal’, ‘tenant:
Responses
Section titled “Responses”List of triggers
object
Organization name, only set by owner=all
object
Version for optimistic locking on PATCH
Example
[ { "account_id": "550e8400-e29b-41d4-a716-446655440000", "allow_public_events": false, "color": "#FF5733", "created_at": "2024-01-15T10:30:00Z", "description": "Tracks user signups", "event_mode": "both", "id": "550e8400-e29b-41d4-a716-446655440000", "max_batch_size": 50, "name": "user-signups", "owner_id": "550e8400-e29b-41d4-a716-446655440000", "owner_name": "Acme", "owner_type": "account", "public_quota": { "current_daily": 523, "current_hourly": 42, "daily_limit": 1000, "hourly_limit": 100 }, "slug": "user-signups", "tags": [ "production", "critical" ], "total_events": 15234, "updated_at": "2024-01-15T10:30:00.123456Z", "visibility": "private" }]Filtre owner invalide
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Not a tenant member
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Erreur interne
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}