Presigned files of members of an episode-set viewer source (at most 50)
POST
/v1/projects/{projectId}/viewer-sources/{ref}/signcurl -X POST 'https://api.embodiflow.io/v1/projects/{projectId}/viewer-sources/{ref}/sign' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"resultIds": [
"00000000-0000-0000-0000-000000000000"
]
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- projectIdstring必填
- refstring必填
Viewer source ref: `result:<id>`, `step-output:<stepRunId>:<outputName>[:<itemIndex>]`, `version:<id>`, `export:<id>`, `recording-raw:<id>` or `episodes:<filter>` (the canonical base64url encoding of an episode list filter).
请求头参数
- 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.
请求体
Content-Typeapplication/json
- resultIdsarray<string (uuid)>必填
Recording ids of the episode set (its members' `recordings[].id`) to sign.
响应
Success
- dataobject必填
- recordingsarray<ViewerSourceSignedRecordingDto>必填
- expiresAtstring必填
响应示例
{
"data": {
"recordings": [
{
"id": "string",
"files": [
{
"path": "string",
"url": "string",
"sizeBytes": 0,
"contentType": "string",
"etag": "string"
}
]
}
],
"expiresAt": "string"
}
}服务器https://api.embodiflow.io/v1