API reference
Get a script PDF
Get a short-lived PDF link for up to 25 assigned jobs.
POST
/api/v1/scripts/pdfjobs:readMCP: scripts_pdf
Request
Examples use sample IDs and upload handles. Replace them with values returned for your assigned work before making a call.
curl -X POST 'https://talent.radioworkflow.com/api/v1/scripts/pdf' \
-H "Authorization: Bearer $TALENT_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"job_ids":["4501"]}'Request fields
All requests use a bearer API key. Send body fields as application/json.
job_idsbodyRequiredstring[]
Max items: 25
Complete request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"job_ids": {
"minItems": 1,
"maxItems": 25,
"type": "array",
"items": {
"type": "string",
"pattern": "^[1-9][0-9]{0,9}$"
}
}
},
"required": [
"job_ids"
],
"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 | null
- expires_at
- integer | null
- file_name
- string
- included
- string[]
- missing
- object[]
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": {
"anyOf": [
{
"type": "string",
"maxLength": 8192
},
{
"type": "null"
}
]
},
"expires_at": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"file_name": {
"type": "string"
},
"included": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string",
"pattern": "^[1-9][0-9]{0,9}$"
}
},
"missing": {
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"properties": {
"job_id": {
"type": "string",
"pattern": "^[1-9][0-9]{0,9}$"
},
"reason": {
"type": "string",
"enum": [
"no_script",
"no_pdf",
"not_mergeable"
]
}
},
"required": [
"job_id",
"reason"
],
"additionalProperties": false
}
}
},
"required": [
"ok",
"api_version",
"url",
"expires_at",
"file_name",
"included",
"missing"
],
"additionalProperties": false
}