Skip to content
Last updated

Run a Streamline automation immediately with custom parameters.

POSThttps://api.aitronos.com/v1/streamline/automations/{automation_id}/execute

Headers

Authorization string required
Bearer token authentication. Use either:

  • Bearer ${FREDDY_API_KEY} for API key authentication
  • Bearer ${FREDDY_SESSION_TOKEN} for session token authentication

Content-Type string required · application/json

Path Parameters

automation_id string required

Request Body

parameters object optional
Key-value payload forwarded to the automation runtime.

return_mode string optional · One of poll or wait (defaults to poll).

Returns

When return_mode=poll, returns 202 Accepted with execution_id for polling status later. When return_mode=wait, waits for completion and returns 200 OK with full execution result.

Bash
curl -X POST "https://api.aitronos.com/v1/streamline/automations/sauto_daily_report/execute" \
  -H "Authorization: Bearer $FREDDY_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "return_mode": "poll"
  }'

Response:

{
  "status": "Execution started",
  "execution_id": "sexec_abc123",
  "automation_id": "sauto_daily_report"
}