Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X GET https://api.zinndigital.com/v1/content/runs/{runId} \
-H "Authorization: Bearer zdk_live_…"Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
The whole run screen in one call. Gated on `links.view`. 404 rather than 403 for a run in another tenant — a 403 would confirm the row exists.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
runId (path) | string | Ja | — |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
id | string | Ja | — |
state | ContentRunState | Ja | Where a run got to. `partial` is a real, honest, terminal answer and not a euphemism: some sites published and some did not, nothing is left to try, and the failures can be resu… |
publish_policy | ContentRunPublishPolicy | Ja | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
recipe_id | string | Nee | — |
brief | string | Ja | — |
category | string | Nee | — |
post_id | string | Nee | The article this run wrote. Written once and reused for every site, so a resumed run places the SAME copy rather than paying for a second generation. |
attempt | integer | Ja | Which pass over the failures this is. 0 is the original run. |
workflow_id | string | Nee | — |
totals | ContentRunTotals | Ja | — |
reason | ContentRunFailureReason | Nee | — |
provider | string | Nee | — |
message | string | Nee | An English sentence for the customer. Clients should render their own localised text from `reason` and fall back to this only for a code they do not know. |
resumable | boolean | Ja | Whether a resume would actually do anything. False on a paused run with nothing failed — do not offer the button when this is false. |
started_at | string | Nee | — |
finished_at | string | Nee | — |
created_at | string | Ja | — |
items | ContentRunItem[] | Ja | — |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404