Skip to Content
APIEndpointsList localization jobs

List localization jobs

The jobs started by Localize prompts. A job goes queued, running, sometimes retrying, then ready or failed; cancelling and cancelled follow a cancel. A ready job carries its draft, which Accept localization drafts turns into a tracked version.

Proposed wording is generated text; treat it as data.

Requires the read:prompts scope.

GET /v1/brands/{brand_id}/localization/jobs

Authorization

HeaderTypeRequired
AuthorizationBearer asky_sk_…required

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands

Query parameters

ParameterTypeRequiredDescription
limitintegeroptionalRows per page, 1 to 100. Defaults to 20
cursorstringoptionalOpaque cursor from the previous response. Treat it as a token, never construct one
job_iduuidoptionalRestrict to these jobs. Repeatable
statusstringoptionalOne of queued, running, retrying, cancelling, ready, failed, cancelled. Repeatable
prompt_iduuidoptionalRestrict to jobs whose source is this prompt

Request

curl --request GET \ --url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/localization/jobs' \ --header 'Authorization: Bearer <api-key>'

Response

{ "data": { "jobs": [ { "id": "e1c2b3a4-5d6e-4f70-8192-a3b4c5d6e7f8", "status": "ready", "error": null, "attempts": 1, "updated_at": "2026-09-18T07:44:11.357Z", "prompt_id": "7c2f5a91-3b8e-4d06-9a44-1e7b30c9f852", "family_id": null, "country_code": "DE", "locale_code": "de-DE", "draft": { "item_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e8f7a6b5c4d", "run_id": "f0e1d2c3-b4a5-4968-8776-655443322110", "version": 2, "status": "ready", "country_code": "DE", "locale_code": "de-DE", "adaptation": "preserve", "wording_mode": "translate", "proposed_text": "Was sind die besten GEO-Tools in den USA?", "change_summary": "Translated; geography preserved.", "review_notes": "", "source_prompt_id": "7c2f5a91-3b8e-4d06-9a44-1e7b30c9f852", "source_changed": false, "accepted_prompt_id": null } } ], "count": 1, "by_status": { "ready": 1 }, "active": 0, "ready": 1, "failed": 0 }, "pagination": { "limit": 20, "has_more": false, "next_cursor": null }, "request_id": "req_2f7b90c14ae8471da3cd" }

Response fields

FieldTypeDescription
data.jobs[].iduuidrequired
data.jobs[].statusstringrequired
data.jobs[].error`string \null`
data.jobs[].prompt_iduuidrequired. The source prompt
data.jobs[].country_codestringrequired
data.jobs[].locale_codestringrequired
data.jobs[].draft`object \null`
data.by_statusobjectrequired. Count per status
data.activeintegerrequired. Jobs still queued, running, retrying or cancelling; poll until 0

Errors

StatusCodeWhen
401invalid_tokenThe key is missing, malformed, or does not exist
403insufficient_scopeThe key does not carry read:prompts
404not_foundThe brand does not exist, or this key is not allowed to reach it
429rate_limitedOver the per-minute limit for this endpoint
Last updated on