Skip to main content
POST
/
v1
/
script-jobs
/
generate-all
Start generation for all script jobs in backlog (CREATED status)
curl --request POST \
  --url https://api.yalg.ai/v1/script-jobs/generate-all \
  --header 'x-api-key: <api-key>'
{
  "totalStarted": 1,
  "totalFailed": 1,
  "failed": [
    {
      "id": "string",
      "title": "string",
      "error": "string"
    }
  ]
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Response

Script jobs generation started

totalStarted
number
totalFailed
number
failed
object[]