Skip to content
Navigation

Fire an automation with a signed request

Fires an automation from your own stack (Zapier, GitHub Actions, an internal cron). The agent answers in a real thread your team can join, with the same approval gate as any other run — a proposed action still waits for a human.

Authentication is a per-automation HMAC, not an API key: send x-rk1-trigger-signature: t=<unix-seconds>,v1=<hex hmac-sha256("<t>.<raw body>", secret)>. The secret is shown once when the automation is created and can be rotated. Requests more than 5 minutes old are rejected. Body: {} or { "input": <json ≤ 8 KiB> }, which is rendered into the message the agent receives.

A run already live in the automation’s thread answers busy (the slot is skipped, never duplicated); one parked on an approval answers needs_input.

An automation that has moved to the trigger surface keeps answering this URL, in this same envelope. Its fire is accepted and queued, so it answers started with runId: null; where runId is present it names the work session (ws_…) the fire opened, not a thread run.

POST
https://api.cloudraker.com/v1/automations/{ref}/trigger
Try it
Path parameters
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • ref
    string
    required

Returns

200

The fire outcome.

JSON
  • data
    object
    required
    • automationRunId
      string
      required

      The fire record. Opaque and stable: a retry of the same signed request reports the same id.

    • threadId
      string | null
      required

      The thread the run posts in, when the fire opened one at once. null while the fire is queued.

    • runId
      string | null
      required

      The run the fire started. For an automation that has moved to the trigger surface this is its work session (ws_…). It is null while the fire is still queued, which is what a started answer reports for such an automation.

    • status
      started
      or
      success
      or
      busy
      or
      needs_input
      or
      blocked
      or
      error
      required

400

invalid_request — body over 8 KiB or not JSON.

401

unauthorized — missing, bad or replayed signature.

404

not_found — unknown reference, or the automation or its trigger is off.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close