Start typing to search.

API Reference

List triggers

View Markdown

List triggers

GET /api/triggers

List triggers

Operation ID: listTriggers

Authentication

Option 1

  • BearerAuth (http bearer) API key token. Create via POST /api/api-keys. Format: envoy_<hex>

Option 2

  • CookieAuth (apiKey) Session cookie set after login + TOTP verification

Query parameters

  • cursorstring Pagination cursor from a previous response
  • limitinteger Maximum number of results to return Example: 50
    • Default: 50
    • Maximum: 200
  • sortstring Column name to sort by (validated per-entity)
  • orderstring Sort direction Example: desc
    • Allowed values: asc, desc
    • Default: desc
  • job_idinteger Filter by job ID

Success responses

200

Paginated list of triggers

Content type: application/json

  • Type: PaginatedResult & object
  • All of:
    • Variant 1:
      • Reference: PaginatedResult
        • Type: object
        • Properties:
          • result (array<unknown>)
            • Items:
              • Type: unknown
          • nextCursor (string | null)
            • Nullable: yes
          • prevCursor (string | null)
            • Nullable: yes
          • total (integer) — Total number of records matching the current filters
    • Variant 2:
      • Type: object
      • Properties:
        • result (array<Trigger>)
          • Items:
            • Reference: Trigger
              • Type: object
              • Properties:
                • id (integer)
                • job_id (integer)
                • task_key (string | null)
                  • Nullable: yes
                • type (string) — cron repeats on a cron expression; one_off fires once at the datetime in cron_expression then auto-disables.
                  • Description: cron repeats on a cron expression; one_off fires once at the datetime in cron_expression then auto-disables.
                  • Allowed values: cron, one_off
                • cron_expression (string | null) — 5-field cron expression for type=cron; ISO-8601 datetime (UTC) for type=one_off.
                  • Description: 5-field cron expression for type=cron; ISO-8601 datetime (UTC) for type=one_off.
                  • Nullable: yes
                • arguments (string | null) — JSON-encoded arguments
                  • Description: JSON-encoded arguments
                  • Nullable: yes
                • enabled (integer)
                  • Allowed values: 0, 1
                • last_triggered_at (string | null)
                  • Format: date-time
                  • Nullable: yes
                • created_at (string)
                  • Format: date-time
                • updated_at (string)
                  • Format: date-time

Examples

cURL

curl --request GET \
  --url 'https://your-envoy.example.com/api/triggers?cursor=YOUR_CURSOR&limit=50' \
  --header 'Authorization: Bearer $API_KEY'

JavaScript (fetch)

const response = await fetch('https://your-envoy.example.com/api/triggers?cursor=YOUR_CURSOR&limit=50', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
  },
});
 
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = response.status === 204 ? null : await response.json();
console.log(data);