API reference
Get an attachment link
Get a short-lived download link for a file on an assigned job.
GET
/api/v1/attachments/{attachment_id}/downloadattachments:readMCP: attachment_url
Request
Examples use sample IDs and upload handles. Replace them with values returned for your assigned work before making a call.
curl -X GET 'https://talent.radioworkflow.com/api/v1/attachments/7001/download' \ -H "Authorization: Bearer $TALENT_API_KEY"
Request fields
All requests use a bearer API key.
attachment_idpathRequiredstring
Pattern: ^[1-9][0-9]{0,9}$
Complete request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"attachment_id": {
"type": "string",
"pattern": "^[1-9][0-9]{0,9}$"
}
},
"required": [
"attachment_id"
],
"additionalProperties": false
}Response
HTTP 200 returns a JSON object. Read ok before using its fields. IDs are decimal strings, instants are Unix seconds, and a missing value is null.
- ok
- true
- api_version
- "1"
- url
- string
- expires_at
- integer
Complete response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"api_version": {
"type": "string",
"const": "1"
},
"url": {
"type": "string",
"maxLength": 8192
},
"expires_at": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"ok",
"api_version",
"url",
"expires_at"
],
"additionalProperties": false
}