Workflows

Run outputs

Output files with presigned download URLs, valid for expiresIn seconds — fetch them promptly. Answers at any time with the takes settled so far; status says whether more may come. Text notes a step writes as outputs are not files and are not listed. Call it when a status poll shows a new completed item, not on every poll.

get/v1/runs/{runId}/results

Request

  • Base URL: https://api.martini.film
  • URL: https://api.martini.film/v1/runs/{runId}/results
  • Auth: HTTP bearer

Path parameters

runIdstring required

The run id.

Response

The outputs settled so far.

idstring required
status'pending' | 'awaiting_approval' | 'running' | 'paused' | 'completed' | 'failed' | 'needs_revision' | 'cancelled' required
errorstring nullable required
errorCode'model_provider_unavailable' nullable required

Why a failed run failed, as a stable code to branch on; error carries the copy for a human. Null unless the run failed and Martini can name the cause. model_provider_unavailable: the AI model provider (Anthropic) kept failing or could not be reached, so the run stopped. The workflow and its inputs did not cause it: start the run again.

Changes

No recorded changes to this operation across all 1 revision of this API.