GET /v1/runs/{runId}/files/{fileId}/content

Stream the bytes of a file attached to this run; 404 covers cross-tenant, other-client and unlinked ids.

Streams the bytes of one file attached to this run — an image the run generated, or one that was attached to it. List them first with GET /v1/runs/{runId}, which returns each attachment's fileId. The file must be attached to *this* run: a file id that belongs to the tenant but not to this run returns 404, as do an unknown run, an unknown file, and another tenant's run. **Scoped to the calling API-key client:** only a run this client started is reachable — any of its keys, rotations included. Another client's run in the same tenant, a run started before clients were recorded, and another tenant's run are all the same 404 as an unknown id.

Request

Path & query

NameInTypeRequired
runIdpathuuidrequired
fileIdpathuuidrequired

Example

shell
curl https://api.askamy.co.za/v1/runs/{runId}/files/{fileId}/content \
  -H "X-Api-Key: $AMY_API_KEY"

Responses

StatusDescriptionBody
200OK—
401UnauthorizedProblemDetails
404Not FoundProblemDetails
502Bad GatewayProblemDetails

Schemas

ProblemDetails

FieldTypeRequired
typestring | nulloptional
titlestring | nulloptional
statusinteger | nulloptional
detailstring | nulloptional
instancestring | nulloptional