API / 10
Справочник API
The read surface of the NeoRun generation hub. Every field name is snake_case, every collection answers { data, next_cursor }, and every failure is { error: { code, message, user_message, request_id, details? } }.
Страница собрана из того самого документа OpenAPI, который лежит в репозитории, — версия 1.0.0, OpenAPI 3.1.0. Базовый адрес: https://api.neorun.ru.
Скачать openapi.json — тот же документ байт в байт, для генератора клиента или импорта в свой инструмент.
An API key sent as Authorization: Bearer . The operations published here ask for me:read, models:read, generations:read, generations:write, library:read, library:write, billing:read, support:read, support:write, uploads:write, workflows:read, workflows:write — a key may hold scopes beyond that set — and every scope an operation names in x-required-scope is required, not any of them.
The first-party session cookie, accepted as an alternative to the key and carrying the full scope set. Browser-only: CORS is closed to the key channel, and a mutating request on this one is refused unless its Origin is allowlisted.
The authorization server at this issuer (RFC 8414 discovery under the same origin). PKCE (S256) is required for every client; a granted access token is scoped exactly like an API key.
billing
GET/v1/billing/subscription
Read the caller’s live subscription
Требуемые права:billing:read
The subscription the account is still billed on, or null when it has none — never 404, the singleton-read convention this API uses throughout. Payments, card data and provider ids are never published: status, amount, recurrent_amount, currency, next_payment_at and cancelled_at are the whole of it.
Plan, balance and free quotas are published by GET /v1/me, not here.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200BillingSubscriptionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/billing/transactions
List the caller’s credit ledger
Требуемые права:billing:read
The caller’s own transactions, newest first. Pass next_cursor back as cursor unchanged; it is opaque and must not be parsed. limit defaults to 20 and caps at 100 — over the cap is refused, never clamped.
amount_cc is signed centi-credits: positive credits the balance, negative debits it. generation_id is the id GET /v1/generations/{id} accepts, or null for a row with no link — including history written before the link existed. reason is a closed machine vocabulary derived from the internal ledger, null when none applies.
Plan, balance and free quotas are published by GET /v1/me, not here.
Параметры запроса
cursorstringдлина от 1limitintegerзначение 1–100 · по умолчанию 20
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200CreditTransactionCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_limit,invalid_cursor.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
events
GET/v1/events
Stream generation status changes
Требуемые права:generations:read
A server-sent event stream of the caller’s own generations. It carries one event type, generation.status_changed, whose data is a GenerationEventDto: which generation moved and to what status, never the full record — re-read that through GET /v1/generations/{id} or POST /v1/generations/status.
Every event carries an id:. It is opaque and must not be parsed. Send the last one you received back as Last-Event-ID when reconnecting, and the stream resumes right after it without losing a transition. Comment lines are heartbeats and carry nothing.
When the presented Last-Event-ID cannot be resumed from — it is older than the retention window or is not a cursor of this stream — the first frame is a reset event whose data is an EventStreamResetDto. The stream still answers 200 and continues live after it; catch up on the transitions in between through POST /v1/generations/status.
A terminated event carrying the standard error body ends the stream when access is withdrawn while it is open — a revoked or expired key, a suspended account, a lost scope. The reconnect that follows receives the same refusal as an ordinary error response.
A cancelled generation arrives as FAILED with deleted: true. types narrows the stream to the listed generation types; an unknown type is refused rather than silently matching nothing.
Opening or reconnecting costs one request from the same rate-limit window every other endpoint draws on. Concurrent streams per key are capped and one past the cap is refused with 429 too_many_streams. The heartbeat interval, the cap and the retention window are published in limits.json under events.
Параметры запроса
typesstring
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.Last-Event-IDstringTheid:of the last event received, to resume right after it. Browsers send it on their own when an EventSource reconnects.
Ответы
- 200без телаAn open event stream.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited,too_many_streams.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
generations
GET/v1/generations
List the caller’s generations
Требуемые права:generations:read
The caller’s own history, newest first, ordered by creation time with the id as tiebreaker. Pass next_cursor back as cursor unchanged; it is opaque and must not be parsed. limit defaults to 20 and caps at 100 — over the cap is refused, never clamped.
Параметры запроса
cursorstringдлина от 1limitintegerзначение 1–100 · по умолчанию 20
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200GenerationCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_limit,invalid_cursor.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/generations
Submit a generation
Требуемые права:generations:write
Answers 202 and never 201: the row exists, the work does not. Location points at GET /v1/generations/{id}, the route to poll for the result.
Idempotency-Key is mandatory. A replayed key answers the first submit’s row at its current status rather than a distinct "already done" shape, so a retry after a lost response is safe and charges once. The same key with a different body is refused.
The one surface with no shared request schema, the streaming text surface, answers submit_unavailable naming the type, and nothing is charged. Every other surface submits for real.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.Idempotency-KeystringобязательноеCaller-chosen key that makes a retry replay the first submit instead of charging twice.
Тело запроса (обязательно)
Тело — один из вариантов ниже; какой именно, решает поле-различитель.
посторонние поля не принимаются
promptstringThe outer bound of the field. The limit that applies is the model's ownprompt_limit, published per model byGET /v1/models, and it is lower for most models.длина до 100000 · по умолчанию ""modelstringобязательноедлина 2–80durationintegerзначение 1–30aspectstringдлина до 20resolutionstringдлина до 10image_urlsarray<string>элементов до 30 · элемент: длина до 2048video_urlstringдлина до 2048video_urlsarray<string>элементов до 10 · элемент: длина до 2048audio_urlstringдлина до 2048audio_urlsarray<string>элементов до 10 · элемент: длина до 2048soundbooleankeyframe_timesarray<number>элементов до 10 · элемент: значение 0–20draft_generation_idstringдлина 20–40extend_generation_idstringдлина 20–40keep_original_soundbooleancharacter_orientationstringimagevideovideo_durationnumberзначение больше 0 · значение до 60video_duration_sigstringдлина до 128ref_task_typestringreferenceeditextendprompt_expansionstringThe model's prompt-expansion mode. A model takes only the valuesGET /v1/modelspublishes in itsprompt_expansion_modes; omitted, it applies itsdefault_prompt_expansion.disabledfastbalancedqualityseedintegerThe seed the render starts from. Accepted only whereGET /v1/modelspublisheshas_seed; omitted, the model picks its own.значение 0–2147483647negative_promptstringдлина до 2500multi_shotbooleanshot_typestringcustomizeintelligencemulti_promptarray<object>элементов до 6indexintegerобязательноезначение 1–6promptstringобязательноедлина до 2500durationintegerобязательноезначение 2–30indexintegerобязательноезначение 1–6promptstringобязательноедлина до 2500durationintegerобязательноезначение 2–30bypass_promo_queuebooleanpromo_modestringqueuereference_face_maskarray<boolean>элементов до 30reference_hashesarray<string>элементов до 30 · элемент: длина до 64reference_audioarray<string>элементов до 5 · элемент: длина 1–64typevideoобязательное
посторонние поля не принимаются
promptstringThe outer bound of the field. The limit that applies is the model's ownprompt_limit, published per model byGET /v1/models, and it is lower for most models.длина до 100000 · по умолчанию ""modelstringобязательноедлина 2–80aspectstringдлина до 20resolutionstringдлина до 10negativestringдлина до 5000image_urlsarray<string>элементов до 16 · элемент: длина до 2048style_ref_urlsarray<string>элементов до 5 · элемент: длина до 2048char_ref_urlsarray<string>элементов до 5 · элемент: длина до 2048seedstringдлина до 500n_variantsintegerзначение 1–4image_sizestringдлина до 30guidance_scalenumberoutput_formatstringдлина до 10qualitystringlowmediumhighbackgroundstringopaquetransparentpromo_modestringqueueunlimitedcamera_angleobjectThe camera move of a model confined to its own studio page; ignored by every other model.посторонние поля не принимаютсяhorizontalnumberобязательноезначение 0–360verticalnumberобязательноезначение -30–90zoomnumberобязательноезначение 0–10horizontalnumberобязательноезначение 0–360verticalnumberобязательноезначение -30–90zoomnumberобязательноезначение 0–10typeimageобязательное
посторонние поля не принимаются
promptstringдлина до 500image_urlstringобязательноедлина до 2048modelstringпо умолчанию "topaz-upscale"topaz-upscaletopaz-video-upscaletopaz-video-starlight-fasttopaz-video-starlight-hqtopaz-video-astraflux-upscale-preciseflux-upscale-creativescaleintegerобязательноезначение больше 0 · значение до 9007199254740991input_widthintegerзначение больше 0 · значение до 20000input_heightintegerзначение больше 0 · значение до 20000topaz_modelstringstandard-v2high-fidelity-v2low-resolution-v2cgitext-refineface_recoverybooleanface_strengthnumberзначение 0–1sharpennumberзначение 0–1denoisenumberзначение 0–1fix_compressionnumberзначение 0–1creativitynumberзначение 0–1typeupscaleобязательное
посторонние поля не принимаются
promptstringдлина до 2000 · по умолчанию ""modelstringобязательноедлина 2–80image_urlsarray<string>элементов до 5 · элемент: длина до 2048formatstringGLBOBJUSDZFBXSTLMP4resolutionstring15361536promaterialstringPBRShadedNonemesh_modestringRawQuadgenerate_typestringNormalGeometryenable_pbrbooleanenable_geometrybooleanface_countintegerзначение 1000–2000000faceintegerзначение 1000–2000000qualityintegerзначение 1000–2000000subdivision_levelintegerзначение 0–3type3dобязательное
посторонние поля не принимаются
video_urlstringобязательноедлина до 2048audio_urlstringобязательноедлина до 2048video_duration_secnumberзначение больше 0 · значение до 10audio_duration_secnumberзначение больше 0 · значение до 30video_duration_sigstringдлина до 128audio_duration_sigstringдлина до 128typelipsyncобязательное
посторонние поля не принимаются
audio_urlstringобязательноедлина до 2048image_urlsarray<string>обязательноеэлементов 1–1 · элемент: длина до 2048promptstringдлина до 2000auto_maskbooleanmodelstringomnihuman-1.5wan2.2-digital-humanresolutionstring480p720p1080pturbo_modebooleanaudio_duration_secnumberзначение больше 0 · значение до 60audio_duration_sigstringдлина до 128typeomnihumanобязательное
посторонние поля не принимаются
image_urlstringобязательноедлина до 2048modestringпо умолчанию "std"stdpropromptstringдлина до 2000audio_urlstringобязательноедлина до 2048audio_duration_secnumberзначение больше 0 · значение до 60audio_duration_sigstringдлина до 128typeavatarобязательное
посторонние поля не принимаются
textstringобязательноедлина 2–40000voice_idstringобязательноедлина 1–120voice_namestringдлина до 120modelstringtext-to-speech-turbo-2-5text-to-speech-flash-2-5text-to-speech-multilingual-v2text-to-speech-v3text-to-speech-v4text-to-speech-v4-turbostabilitynumberзначение 0–1similarity_boostnumberзначение 0–1stylenumberзначение 0–1speednumberзначение 0.7–1.2typevoiceобязательное
посторонние поля не принимаются
titlestringдлина до 80lyricsstringдлина до 5000stylestringдлина до 1000modelstringдлина 2–80negative_tagsstringдлина до 500vocal_genderstringmfstyle_weightnumberзначение 0–1typemusicобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringдлина до 1000file_urlstringобязательноедлина до 2048promptstringдлина 2–2000instrumentalbooleantypemusic-coverобязательное
посторонние поля не принимаются
promptstringобязательноедлина 5–500modelstringV6V6_WILDV6_MINIinstrumentalbooleantypesongобязательное
посторонние поля не принимаются
themestringобязательноедлина 2–200moodstringдлина до 120typelyricsобязательное
посторонние поля не принимаются
marketplacestringобязательноедлина 1–20categorystringобязательноедлина 1–20backgroundstringобязательноедлина 1–20textstringдлина до 100promptstringдлина до 500modelstringобязательноеnano-banana-pronano-banana-2nano-banana-2.1resolutionstring1k2k4kaspectstring3:41:1image_urlsarray<string>обязательноеэлементов 1–3 · элемент: длина до 2048typecard-designобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringобязательноедлина 1–1000promptstringобязательноедлина 1–5000file_urlstringдлина до 2048typemusic-vocalsобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringдлина до 1000promptstringдлина 2–2000file_urlstringдлина до 2048task_idstringдлина 1–200audio_idstringдлина 1–200source_generation_idstringдлина 1–100source_indexintegerзначение 0–100typemusic-instrumentalобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringдлина до 1000promptstringдлина 2–2000file_urlstringдлина до 2048task_idstringдлина 1–200audio_idstringдлина 1–200source_generation_idstringдлина 1–100source_indexintegerзначение 0–100typemusic-stemsобязательное
посторонние поля не принимаются
typetextобязательное
Ответы
- 202GenerationDtoAccepted. The generation row exists;
Locationnames where its result will appear.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.LocationstringThe generation to poll, as/v1/generations/{id}. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.LocationstringThe generation to poll, as/v1/generations/{id}.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 402ApiErrorRefused with
payment_required,insufficient_credits,key_spend_limit_reached,grant_spend_limit_reached.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,moderation_blocked,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
duplicate_key_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled,submit_unavailable. Rate-limit headers are absent onapi_disabled, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.
POST/v1/generations/status
Read the status of several generations at once
Требуемые права:generations:read
Answers several generations in one request. Follow progress through the stream at GET /v1/events; this route is the catch-up after a stream was lost or answered with a reset, and the way to read a known set of ids at any time. One generation reads through GET /v1/generations/{id}. It draws on the same request window every other endpoint does. DONE is the one status that never changes again; FAILED ends the attempt rather than the record, because a late provider answer can still recover such a row into DONE.
The body carries between 1 and 50 ids. Nothing is repaired: more ids than the cap is refused, an empty array is refused, a duplicated id is refused, and an id that is not a resource id is refused — none of them is trimmed, deduplicated or skipped.
An id belonging to another account, or one that never existed, is simply absent from data. Absence is the only signal, which is what keeps the endpoint from confirming that somebody else’s generation exists.
It is a POST because the id list does not belong in a URL. It reads, creates nothing, and answers 200.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
idsarray<string>обязательноеэлементов 1–50 · без повторов
Ответы
- 200GenerationStatusCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request,invalid_limit.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/generations/{id}
Read one generation
Требуемые права:generations:read
The same shape the collection publishes — there is no summary form beside a full one. An id belonging to another account answers 404 rather than 403, so a refusal never confirms that a generation exists.
Параметры пути
idstringобязательноеThe generation id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200GenerationDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
PATCH/v1/generations/{id}
Rename one generation
Требуемые права:library:write
Edits the title only — generation metadata, under library:write rather than generations:write, because a rename spends nothing. The title is trimmed and stored as the studio stores it; an empty one clears it. The answer is the id and the title only, as GET /v1/generations/{id} would serve it, so a title that read route withholds is withheld here too; reading the rest of the generation takes generations:read. An id belonging to another account answers 404, so a refusal never confirms it. Moving a generation into a folder is POST /v1/library/move.
Параметры пути
idstringобязательноеThe generation id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
titlestringобязательноедлина до 120
Ответы
- 200LibraryRenameDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
DELETE/v1/generations/{id}
Cancel or delete one generation
Требуемые права:generations:write
The studio’s own cancel reached by key, on the one shared implementation: it cancels before dispatch and deletes once terminal. refunded reports whether this request actually moved credits back — it never decides a refund, and a terminal row is never refunded because a provider was already contacted.
A claimed row answers generation_in_flight. A frozen row is cancelled only while QUEUED or PENDING with no provider task; otherwise generation_frozen. Repeating on a deleted row is a success. Another account’s id answers 404, so a refusal never confirms it.
Параметры пути
idstringобязательноеThe generation id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200GenerationCancelDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 402ApiErrorRefused with
payment_required.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
generation_frozen,generation_in_flight.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/generations/{id}/outputs/{kind}/{index}
Download one generation output
Требуемые права:generations:read
The file behind one entry of output_urls, streamed by this API with the caller’s own credential — use the url exactly as published rather than assembling one. kind is the output_urls channel and index the position the url carries, which can differ from the entry’s place in that list when an earlier output is not served.
Content-Type is the type the file was stored with, Content-Length its size. The answer is Cache-Control: private, no-store: it belongs to the credential that asked.
A single Range: bytes=… is honoured with 206 and Content-Range, so a download resumes and a video seeks; a multi-range request, or one past the end of the file, gets the whole file with 200.
A generation of another account, a deleted one, a position with no file behind it and an output this API does not hold all answer the same 404, so a refusal never confirms a row.
Besides a key and a /v1 OAuth token, this route and the library content route accept an OAuth token issued for /mcp, so an MCP client can follow the url get_output hands back.
Параметры пути
idstringобязательноеThe generation id, as published indata[].id.kindstringобязательноеTheoutput_urlschannel —image,original,video,audio,download,wavormodel3d.indexintegerобязательноеThe stored position the published url carries.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.RangestringOnebytes=range to resume a download or seek a video. A multi-range request, or one past the end of the file, is answered with the whole file.
Ответы
- 200без телаThe file itself.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size.- 206без телаThe requested slice of the file;
Content-Rangenames it.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/generations/{id}/report
Report a problem with one generation
Требуемые права:generations:write
«Сообщить о проблеме» reached by key. It records and moves nothing: this is the route to a manual refund a human grants after diagnosis, never an automatic one. Filing a report therefore never changes a balance, and the response carries no credit field.
reason: "moderation" withdraws the generation as well as filing the report — except one already held for review, which only an operator withdraws and whose report is still accepted; "failure", the default, leaves it retryable. A new "failure" report on a generation already settled automatically answers generation_already_settled — there is nothing left to ask for — while a "moderation" report and a replay of the same client_msg_id are accepted regardless.
Send client_msg_id — a UUID — to make a retry after a lost response replay the first ticket instead of filing a second one. The same id with different text is refused rather than silently reused, and an id two callers could both pick would collide across accounts.
Параметры пути
idstringобязательноеThe generation id the report is about.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
textstringобязательноедлина 1–2000reasonstringпо умолчанию "failure"failuremoderationclient_msg_idstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuid
Ответы
- 201GenerationReportDtoThe report was filed; the ticket it landed on is named.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
report_replay_mismatch.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 422ApiErrorRefused with
generation_already_settled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
knowledge
GET/v1/knowledge
Search the public knowledge base
Требуемые права:models:read
Public help articles and per-model prompting guides, matched on title and summary; without q it answers the first limit of the whole base, not all of it. Articles come first in editorial order, then guides; a specific slug is reached by searching its words, or read directly at GET /v1/knowledge/{slug}. Only content published for users is ever returned — the support team’s internal notes are not part of this surface. Each result carries lang: articles are served as written (mostly ru), guides in en. Upstream provider names are masked in every result.
Capped, not paged: limit defaults to 20 and caps at 50, and next_cursor is always null. Over the cap is refused, never clamped.
Параметры запроса
qstringдлина до 120limitintegerзначение 1–50 · по умолчанию 20
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200KnowledgeCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request,invalid_limit.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/knowledge/{slug}
Read one knowledge article
Требуемые права:models:read
The full article behind a slug from GET /v1/knowledge, in the language it was written in (lang), with upstream provider names masked. A slug that is not published — unknown, withdrawn, lapsed or never public — answers 404 the same way, so the refusal confirms nothing.
Параметры пути
slugstringобязательноеThe article slug, as published indata[].slug.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200KnowledgeArticleDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
library
GET/v1/library/assets
List the caller’s uploaded references
Требуемые права:library:read
The caller’s own uploads, newest first. Pass next_cursor back as cursor unchanged; it is opaque and must not be parsed. limit defaults to 20 and caps at 100 — over the cap is refused, never clamped.
Параметры запроса
cursorstringдлина от 1limitintegerзначение 1–100 · по умолчанию 20
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200LibraryAssetCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_limit,invalid_cursor.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
PATCH/v1/library/assets/{id}
Rename an uploaded reference
Требуемые права:library:write
The title is trimmed and stored as the studio stores it; an empty one clears it. The answer is the id and the stored title only; reading the rest of the asset takes library:read. An asset of another account, a deleted one and one hidden from the caller’s library all answer the same 404, and none of them is renamed.
Параметры пути
idstringобязательноеThe asset id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
titlestringобязательноедлина до 120
Ответы
- 200LibraryRenameDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/library/assets/{id}/content
Download one uploaded reference
Требуемые права:library:read
The file behind an asset’s output_urls entry, streamed by this API with the caller’s own credential. The same headers as a generation output: the stored Content-Type, the size as Content-Length, and Cache-Control: private, no-store. A byte range is answered as on the generation output route.
An asset of another account, a deleted one, one hidden from the caller’s library and one this API does not hold all answer the same 404. An OAuth token issued for /mcp is accepted here as on the generation output route.
Параметры пути
idstringобязательноеThe asset id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.RangestringOnebytes=range to resume a download or seek a video. A multi-range request, or one past the end of the file, is answered with the whole file.
Ответы
- 200без телаThe file itself.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size.- 206без телаThe requested slice of the file;
Content-Rangenames it.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Accept-RangesstringAlwaysbytes.Content-RangestringOn a 206: the slice sent and the file’s full size.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/library/folders
List the caller’s library folders
Требуемые права:library:read
Folders are capped rather than paged, so this route takes no parameters and next_cursor is always null — the same envelope every other collection answers with. Ordered by position, then creation time, as the studio sidebar shows them.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200LibraryFolderCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/library/folders
Create a library folder
Требуемые права:library:write
The studio’s own folder create, on the one shared implementation: the folder is placed last, names are unique per account, and the account holds a capped number of folders. A name already taken answers folder_name_taken; a full library answers folder_limit_reached. The answer is the new id and the name as stored; the folder’s position and creation time are read through GET /v1/library/folders, which takes library:read. Spends nothing.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
namestringобязательноедлина 1–64
Ответы
- 201LibraryFolderWriteDtoThe folder was created.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
folder_limit_reached,folder_name_taken.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
PATCH/v1/library/folders/{id}
Rename or reorder a library folder
Требуемые права:library:write
Send name, position or both. position is the sort key the folder list reads, a non-negative 32-bit integer; folders sharing one list in creation order. The caller owns the ordering and nothing renumbers the other folders. The answer is the id and only the fields sent, as stored; reading the rest of the folder takes library:read. A folder of another account answers 404, exactly as one that never existed.
Параметры пути
idstringобязательноеThe folder id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
namestringдлина 1–64positionintegerзначение 0–2147483647
Ответы
- 200LibraryFolderWriteDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
folder_name_taken.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
DELETE/v1/library/folders/{id}
Delete a library folder
Требуемые права:library:write
Deletes the folder only: the generations and uploads in it survive and return to the root. A folder of another account answers 404, exactly as one that never existed.
Параметры пути
idstringобязательноеThe folder id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200OkDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/library/move
Move library items into a folder or back to the root
Требуемые права:library:write
item_ids names generations and uploads alike; folder_id: null files them back to the root. An id that is not the caller’s, or not live, is skipped rather than refused, as in the studio, and moved counts only what was actually filed. A target folder of another account answers 404, exactly as one that never existed.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
item_idsarray<string>обязательноеэлементов 1–200folder_idstringnullобязательное
Ответы
- 200LibraryMoveDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
me
GET/v1/me
Read the caller’s account
Требуемые права:me:read
Plan, credit balance and free quotas for whoever the credential resolved to. It takes no parameters at all: the subject is never named in the request, so another account cannot be read by typing its id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200MeDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
models
GET/v1/models
List the selectable models and their prices
Требуемые права:models:read
The machine-readable catalog: what each model accepts, and what it costs this caller — price_cc is quoted in the unit beside it, so a per-second rate must be multiplied by the billable duration before it is read as the price of a generation. A model whose pricing.quote is "estimate" publishes no rate: its charge is measured from the source, so POST /v1/pricing/estimate with the full request is its price. Any of it can change at any moment, so the response always revalidates: send the ETag back in If-None-Match and read the 304. The value is opaque — do not parse it.
Параметры запроса
typestringimagevideo3dvoicemusic
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.If-None-MatchstringTheETagof a previous response, to be answered with 304 when unchanged.
Ответы
- 200ModelCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.ETagstringSend it back inIf-None-Matchto revalidate; opaque, never parsed. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.ETagstringSend it back inIf-None-Matchto revalidate; opaque, never parsed.- 304без телаThe catalog is unchanged since the
ETagsent inIf-None-Match.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.ETagstringSend it back inIf-None-Matchto revalidate; opaque, never parsed. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.ETagstringSend it back inIf-None-Matchto revalidate; opaque, never parsed.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
pricing
POST/v1/pricing/estimate
Price a submit before sending it
Требуемые права:models:read
What POST /v1/generations would charge for this exact body, computed by the same function that will charge it rather than by a second expression over the same tables. It takes the submit body itself, so a caller prices and submits one request rather than two shapes.
price_cc is a ceiling, never an under-quote: a free quota and a provider promo run after it and can only lower what the ledger debits. No cost or margin figure appears anywhere in the response.
POST for a body-carrying read, and 200 rather than 201 — nothing is created, no key is claimed and nothing is spent, so a retry is free. It needs only models:read, and no paid gate: a caller must not have to pay to find out what paying costs.
A surface priced on media — the clip a lipsync re-voices, the track an avatar or omnihuman animates, the picture or clip an upscale enlarges, the reference clips a video edits or bills — is quoted by measuring the referenced files on the server exactly as the submit measures them; a length or size the caller declares is never read. The files must exist and belong to the caller: one that cannot be read is refused with invalid_request rather than quoted as nothing, and nothing is touched, claimed or counted. A promo_mode submit, billed by entitlement rather than by a rate, answers estimate_unavailable.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
Тело — один из вариантов ниже; какой именно, решает поле-различитель.
посторонние поля не принимаются
promptstringThe outer bound of the field. The limit that applies is the model's ownprompt_limit, published per model byGET /v1/models, and it is lower for most models.длина до 100000 · по умолчанию ""modelstringобязательноедлина 2–80durationintegerзначение 1–30aspectstringдлина до 20resolutionstringдлина до 10image_urlsarray<string>элементов до 30 · элемент: длина до 2048video_urlstringдлина до 2048video_urlsarray<string>элементов до 10 · элемент: длина до 2048audio_urlstringдлина до 2048audio_urlsarray<string>элементов до 10 · элемент: длина до 2048soundbooleankeyframe_timesarray<number>элементов до 10 · элемент: значение 0–20draft_generation_idstringдлина 20–40extend_generation_idstringдлина 20–40keep_original_soundbooleancharacter_orientationstringimagevideovideo_durationnumberзначение больше 0 · значение до 60video_duration_sigstringдлина до 128ref_task_typestringreferenceeditextendprompt_expansionstringThe model's prompt-expansion mode. A model takes only the valuesGET /v1/modelspublishes in itsprompt_expansion_modes; omitted, it applies itsdefault_prompt_expansion.disabledfastbalancedqualityseedintegerThe seed the render starts from. Accepted only whereGET /v1/modelspublisheshas_seed; omitted, the model picks its own.значение 0–2147483647negative_promptstringдлина до 2500multi_shotbooleanshot_typestringcustomizeintelligencemulti_promptarray<object>элементов до 6indexintegerобязательноезначение 1–6promptstringобязательноедлина до 2500durationintegerобязательноезначение 2–30indexintegerобязательноезначение 1–6promptstringобязательноедлина до 2500durationintegerобязательноезначение 2–30bypass_promo_queuebooleanpromo_modestringqueuereference_face_maskarray<boolean>элементов до 30reference_hashesarray<string>элементов до 30 · элемент: длина до 64reference_audioarray<string>элементов до 5 · элемент: длина 1–64typevideoобязательное
посторонние поля не принимаются
promptstringThe outer bound of the field. The limit that applies is the model's ownprompt_limit, published per model byGET /v1/models, and it is lower for most models.длина до 100000 · по умолчанию ""modelstringобязательноедлина 2–80aspectstringдлина до 20resolutionstringдлина до 10negativestringдлина до 5000image_urlsarray<string>элементов до 16 · элемент: длина до 2048style_ref_urlsarray<string>элементов до 5 · элемент: длина до 2048char_ref_urlsarray<string>элементов до 5 · элемент: длина до 2048seedstringдлина до 500n_variantsintegerзначение 1–4image_sizestringдлина до 30guidance_scalenumberoutput_formatstringдлина до 10qualitystringlowmediumhighbackgroundstringopaquetransparentpromo_modestringqueueunlimitedcamera_angleobjectThe camera move of a model confined to its own studio page; ignored by every other model.посторонние поля не принимаютсяhorizontalnumberобязательноезначение 0–360verticalnumberобязательноезначение -30–90zoomnumberобязательноезначение 0–10horizontalnumberобязательноезначение 0–360verticalnumberобязательноезначение -30–90zoomnumberобязательноезначение 0–10typeimageобязательное
посторонние поля не принимаются
promptstringдлина до 500image_urlstringобязательноедлина до 2048modelstringпо умолчанию "topaz-upscale"topaz-upscaletopaz-video-upscaletopaz-video-starlight-fasttopaz-video-starlight-hqtopaz-video-astraflux-upscale-preciseflux-upscale-creativescaleintegerобязательноезначение больше 0 · значение до 9007199254740991input_widthintegerзначение больше 0 · значение до 20000input_heightintegerзначение больше 0 · значение до 20000topaz_modelstringstandard-v2high-fidelity-v2low-resolution-v2cgitext-refineface_recoverybooleanface_strengthnumberзначение 0–1sharpennumberзначение 0–1denoisenumberзначение 0–1fix_compressionnumberзначение 0–1creativitynumberзначение 0–1typeupscaleобязательное
посторонние поля не принимаются
promptstringдлина до 2000 · по умолчанию ""modelstringобязательноедлина 2–80image_urlsarray<string>элементов до 5 · элемент: длина до 2048formatstringGLBOBJUSDZFBXSTLMP4resolutionstring15361536promaterialstringPBRShadedNonemesh_modestringRawQuadgenerate_typestringNormalGeometryenable_pbrbooleanenable_geometrybooleanface_countintegerзначение 1000–2000000faceintegerзначение 1000–2000000qualityintegerзначение 1000–2000000subdivision_levelintegerзначение 0–3type3dобязательное
посторонние поля не принимаются
video_urlstringобязательноедлина до 2048audio_urlstringобязательноедлина до 2048video_duration_secnumberзначение больше 0 · значение до 10audio_duration_secnumberзначение больше 0 · значение до 30video_duration_sigstringдлина до 128audio_duration_sigstringдлина до 128typelipsyncобязательное
посторонние поля не принимаются
audio_urlstringобязательноедлина до 2048image_urlsarray<string>обязательноеэлементов 1–1 · элемент: длина до 2048promptstringдлина до 2000auto_maskbooleanmodelstringomnihuman-1.5wan2.2-digital-humanresolutionstring480p720p1080pturbo_modebooleanaudio_duration_secnumberзначение больше 0 · значение до 60audio_duration_sigstringдлина до 128typeomnihumanобязательное
посторонние поля не принимаются
image_urlstringобязательноедлина до 2048modestringпо умолчанию "std"stdpropromptstringдлина до 2000audio_urlstringобязательноедлина до 2048audio_duration_secnumberзначение больше 0 · значение до 60audio_duration_sigstringдлина до 128typeavatarобязательное
посторонние поля не принимаются
textstringобязательноедлина 2–40000voice_idstringобязательноедлина 1–120voice_namestringдлина до 120modelstringtext-to-speech-turbo-2-5text-to-speech-flash-2-5text-to-speech-multilingual-v2text-to-speech-v3text-to-speech-v4text-to-speech-v4-turbostabilitynumberзначение 0–1similarity_boostnumberзначение 0–1stylenumberзначение 0–1speednumberзначение 0.7–1.2typevoiceобязательное
посторонние поля не принимаются
titlestringдлина до 80lyricsstringдлина до 5000stylestringдлина до 1000modelstringдлина 2–80negative_tagsstringдлина до 500vocal_genderstringmfstyle_weightnumberзначение 0–1typemusicобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringдлина до 1000file_urlstringобязательноедлина до 2048promptstringдлина 2–2000instrumentalbooleantypemusic-coverобязательное
посторонние поля не принимаются
promptstringобязательноедлина 5–500modelstringV6V6_WILDV6_MINIinstrumentalbooleantypesongобязательное
посторонние поля не принимаются
themestringобязательноедлина 2–200moodstringдлина до 120typelyricsобязательное
посторонние поля не принимаются
marketplacestringобязательноедлина 1–20categorystringобязательноедлина 1–20backgroundstringобязательноедлина 1–20textstringдлина до 100promptstringдлина до 500modelstringобязательноеnano-banana-pronano-banana-2nano-banana-2.1resolutionstring1k2k4kaspectstring3:41:1image_urlsarray<string>обязательноеэлементов 1–3 · элемент: длина до 2048typecard-designобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringобязательноедлина 1–1000promptstringобязательноедлина 1–5000file_urlstringдлина до 2048typemusic-vocalsобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringдлина до 1000promptstringдлина 2–2000file_urlstringдлина до 2048task_idstringдлина 1–200audio_idstringдлина 1–200source_generation_idstringдлина 1–100source_indexintegerзначение 0–100typemusic-instrumentalобязательное
посторонние поля не принимаются
titlestringдлина до 80stylestringдлина до 1000promptstringдлина 2–2000file_urlstringдлина до 2048task_idstringдлина 1–200audio_idstringдлина 1–200source_generation_idstringдлина 1–100source_indexintegerзначение 0–100typemusic-stemsобязательное
посторонние поля не принимаются
typetextобязательное
Ответы
- 200PricingEstimateDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 422ApiErrorRefused with
estimate_unavailable.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
subscription
POST/v1/subscription/cancel
Cancel the caller’s auto-renewal
Требуемые права:billing:read
The site’s own cancel, session only. The provider stops renewing at once; the plan runs to plan_ends_at — the end of the period already paid for — and superseded reports the one case where nothing ends, because a newer subscription already renews the plan. reason and reason_text feed the retention funnel and are optional.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
reasonstring | nullexpensivemodelspauseother_serviceotherreason_textstring | null
Ответы
- 200SubscriptionCancelDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request,no_active_plan.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
subscription_not_linked.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error,subscription_cancel_unsaved.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 502ApiErrorRefused with
subscription_cancel_failed.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/subscription/card-change
Start changing the card an eligible subscription renews on
Требуемые права:billing:read
Session only. Opens a 1 RUB card check the browser runs through the payment widget as a two-stage authorization (paymentSchema: "Dual"): the sum is held, never captured, and released once the change completes or expires on its own. The answer is what the widget needs — payment_id is its invoiceId. Any earlier unfinished check of the caller is abandoned by this call.
Refused with card_change_unavailable when the subscription is not eligible for a card change, and with checkout_in_progress while a plan checkout is open.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 201CardChangeBeginDtoThe card check was opened.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
card_change_unavailable,checkout_in_progress.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/subscription/card-change/complete
Finish a card change after the widget authorized the check
Требуемые права:billing:read
Session only. The authorization is read back from the provider — by transaction_id when the widget reported one, otherwise by invoice — and must be this caller’s own 1 RUB Authorized check on a card, or card_check_not_authorized is answered and nothing changes. A new subscription is then created on the new card and the old one cancelled; a subscription that is overdue is charged on the new card at once, which charge reports. The hold is released on every outcome. Calling twice answers card_change_in_progress.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
payment_idstringобязательноедлина от 1transaction_idintegerзначение больше 0 · значение до 9007199254740991
Ответы
- 200CardChangeCompleteDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request,plan_expired,renewal_already_on.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
subscription_not_linked,card_check_not_authorized,card_change_in_progress,card_change_unavailable,checkout_in_progress,subscription_superseded.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 502ApiErrorRefused with
card_change_failed,subscription_resume_failed.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/subscription/resume
Turn the caller’s auto-renewal back on
Требуемые права:billing:read
The site’s own resume, reached over the session cookie only — no scope in the vocabulary names it, so a key or an OAuth grant answers insufficient_scope. The cancellation marker is lifted and renewal is re-enabled on the subscription’s saved payment method. Nothing is charged by this call; next_pay_date is when the first renewal lands.
A plan checkout still open on any provider refuses with checkout_in_progress; a newer subscription that already renews the plan answers subscription_superseded.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200SubscriptionResumeDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
plan_expired,renewal_already_on.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
subscription_not_linked,card_token_missing,checkout_in_progress,subscription_superseded,subscription_recancelled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 502ApiErrorRefused with
subscription_resume_failed.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
support
GET/v1/support/messages
Read the caller’s support thread
Требуемые права:support:read
The caller’s one support ticket, exactly as the site shows it: staff notes and messages from before the thread was last archived are never included, and reading it marks it read the same way opening the chat does. An account with no ticket yet answers an empty list, never 404 — the same singleton-read convention GET /v1/billing/subscription uses.
Every message names from: "user" for the caller’s own messages, "support" for anything a staff role sent. text is exactly as authored — never translated, never rewritten — and images are the URLs the site itself renders.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200SupportMessageCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/support/messages
Send a message into the caller’s support thread
Требуемые права:support:write
Raises the caller’s one support ticket the same way the site’s chat does — opening it if none exists yet, reopening it if it was closed. A message sent through this route posts no chat notification: this service has no staff Telegram transport, so the ticket and its unread count are raised exactly as a report filed through POST /v1/generations/{id}/report is, without a card appearing anywhere. Staff find it through the admin queue.
images are references from POST /v1/uploads, never a public URL: each one is byte-validated and ownership-checked at send, exactly like a submit reference, and a refusal names the limit it hit rather than silently resizing or dropping the picture. A refused reference writes no message at all — the picture and the text arrive together or not at all.
Send client_msg_id — a UUID — to make a retry after a lost response replay the first send instead of posting a second message, with the same pictures it was answered with the first time. The same id with different text or a different number of images answers support_replay_mismatch rather than being silently reused.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
textstringдлина до 2000 · по умолчанию ""imagesarray<string>элементов до 3client_msg_idstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuid
Ответы
- 201SupportMessageSentDtoThe message was sent (or, on a replay, was already sent); the thread it landed on is named.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
support_replay_mismatch.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
uploads
POST/v1/uploads
Get a presigned PUT for a reference file
Требуемые права:uploads:write
Signs a single PUT into the private bucket and tells you exactly what to send. A presign is not a spend: it buys storage the retention sweep reclaims, never credits, so this route carries no paid gate — only its own uploads:write scope, kept separate from generations:write so a key may not mint a write capability into our storage.
200 and not 201: no object exists yet. It exists only once you complete the PUT with exactly the headers returned — the signature binds them, and R2 answers 403 on a mismatch. content_length is exact rather than a maximum, because a query-presigned PUT binds a length.
The ticket writes its key once: If-None-Match: * is signed with the rest, so a second PUT to the same url answers 412 rather than replacing bytes a submit may already have accepted. A PUT that must be retried takes a fresh ticket.
The ticket is registered in your library before it is handed over, which is what puts the object on the retention clock. A ticket you never use leaves an empty library entry that the same retention reclaims.
Send reference back at submit time (e.g. in image_urls). The bytes are checked at submit, not at upload, so a signature here is not an acceptance of the file.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
kindstringобязательноеimagevideoaudiofilecontent_typestringобязательноедлина от 1content_lengthintegerобязательноезначение больше 0 · значение до 9007199254740991
Ответы
- 200UploadTicketDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled,upload_unavailable. Rate-limit headers are absent onapi_disabled, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.
PUT/v1/uploads/content
Complete an upload through this API instead of the store
Требуемые права:uploads:write
The same ticket, finished against this host. Use it when a direct PUT to url cannot carry your file: that url points at the object store’s own host, and some networks throttle it to the point where anything but a tiny body fails to arrive. proxy_path on the ticket is this route with the reference already filled in.
Send the bytes as the raw body with the same Content-Type the ticket was issued for. The ticket decides the type and the exact length, so a mismatch is refused rather than stored.
One ticket writes once, whichever path you use, so neither can replace bytes a submit may already have accepted. The refusal differs by who answers it: a second completion here is 409 duplicate_key_conflict, while a second PUT against url is refused by the store itself as 412 — that condition is signed into the url and never reaches this API.
The answer echoes the reference and the byte count actually stored, so a client holding the ticket and the file apart can match them without keeping the query it just sent.
Параметры запроса
referencestringобязательноедлина 1–512
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.Content-LengthintegerобязательноеThe ticket'scontent_length, exactly. Judged before the body is read, so a chunked request carrying no length is refused rather than stored.
Ответы
- 200UploadStoredDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
duplicate_key_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
whoami
GET/v1/whoami
Read what the credential resolved to
Требуемые права:me:read
The principal behind this request: which account, which channel, which credential, and the scopes it holds. A session carries the full scope set. spend_limit is the credential’s own monthly ceiling for the current calendar month in Moscow time — null on the session channel, and monthly_limit_cc/remaining_cc null on a credential with no ceiling set — so a caller can check its remaining budget before submitting.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WhoamiDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
workflows
GET/v1/workflows/blocks
List the caller’s saved blocks
Требуемые права:workflows:read
Reusable node groups saved out of a chain, newest-updated first, capped at 100 — next_cursor is always null.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowBlockCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/workflows/blocks
Save a new block
Требуемые права:workflows:write
Stores a subgraph — one or more connected nodes selected out of a chain — under a caller- chosen id. The same reference-ownership and account-ceiling refusals as POST /v1/workflows/templates apply, against the block’s own 100-item ceiling.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
idstringобязательноешаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidtitlestringобязательноедлина 1–80descriptionstringдлина до 500 · по умолчанию ""canvasobjectобязательноеdocumentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32documentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2xnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32
Ответы
- 201WorkflowBlockMutationDtoThe block was stored.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
resource_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/workflows/blocks/{id}
Read one block, or one of its saved revisions
Требуемые права:workflows:read
Without revision: the current block plus its lightweight revision list. With it: that one historical revision in full, and no revision list beside it.
Параметры пути
idstringобязательноеThe block id.
Параметры запроса
revisionstringшаблон ^\d+$
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowBlockGetDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
PATCH/v1/workflows/blocks/{id}
Update one block
Требуемые права:workflows:write
The same optimistic-concurrency rule as chains: expected_revision must match the block’s current revision, or the write answers revision_conflict.
Параметры пути
idstringобязательноеThe block id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
посторонние поля не принимаются
expected_revisionintegerобязательноезначение 0–2147483646titlestringобязательноедлина 1–80descriptionstringдлина до 500 · по умолчанию ""canvasobjectобязательноеdocumentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32documentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2xnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32
Ответы
- 200WorkflowBlockMutationDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
revision_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
DELETE/v1/workflows/blocks/{id}
Delete one block
Требуемые права:workflows:write
A soft delete — the block no longer appears in the list or is resolvable by id.
Параметры пути
idstringобязательноеThe block id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200OkDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/workflows/estimate
Price a chain before running it
Требуемые права:workflows:read
What POST /v1/workflows/runs would charge for this exact graph: the sum of every node’s price with the plan discount applied exactly as the run applies it — never an under-quote. A plan’s free generations never apply to a chain, so neither this estimate nor the run spends them. Carries no paid gate, the same reasoning as POST /v1/pricing/estimate.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
graphobjectобязательноеdocumentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32documentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2xnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32
Ответы
- 200WorkflowEstimateDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/workflows/retry-item
Retry one failed iterator item, or preview its cost first
Требуемые права:workflows:write
action: "preview" prices the retry without spending or claiming an Idempotency-Key; action: "run" requires the header and submits exactly like POST /v1/workflows/runs, answering 202. Every sibling item sharing the same failed iterator retries alongside it.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.Idempotency-KeystringобязательноеRequired on every call; onlyaction: "run"uses it to dedupe a retry.
Тело запроса (обязательно)
workflow_idstringобязательноеnode_keystringобязательноедлина 1–200template_idstringобязательноеactionstringобязательноеpreviewrun
Ответы
- 200WorkflowRetryItemResponseDto
action: "preview"answers 200;action: "run"answers 202 instead.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 202WorkflowRetryItemResponseDtoA submitted retry (
action: "run"), same body shape.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 402ApiErrorRefused with
payment_required,insufficient_credits.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,moderation_blocked,access_denied,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
resource_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled,submit_unavailable. Rate-limit headers are absent onapi_disabled, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.
GET/v1/workflows/runs
List the caller’s runs
Требуемые права:workflows:read
The caller’s own run history, newest first. Pass next_cursor back as cursor unchanged; it is opaque and must not be parsed. limit defaults to 20 and caps at 100 — over the cap is refused, never clamped.
Параметры запроса
cursorstring
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowRunListDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_limit,invalid_cursor.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/workflows/runs
Run a chain
Требуемые права:workflows:write
Compiles and submits a canvas graph over the shared submit pipeline — the same moderation, reference-trust and money edges POST /v1/generations composes. Root nodes are submitted inline; the rest release as their inputs finish, polled through GET /v1/workflows/runs/{id}.
Idempotency-Key is mandatory and is this run’s durable identity: a replayed key with the same graph answers the first submit’s row without moderating or charging a second time. A closed canvas answers not_found on this route too.
A session may run without an active paid plan; a non-staff key without one answers payment_required — the same split POST /v1/generations enforces.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.Idempotency-KeystringобязательноеCaller-chosen key that makes a retry replay the first run instead of a second one.
Тело запроса (обязательно)
graphobjectобязательноеdocumentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32documentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2xnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32template_idstring
Ответы
- 202WorkflowRunCreatedDtoAccepted. The run exists;
Locationnames where its status will appear.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.LocationstringThe run to poll, as/v1/workflows/runs/{id}. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.LocationstringThe run to poll, as/v1/workflows/runs/{id}.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 402ApiErrorRefused with
payment_required,insufficient_credits.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,moderation_blocked,access_denied,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
resource_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled,submit_unavailable. Rate-limit headers are absent onapi_disabled, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.
GET/v1/workflows/runs/{id}
Read one run
Требуемые права:workflows:read
The run and every node in it, in the same shape a fresh poll or the initial submit answers with. Answers 202 while the run is still RUNNING, 200 once it has settled. A foreign or unknown id answers not_found.
Параметры пути
idstringобязательноеThe run id, as published inworkflow_id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowRunDtoThe run has settled.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 202WorkflowRunDtoThe run is still
RUNNING; the body is the same shape.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/workflows/runs/{id}/cancel
Cancel a running chain
Требуемые права:workflows:write
Stops every node that has not started yet; a node already dispatched keeps going and still delivers into the caller’s history. Nothing here moves credits — an unstarted node was never charged, so there is nothing to refund. Moves no money, so this route carries no paid gate. A run already settled answers resource_conflict; a foreign or unknown id answers not_found.
Параметры пути
idstringобязательноеThe run id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200OkDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
resource_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/workflows/templates
List the caller’s saved chains
Требуемые права:workflows:read
The caller’s own active chains, newest-updated first, capped rather than paged — up to 50 may exist at once, so next_cursor is always null, the same envelope every capped collection in this API answers with. A closed canvas (role or the environment flag) answers not_found on every route under this prefix, indistinguishable from one that does not exist.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowTemplateCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/workflows/templates
Save a new chain
Требуемые права:workflows:write
Stores a canvas document under a title. canvas is carried exactly as the studio’s editor produces it — its own field names are not converted, only the envelope around it is snake_case. A reference inside the graph (an uploaded image or audio file) the caller does not own is refused as invalid_request; the account’s 50-document ceiling, or an id already held in the trash, answers resource_conflict.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
idstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidtitlestringобязательноедлина 1–80canvasobjectобязательноеdocumentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32documentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2xnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32
Ответы
- 201WorkflowTemplateDtoThe chain was stored.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
resource_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/workflows/templates/trash
List the caller’s trashed chains
Требуемые права:workflows:read
Chains archived rather than deleted, newest-deleted first. Pass next_cursor back as cursor unchanged; it is opaque and must not be parsed. limit defaults to 20 and caps at 100 — over the cap is refused, never clamped.
Параметры запроса
cursorstring
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowTrashCollectionDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_limit,invalid_cursor.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
DELETE/v1/workflows/templates/trash
Permanently delete one trashed chain
Требуемые права:workflows:write
Purges a chain already in the trash — its versions and prompt history are removed with it. Only a trashed id qualifies; an active chain’s id, like a foreign or unknown one, answers not_found.
Параметры запроса
idstringобязательное
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200OkDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/workflows/templates/{id}
Read one chain
Требуемые права:workflows:read
The stored canvas document in full. A foreign id answers not_found rather than a refusal that would confirm it exists.
Параметры пути
idstringобязательноеThe chain id, as published indata[].id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowTemplateDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
PATCH/v1/workflows/templates/{id}
Update one chain
Требуемые права:workflows:write
Renames it, replaces its canvas, or both. expected_revision is mandatory: it must match the chain’s current revision, or the write is refused as revision_conflict rather than silently overwriting a change made from another tab or device. A no-op write (nothing actually differs) still answers 200 without bumping the revision.
Параметры пути
idstringобязательноеThe chain id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Тело запроса (обязательно)
expected_revisionintegerобязательноезначение 0–2147483647titlestringдлина 1–80canvasobjectdocumentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32documentIdstringшаблон ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ · формат uuidresultSelectionmapobject>viewportobjectпосторонние поля не принимаютсяxnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2xnumberобязательноеynumberобязательноеzoomnumberобязательноезначение 0.2–2runIdsarray<string>элементов до 100 · элемент: длина 1–100bypassedNodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$nodesarray<один из вариантов>обязательноеэлементов до 30edgesarray<object>обязательноеэлементов до 60idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32idstringобязательноедлина до 64sourcestringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$targetstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$sourceHandlestringдлина до 32targetHandlestringдлина до 32groupsarray<object>элементов до 12titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32titleSizestringsmallmediumlargenodeIdsarray<string>элементов до 30 · элемент: шаблон ^[a-zA-Z0-9_-]{1,32}$idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$titlestringобязательноедлина до 60xnumberобязательноеynumberобязательноеwidthnumberобязательноезначение 40–8000heightnumberобязательноезначение 40–8000colorstringдлина до 32
Ответы
- 200WorkflowTemplatePatchDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
revision_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
DELETE/v1/workflows/templates/{id}
Move one chain to the trash
Требуемые права:workflows:write
A soft delete: the chain, its versions and its prompt history all stay recoverable through POST /v1/workflows/templates/{id}/restore until it is purged from the trash.
Параметры пути
idstringобязательноеThe chain id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200OkDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/workflows/templates/{id}/prompt-history
Read one prompt node’s text history
Требуемые права:workflows:read
Every distinct version a prompt node’s text (and its variable bindings) has gone through, newest first. before pages further back by revision; next_before is the value to send next, or null once the history is exhausted.
Параметры пути
idstringобязательноеThe chain id.
Параметры запроса
node_idstringобязательноешаблон ^[a-zA-Z0-9_-]{1,32}$beforestringшаблон ^\d+$
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowPromptHistoryPageDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 400ApiErrorRefused with
invalid_request.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 422ApiErrorRefused with
unreadable_record.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
POST/v1/workflows/templates/{id}/restore
Restore one chain out of the trash
Требуемые права:workflows:write
Undoes DELETE /v1/workflows/templates/{id}. Refused as resource_conflict when the account is already at its 50-active-chain ceiling — restore the chain after archiving another, or delete something permanently first.
Параметры пути
idstringобязательноеThe chain id.
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowTemplateRestoreDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope,origin_mismatch. Rate-limit headers are absent onorigin_mismatch, which is refused before the limiter runs.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 409ApiErrorRefused with
resource_conflict.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
GET/v1/workflows/templates/{id}/versions
List or read a chain’s saved revisions
Требуемые права:workflows:read
Without revision: the lightweight list of every kept revision, newest first, capped at 50. With it: that one revision in full, canvas included. An id belonging to another account, or a revision this chain never had, both answer not_found.
Параметры пути
idstringобязательноеThe chain id.
Параметры запроса
revisionstringшаблон ^\d+$
Заголовки
X-Request-IdstringCorrelation id to carry through logs; generated when absent.
Ответы
- 200WorkflowTemplateVersionsResponseDtoSuccess.
X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 401ApiErrorRefused with
unauthorized,invalid_api_key,api_key_expired,api_key_revoked,invalid_token.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 403ApiErrorRefused with
api_access_not_granted,account_suspended,legal_consent_required,insufficient_scope.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 404ApiErrorRefused with
not_found.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 413ApiErrorRefused with
request_too_large.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 429ApiErrorRefused with
rate_limited.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.Retry-AfterintegerSeconds to wait before retrying, on a refusal that names a window.- 500ApiErrorRefused with
internal_error.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.RateLimitstringThe window that bound this request, as"";r=;t=.RateLimit-PolicystringThe quota and window of that policy, as"";q=;w=.- 503ApiErrorRefused with
api_disabled.X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not. X-Request-IdstringThe correlation id of this request, echoed back whether the caller supplied it or not.
Схемы
Каждая ссылка на тип в разделах выше ведёт сюда. Поля перечислены так, как их публикует документ.
ApiError
посторонние поля не принимаются
errorobjectобязательноепосторонние поля не принимаютсяcodestringобязательноеapi_disabledunauthorizedinvalid_api_keyapi_key_expiredapi_key_revokedinvalid_tokenapi_access_not_grantedaccount_suspendedaccess_deniedlegal_consent_requiredorigin_mismatchinsufficient_scopepayment_requiredinsufficient_creditsinsufficient_text_creditscontext_limit_exceededduplicate_submissionduplicate_key_conflictmoderation_blockedsubmit_unavailableupload_unavailableestimate_unavailablekey_spend_limit_reachedgrant_spend_limit_reachedgeneration_frozengeneration_in_flightgeneration_already_settledreport_replay_mismatchsupport_replay_mismatchfolder_limit_reachedfolder_name_takennot_foundunreadable_recordrevision_conflictresource_conflictgoneplan_expiredrenewal_already_onno_active_plansubscription_not_linkedcard_token_missingcheckout_in_progresssubscription_supersededsubscription_recancelledsubscription_resume_failedsubscription_cancel_failedsubscription_cancel_unsavedcard_change_unavailablecard_check_not_authorizedcard_change_in_progresscard_change_failedrate_limitedtoo_many_streamsrequest_too_largeinternal_errorservice_unavailablerequest_abortedinvalid_requestinvalid_limitinvalid_cursormessagestringобязательноеuser_messagestringобязательноеrequest_idstringобязательноеdetailsarray<ApiErrorDetail>codestringобязательноеapi_disabledunauthorizedinvalid_api_keyapi_key_expiredapi_key_revokedinvalid_tokenapi_access_not_grantedaccount_suspendedaccess_deniedlegal_consent_requiredorigin_mismatchinsufficient_scopepayment_requiredinsufficient_creditsinsufficient_text_creditscontext_limit_exceededduplicate_submissionduplicate_key_conflictmoderation_blockedsubmit_unavailableupload_unavailableestimate_unavailablekey_spend_limit_reachedgrant_spend_limit_reachedgeneration_frozengeneration_in_flightgeneration_already_settledreport_replay_mismatchsupport_replay_mismatchfolder_limit_reachedfolder_name_takennot_foundunreadable_recordrevision_conflictresource_conflictgoneplan_expiredrenewal_already_onno_active_plansubscription_not_linkedcard_token_missingcheckout_in_progresssubscription_supersededsubscription_recancelledsubscription_resume_failedsubscription_cancel_failedsubscription_cancel_unsavedcard_change_unavailablecard_check_not_authorizedcard_change_in_progresscard_change_failedrate_limitedtoo_many_streamsrequest_too_largeinternal_errorservice_unavailablerequest_abortedinvalid_requestinvalid_limitinvalid_cursormessagestringобязательноеuser_messagestringобязательноеrequest_idstringобязательноеdetailsarray<ApiErrorDetail>
ApiErrorDetail
посторонние поля не принимаются
fieldstringобязательноеreasonstringобязательноеwrong_typenot_allowedbad_formatout_of_rangeunknown_fieldduplicateinvalidrequiredin_useexceededrequest_ratesubmit_rateconcurrencyqueue_fullnot_availableunknown_modelunsupported_modelunsupported_resolutionunsupported_durationunsupported_aspectunsupported_qualityunsupported_scaleunsupported_n_variantstransparency_not_supportedprompt_too_longimage_requiredtoo_many_imagesrefusedextend_not_foundextend_unavailabledraft_missingdraft_not_founddraft_wrong_modeldraft_not_readydraft_cache_missingdraft_expireddraft_facts_missinguntrusted_referenceinvalid_graphinsufficient_creditsforeign_referencereference_unavailableunfetchable_referencemessagestringобязательноеport_idstringuser_messagestringrequired_ccintegerзначение -9007199254740991–9007199254740991balance_ccintegerзначение -9007199254740991–9007199254740991suggested_topup_ccintegerзначение -9007199254740991–9007199254740991confirm_tokenstringscopestringlimitintegerзначение -9007199254740991–9007199254740991currentintegerзначение -9007199254740991–9007199254740991retry_after_secondsintegerзначение -9007199254740991–9007199254740991
BillingSubscriptionDto
посторонние поля не принимаются
subscriptionSubscriptionDto | nullобязательное
CardChangeBeginDto
посторонние поля не принимаются
payment_idstringобязательноеThe 1 RUB card-check payment; it is the widgetinvoiceId.public_idstringобязательноеThe payment terminal public id.account_idstringобязательноеThe widgetaccountId: the caller.emailstringnullобязательноеamountnumberобязательноеAlways 1: the check is authorized, never charged.currencyRUBобязательное
CardChangeCompleteDto
посторонние поля не принимаются
okbooleanобязательноеcardobject | nullобязательноеThe card the subscription renews on from now.last4stringобязательноеbrandstringnullобязательноеbankstringnullобязательноеlast4stringобязательноеbrandstringnullобязательноеbankstringnullобязательноеnext_pay_datestringnullобязательноеchargestringобязательноеWhether an overdue period was charged on the new card:nonewhen nothing was due.nonecompleteddeclinedunknownresumedbooleanобязательноеTrue when renewal was off: the new card also turned it back on, charging fromnext_pay_date.
CreditTransactionCollectionDto
посторонние поля не принимаются
dataarray<CreditTransactionDto>обязательноеnext_cursorstringnullобязательное
CreditTransactionDto
посторонние поля не принимаются
idstringобязательноеtypestringобязательноеThe transaction kind, lowercased from the stored enum.purchasespendrefundadjustmentreferral_exchangeteam_transferamount_ccintegerобязательноеSigned centi-credits: positive credits the balance, negative debits it.значение -9007199254740991–9007199254740991created_atstringобязательноеgeneration_idstringnullобязательноеThe idGET /v1/generations/{id}accepts, or null for a row with no link — including history written before the link existed.reasonstring | nullобязательноеA closed machine vocabulary derived from the internal ledger meta; null when none applies.plan_expired_frozenplan_lost_frozencredits_unfrozenplan_refund_revokedtext_balance_moveupgrade_clawbackchat_estimate_holdchat_overflow_chargechat_overage_settledchat_compress_holdchat_compress_settledchat_compress_refundteam_transfer_inteam_transfer_outrecurring_payment
EventStreamResetDto
The presented Last-Event-ID cannot be resumed: it is past the retention window (cursor_expired) or is not a cursor of this stream (cursor_unknown). The stream continues live after this frame; catch up on the transitions in between with the batch status endpoint named in catch_up.
посторонние поля не принимаются
reasonstringобязательноеcursor_expiredcursor_unknowncatch_up/v1/generations/statusобязательное
FailureReason
string
provider_errormoderation_blocktimeoutno_contentinvalid_inputunknown
FreeQuotaConfigDto
посторонние поля не принимаются
resolutionarray<string>durationnumberduration_maxnumbersoundboolean
FreeQuotaDto
посторонние поля не принимаются
modelstringобязательноеtypestringобязательноеmodestringобязательноеcountedtimedunlimitedlimitnumberusednumberremainingnumberunlimited_expires_atstringdaily_capnumberdaily_usednumberfallback_modelstringfree_configFreeQuotaConfigDto
GenerationCancelDto
посторонние поля не принимаются
refundedbooleanобязательное
GenerationCollectionDto
посторонние поля не принимаются
dataarray<GenerationDto>обязательноеnext_cursorstringnullобязательное
GenerationDto
посторонние поля не принимаются
idstringобязательноеtypestringобязательноеstatusGenerationStatusобязательноеmodel_idstringnullобязательноеtitlestringnullобязательноеpromptstringnullобязательноеstylestringnullобязательноеinput_textstringnullобязательноеfolder_idstringnullобязательноеcost_ccnumberобязательноеrefundedbooleanобязательноеcreated_atstringобязательноеupdated_atstringобязательноеcompleted_atstringnullобязательноеoutput_urlsNormalizedOutputобязательноеerrorGenerationErrorDto
GenerationErrorDto
посторонние поля не принимаются
reasonFailureReasonобязательноеmessagestringобязательноеuser_messagestringобязательное
GenerationEventDto
One status transition. Re-read the full record via GET /v1/generations/{id} or POST /v1/generations/status.
посторонние поля не принимаются
idstringобязательноеThe generation id.typestringобязательноеThe generation type, the same value GET /v1/generations/{id} returns.statusGenerationStatusобязательноеdeletedbooleanобязательноеTrue once the generation is withdrawn. A cancelled generation arrives as status FAILED with deleted true.updated_atstringобязательноеWhen this transition was recorded, ISO 8601.
GenerationReportDto
посторонние поля не принимаются
support_request_idstringобязательноеmessage_idstringобязательное
GenerationStatus
DONE is the only status that never changes again. FAILED ends the attempt, not the record: a late provider answer can recover such a generation into DONE, so a caller that still wants the result re-reads the row later instead of polling on.
string
QUEUEDPENDINGRUNNINGMODERATION_PENDINGDONEFAILED
GenerationStatusCollectionDto
посторонние поля не принимаются
dataarray<GenerationDto>обязательноеnext_cursornullобязательное
KnowledgeArticleDto
посторонние поля не принимаются
slugstringобязательноеtitlestringобязательноеsummarystringnullобязательноеlangstringобязательноеenrusourcestringобязательноеarticleguidebodystringобязательноеupdated_atstringобязательноеvalid_untilstringnullобязательное
KnowledgeCollectionDto
посторонние поля не принимаются
dataarray<KnowledgeHitDto>обязательноеnext_cursornullобязательное
KnowledgeHitDto
посторонние поля не принимаются
slugstringобязательноеtitlestringобязательноеsummarystringnullобязательноеlangstringобязательноеenrusourcestringобязательноеarticleguide
LibraryAssetCollectionDto
посторонние поля не принимаются
dataarray<LibraryAssetDto>обязательноеnext_cursorstringnullобязательное
LibraryAssetDto
посторонние поля не принимаются
idstringобязательноеkindstringобязательноеtitlestringnullобязательноеwidthnumbernullобязательноеheightnumbernullобязательноеduration_secnumbernullобязательноеfolder_idstringnullобязательноеcreated_atstringобязательноеexpires_atstringnullобязательноеoutput_urlsobjectобязательноепосторонние поля не принимаютсяimagearray<string>videoarray<string>audioarray<string>downloadarray<string>imagearray<string>videoarray<string>audioarray<string>downloadarray<string>
LibraryFolderCollectionDto
посторонние поля не принимаются
dataarray<LibraryFolderDto>обязательноеnext_cursornullобязательное
LibraryFolderDto
посторонние поля не принимаются
idstringобязательноеnamestringобязательноеpositionnumberобязательноеcreated_atstringобязательное
LibraryFolderWriteDto
посторонние поля не принимаются
idstringобязательноеnamestringpositionnumber
LibraryMoveDto
посторонние поля не принимаются
movednumberобязательное
LibraryRenameDto
посторонние поля не принимаются
idstringобязательноеtitlestringnullобязательное
MeCreditsDto
посторонние поля не принимаются
main_ccnumberобязательноеfrozen_ccnumberобязательноеtext_ccnumberобязательное
MeDto
посторонние поля не принимаются
user_idstringобязательноеplanMePlanDtoобязательноеcreditsMeCreditsDtoобязательноеfree_quotasarray<FreeQuotaDto>обязательноеlimitsobjectобязательноепосторонние поля не принимаютсяrequestsobjectобязательноепосторонние поля не принимаютсяper_credentialintegerобязательноезначение -9007199254740991–9007199254740991per_accountintegerобязательноезначение -9007199254740991–9007199254740991window_secondsintegerобязательноезначение -9007199254740991–9007199254740991submissionsobjectобязательноепосторонние поля не принимаютсяapiintegerобязательноезначение -9007199254740991–9007199254740991studiointegerобязательноезначение -9007199254740991–9007199254740991window_secondsintegerобязательноезначение -9007199254740991–9007199254740991concurrencyobjectобязательноепосторонние поля не принимаютсяimageintegerобязательноезначение -9007199254740991–9007199254740991videointegerобязательноезначение -9007199254740991–9007199254740991klingintegerобязательноезначение -9007199254740991–9007199254740991veointegerобязательноезначение -9007199254740991–9007199254740991requestsobjectобязательноепосторонние поля не принимаютсяper_credentialintegerобязательноезначение -9007199254740991–9007199254740991per_accountintegerобязательноезначение -9007199254740991–9007199254740991window_secondsintegerобязательноезначение -9007199254740991–9007199254740991per_credentialintegerобязательноезначение -9007199254740991–9007199254740991per_accountintegerобязательноезначение -9007199254740991–9007199254740991window_secondsintegerобязательноезначение -9007199254740991–9007199254740991submissionsobjectобязательноепосторонние поля не принимаютсяapiintegerобязательноезначение -9007199254740991–9007199254740991studiointegerобязательноезначение -9007199254740991–9007199254740991window_secondsintegerобязательноезначение -9007199254740991–9007199254740991apiintegerобязательноезначение -9007199254740991–9007199254740991studiointegerобязательноезначение -9007199254740991–9007199254740991window_secondsintegerобязательноезначение -9007199254740991–9007199254740991concurrencyobjectобязательноепосторонние поля не принимаютсяimageintegerобязательноезначение -9007199254740991–9007199254740991videointegerобязательноезначение -9007199254740991–9007199254740991klingintegerобязательноезначение -9007199254740991–9007199254740991veointegerобязательноезначение -9007199254740991–9007199254740991imageintegerобязательноезначение -9007199254740991–9007199254740991videointegerобязательноезначение -9007199254740991–9007199254740991klingintegerобязательноезначение -9007199254740991–9007199254740991veointegerобязательноезначение -9007199254740991–9007199254740991
MePlanDto
посторонние поля не принимаются
idstringобязательноеstarted_atstringnullобязательноеends_atstringnullобязательноеcancel_atstringnullобязательное
MediaContent
string
ModelCollectionDto
посторонние поля не принимаются
dataarray<ModelDto>обязательноеnext_cursorstringnullобязательное
ModelConstraints
посторонние поля не принимаются
image_inputstringобязательноеnoneoptionalrequiredmin_reference_imagesnumberобязательноеmax_reference_imagesnumberrequires_promptbooleanобязательноеrequires_videobooleanобязательноеrequires_audiobooleanобязательноеaccepts_video_refbooleanобязательноеvideo_ref_satisfies_imagebooleancreator_onlybooleanобязательноеaspect_ratiosarray<string>The values the request fieldaspectaccepts.resolutionsarray<string>durationsarray<string>default_durationnumberduration_from_sourcebooleanduration_minnumberduration_maxnumberfixed_durationstringresolution_durationsmaparray<string>>default_resolutionstringresolution_paramstringresolution_valuesmapstring>has_soundbooleansound_from_sourcebooleandefault_soundbooleanmax_video_refsnumbermax_audio_refsnumbervoicesarray<string>The values the request fieldreferenceAudioaccepts.max_voicesnumberHow many entriesreferenceAudiotakes; a voice-tagging model binds them to@voice1… in order.max_references_totalnumberReference images, clips and voices together: refused past this even when each kind is inside its own cap.audio_min_secnumberaudio_max_secnumberref_video_min_secnumberref_video_max_secnumberref_video_total_max_secnumberref_video_min_dimensionnumberref_video_min_framesnumberref_video_max_bytesnumberref_audio_total_max_secnumberref_task_typesarray<string>ref_video_min_sec_by_taskmapnumber>multi_shotMultiShotConstraintprompt_expansion_modesarray<string>default_prompt_expansionstringhas_seedbooleanhas_negative_promptbooleannegative_prompt_limitnumberhas_variantsbooleanmax_variantsnumbermax_style_refsnumbermax_char_refsnumberprompt_limitnumberimage_ref_mention_limitnumberprompt_paramstringprompt_minnumbertransparent_backgroundbooleanfixed_qualitystringlowmediumhighqualitiesarray<string>default_qualitystringformatsarray<string>generate_typesarray<string>materialsarray<string>mesh_modesarray<string>input_kindstringportraitvideofixed_durationsarray<number>scalesarray<number>The values the request fieldscaleaccepts.source_kindstringThe medium an upscaler's source must be. It rides insource_param, not among the references.imagevideosource_paramimage_urlThe request field an upscaler's source is read from.source_max_widthnumberThe widest source frame accepted, in pixels.source_max_heightnumberThe tallest source frame accepted, in pixels.source_max_secnumberThe longest source clip accepted, in seconds.output_max_pixel_framesnumberThe largest upscaled clip delivered, as output width × height × frame rate × seconds; a longer source is refused before any charge.
ModelDto
посторонние поля не принимаются
idstringобязательноеnamestringобязательноеtypestringобязательноеsubmit_typestringобязательноеconstraintsModelConstraintsобязательноеpricingModelPricingDtoобязательное
ModelPricingDto
посторонние поля не принимаются
currencycreditsобязательноеvariantsarray<PriceVariantDto>обязательноеquoteestimatePresent when the charge is measured from the source rather than read off a rate — an upscaler bills the output size and length the server measures.variantsis then empty, andPOST /v1/pricing/estimatewith the full request is the price.surchargesarray<PriceSurchargeDto>обязательноеminimum_ccnumberfree_lead_secondsnumberamount_roundingceil_ccобязательноеvariant_selectionceil_to_variantdiscount_pctnumber
MultiShotConstraint
посторонние поля не принимаются
transportstringобязательноеapiprompt-timecodestotal_min_secnumberобязательноеtotal_max_secnumberобязательноеmax_shotsnumberобязательноеshot_prompt_limitnumberобязательноеsilentbooleantext_onlyboolean
NormalizedOutput
посторонние поля не принимаются
audioarray<string>downloadarray<string>wavarray<string>imagearray<string>videoarray<string>model3darray<string>originalarray<string>
OAuthInteractionDetailsDto
посторонние поля не принимаются
promptstringобязательноеloginconsentclientobjectобязательноепосторонние поля не принимаютсяidstringобязательноеnamestringобязательноеhoststringобязательноеidstringобязательноеnamestringобязательноеhoststringобязательноеscopesarray<string>обязательноеmonthly_spend_limitinteger | nullобязательное
OAuthInteractionRedirectDto
посторонние поля не принимаются
redirect_tostringобязательное
OkDto
посторонние поля не принимаются
okbooleanобязательное
PriceSurchargeDto
посторонние поля не принимаются
kindstringобязательноеvariantstringобязательноеprice_ccnumberобязательноеunitPriceUnitобязательноеroundingstringceil_per_itemceil_totalfree_unitsintegerзначение больше 0 · значение до 9007199254740991
PriceUnit
string
per_secondper_videoper_imageper_generationper_1000_charactersper_reference_secondper_reference_image
PriceVariantDto
посторонние поля не принимаются
variantstringобязательноеprice_ccnumberобязательноеunitPriceUnitобязательное
PricingEstimateBreakdownDto
посторонние поля не принимаются
variantstringnullобязательноеunitsnumberобязательноеsurcharge_ccnumberобязательное
PricingEstimateDto
посторонние поля не принимаются
typestringобязательноеvideoimageupscale3dcard-designlipsyncomnihumanavatarvoicemusicmusic-covermusic-vocalsmusic-instrumentalmusic-stemssonglyricsmodel_idstringобязательноеcurrencycreditsобязательноеprice_ccnumberобязательноеbreakdownPricingEstimateBreakdownDtoобязательное
SubscriptionCancelDto
посторонние поля не принимаются
okbooleanобязательноеsupersededbooleanобязательноеTrue when a newer subscription already renews the plan, so nothing is ending.plan_ends_atstringnullобязательноеThe end of the paid period the plan now runs out at, ISO 8601.
SubscriptionDto
Amounts are whole units of currency, not centi-credits.
посторонние поля не принимаются
statusstringобязательноеactivepast_dueamountintegerобязательноезначение -9007199254740991–9007199254740991recurrent_amountinteger | nullобязательноеcurrencystringобязательноеnext_payment_atstringnullобязательноеcancelled_atstringnullобязательное
SubscriptionResumeDto
посторонние поля не принимаются
okbooleanобязательноеnext_pay_datestringобязательноеWhen the renewed subscription charges next, ISO 8601.
SupportMessageCollectionDto
посторонние поля не принимаются
dataarray<SupportMessageDto>обязательноеnext_cursornullобязательное
SupportMessageDto
посторонние поля не принимаются
idstringобязательноеfromstringобязательноеusersupporttextstringобязательноеAs authored by the user or by support staff, never translated or rewritten.imagesarray<string>обязательноеcreated_atstringобязательное
SupportMessageSentDto
посторонние поля не принимаются
support_request_idstringобязательноеmessageSupportMessageDtoобязательное
UploadStoredDto
посторонние поля не принимаются
referencestringобязательноеbytes_storedintegerобязательноезначение 0–9007199254740991
UploadTicketDto
посторонние поля не принимаются
urlstringобязательноеheadersmapstring>обязательноеFor the directPUTtourl: send every entry back verbatim —Content-Type,Content-LengthandIf-None-Match, all bound by the signature, so composing your own set or dropping one is a 403 from the store. Theproxy_pathcompletion does not take this map; it readsContent-TypeandContent-Lengthand needs yourAuthorization.referencestringобязательноеproxy_pathstringобязательноеexpires_atstringобязательное
WhoamiDto
посторонние поля не принимаются
user_idstringобязательноеrolestringобязательноеchannelstringобязательноеsessionapi_keyoauthbotkey_idstringnullобязательноеThe API key or OAuth grant that authenticated the call; null on the session channel — readchannelto tell which.scopesarray<string>обязательноетолько для чтенияme:readmodels:readgenerations:readgenerations:writelibrary:readlibrary:writebilling:readsupport:readsupport:writeuploads:writeworkflows:readworkflows:writemay_spendbooleanобязательноеWhether this caller may start generations right now. False when the account holds no active paid plan: every new generation is then refused with payment_required, free quotas and promo modes included, while an exact retry of an Idempotency-Key already answered still returns its stored response. Always true on the session channel and for staff.spend_limitWhoamiSpendLimitDto | nullобязательное
WhoamiSpendLimitDto
посторонние поля не принимаются
monthly_limit_ccnumbernullобязательноеspent_ccnumberобязательноеremaining_ccnumbernullобязательноеresets_atstringобязательное
WorkflowBlockCollectionDto
посторонние поля не принимаются
dataarray<WorkflowBlockSummaryDto>обязательноеnext_cursornullобязательное
WorkflowBlockDto
посторонние поля не принимаются
idstringобязательноеtitlestringобязательноеdescriptionstringобязательноеcanvasobjectобязательноеThe canvas document exactly as stored — its own field names are the studio’s camelCase, never converted.revisionnumberобязательноеupdated_atstringобязательное
WorkflowBlockGetDto
посторонние поля не принимаются
blockWorkflowBlockDtoобязательноеversionsarray<WorkflowBlockVersionEntryDto>
WorkflowBlockMutationDto
посторонние поля не принимаются
blockWorkflowBlockDtoобязательное
WorkflowBlockSummaryDto
посторонние поля не принимаются
idstringобязательноеtitlestringобязательноеdescriptionstringобязательноеrevisionnumberобязательноеupdated_atstringобязательное
WorkflowBlockVersionEntryDto
посторонние поля не принимаются
revisionnumberобязательноеtitlestringобязательноеcreated_atstringобязательное
WorkflowCompileErrorDto
посторонние поля не принимаются
messagestringобязательноеnode_idstringport_idstring
WorkflowEstimateDto
посторонние поля не принимаются
per_nodemapnumber>обязательноеitem_countsmapnumber>обязательноеtotalnumberобязательноеprice_basismapstring>
WorkflowPromptHistoryEntryDto
посторонние поля не принимаются
revisionnumberобязательноеcreated_atstringобязательноеpromptstringобязательноеvariablesarray<object>обязательноеidstringобязательноеlabelstringобязательноеidstringобязательноеlabelstringобязательноеbindingsarray<object>обязательноеsourcestringобязательноеsource_handlestringtarget_handlestringsourcestringобязательноеsource_handlestringtarget_handlestringresolvedstringresolution_errorstring
WorkflowPromptHistoryPageDto
посторонние поля не принимаются
dataarray<WorkflowPromptHistoryEntryDto>обязательноеnext_beforenumbernullобязательное
WorkflowRetryItemResponseDto
один из вариантов
WorkflowRetryPreviewDto
посторонние поля не принимаются
kindpreviewобязательноеtotalnumberобязательноеstepsnumberобязательноеnode_idsarray<string>обязательноеinput_kindstringобязательноеparameterspromptpromptstringобязательноеitem_indexnumberобязательное
WorkflowRetryRunDto
посторонние поля не принимаются
kindrunобязательноеworkflow_idstringобязательноеtotal_costnumberобязательное
WorkflowRunCanvasItemDto
посторонние поля не принимаются
node_idstringобязательноеiterator_idstringобязательноеitem_idstringобязательноеitem_indexnumberобязательноеitem_countnumberобязательное
WorkflowRunCreatedDto
посторонние поля не принимаются
workflow_idstringобязательноеtotal_costnumberобязательное
WorkflowRunDto
посторонние поля не принимаются
idstringобязательноеclient_request_idstringnullобязательноеrecipe_idstringобязательноеretry_ofobjectпосторонние поля не принимаютсяworkflow_idstringобязательноеnode_keystringобязательноеworkflow_idstringобязательноеnode_keystringобязательноеstatusstringобязательноеtotal_cost_estimatenumberобязательноеerrorstringnullобязательноеcreated_atstringобязательноеnodesarray<WorkflowRunNodeDto>обязательное
WorkflowRunListDto
посторонние поля не принимаются
dataarray<WorkflowRunDto>обязательноеnext_cursorstringnullобязательное
WorkflowRunNodeDto
посторонние поля не принимаются
node_keystringобязательноеcanvas_itemWorkflowRunCanvasItemDtokindstringобязательноеmodel_labelstringобязательноеstatusstringобязательноеgeneration_statusstringnullобязательноеgeneration_idstringnullобязательноеparametersmapobject>обязательноеcreated_atstringобязательноеpromptstringобязательноеfrozenbooleanобязательноеwaitobjectпосторонние поля не принимаютсяreasonmodel-capобязательноеlimitnumberобязательноеreasonmodel-capобязательноеlimitnumberобязательноеcost_creditsnumberобязательноеerrorstringnullобязательноеoutput_urlsobject | nullобязательноеaudioarray<string>downloadarray<string>wavarray<string>imagearray<string>videoarray<string>model3darray<string>originalarray<string>audioarray<string>downloadarray<string>wavarray<string>imagearray<string>videoarray<string>model3darray<string>originalarray<string>
WorkflowTemplateCollectionDto
посторонние поля не принимаются
dataarray<WorkflowTemplateSummaryDto>обязательноеnext_cursornullобязательное
WorkflowTemplateDto
посторонние поля не принимаются
idstringобязательноеtitlestringобязательноеcanvasobjectобязательноеThe canvas document exactly as stored — its own field names are the studio’s camelCase, never converted.revisionnumberобязательноеupdated_atstringобязательное
WorkflowTemplatePatchDto
посторонние поля не принимаются
idstringобязательноеtitlestringобязательноеrevisionnumberобязательное
WorkflowTemplateRestoreDto
посторонние поля не принимаются
templateWorkflowTemplateDtoобязательное
WorkflowTemplateSummaryDto
посторонние поля не принимаются
idstringобязательноеtitlestringобязательноеupdated_atstringобязательноеnode_countnumberобязательноеcountsobjectобязательноепосторонние поля не принимаютсяcharacternumberобязательноеimagenumberобязательноеvideonumberобязательноеaudionumberобязательноеcharacternumberобязательноеimagenumberобязательноеvideonumberобязательноеaudionumberобязательноеsketchobjectобязательноепосторонние поля не принимаютсяnodesarray<object>обязательноеidstringобязательноеkindstringобязательноеimagevideotextsoundtoolxnumberобязательноеynumberобязательноеwnumberобязательноеhnumberобязательноеimagestringedgesarray<object>обязательноеfromstringобязательноеtostringобязательноеnodesarray<object>обязательноеidstringобязательноеkindstringобязательноеimagevideotextsoundtoolxnumberобязательноеynumberобязательноеwnumberобязательноеhnumberобязательноеimagestringidstringобязательноеkindstringобязательноеimagevideotextsoundtoolxnumberобязательноеynumberобязательноеwnumberобязательноеhnumberобязательноеimagestringedgesarray<object>обязательноеfromstringобязательноеtostringобязательноеfromstringобязательноеtostringобязательное
WorkflowTemplateVersionCollectionDto
посторонние поля не принимаются
dataarray<WorkflowTemplateVersionEntryDto>обязательноеnext_cursornullобязательное
WorkflowTemplateVersionDto
посторонние поля не принимаются
revisionnumberобязательноеtitlestringобязательноеcanvasobjectобязательноеThe canvas document exactly as stored — its own field names are the studio’s camelCase, never converted.created_atstringобязательное
WorkflowTemplateVersionEntryDto
посторонние поля не принимаются
revisionnumberобязательноеtitlestringобязательноеcreated_atstringобязательное
WorkflowTemplateVersionsResponseDto
один из вариантов
WorkflowTrashCollectionDto
посторонние поля не принимаются
dataarray<WorkflowTrashEntryDto>обязательноеnext_cursorstringnullобязательное
WorkflowTrashEntryDto
посторонние поля не принимаются
idstringобязательноеtitlestringобязательноеdeleted_atstringобязательное