Start a download of a recording (presigned, never proxied)
POST
/v1/projects/{projectId}/recordings/{recordingId}/downloadscurl -X POST 'https://api.embodiflow.io/v1/projects/{projectId}/recordings/{recordingId}/downloads' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"runId": "string",
"deliveryMode": "https-manifest",
"expiresInSeconds": 0
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- projectIdstringrequired
- recordingIdstringrequired
Header parameters
- Idempotency-Keystring
Optional idempotency key, at most 255 characters (UUIDv4 recommended). The response holds credentials and is never stored: a repeated key runs the request again and returns fresh ones. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours.
Request body
Content-Typeapplication/json
- runIdstring
The run whose result to download; `upload` for the files as uploaded. Omitted: the current result.
- deliveryModestringAllowed valueshttps-manifestaws-climc
- expiresInSecondsnumber
Session lifetime in seconds, 300 to 86400 (default one hour).
Responses
Success
- dataobjectrequired
- sessionobjectrequired
- sessionTokenstringrequired
- providerAccessPayloadobject | nullrequired
- credentialobject
- fallbackReasonstring | null
Response example
{
"data": {
"session": {
"id": "string",
"tenantId": "string",
"scopeType": "string",
"scopeId": "string",
"artifactId": "string",
"storageBucketId": "string",
"manifestObjectId": "string",
"objectPrefix": "string",
"accessMode": "string",
"deliveryMode": "string",
"status": "string",
"expiresAt": "string",
"lastUsedAt": "string",
"createdAt": "string",
"updatedAt": "string"
},
"sessionToken": "string",
"providerAccessPayload": {},
"credential": {
"accessKeyId": "string",
"secretAccessKey": "string",
"sessionToken": "string",
"expiresAt": "string",
"bucketName": "string",
"serviceEndpoint": "string",
"addressingStyle": "virtual-hosted",
"prefixes": [
"string"
],
"objectKeys": [
"string"
],
"provider": "string",
"objectBaseUrl": "string",
"signingRegion": "string"
},
"fallbackReason": "string"
}
}Servershttps://api.embodiflow.io/v1