İçeriğe geç
Lumean API

Açıklamalar İngilizce

Bölümün arayüzü dilinize çevrildi, ancak işlem, şema ve hata açıklamaları yalnızca Rusça ve İngilizce mevcut — burada İngilizce sürüm gösteriliyor.

422 — request not accepted

422Retry-After yok

Ne oldu

The only API response that comes OUTSIDE the common envelope: {"message": "…", "errors": {"field": ["…"]}} — it has no success field. Code like if (!res.success) works on a 422 only by coincidence, because it is comparing against undefined.

Neden

Two different sources under one code. Request validation — then the body contains errors listing the fields. A domain refusal — then there is no errors, but there is a reason: content_blocked, text_empty, text_not_voiceable, service_not_found, not_allowed, plus, for bulk chunk retry, invalid_order_status, generative_not_supported, and nothing_to_retry.

Şimdi ne yapmalı

First check whether errors is present. If it is, fix the request according to the listed fields. If it is not, but there is a reason, the request shape is not the problem, and repeating the same body gets the same refusal; read the page for that specific code.

Sırada hangi istek gönderilmeli

GET /templates/config-options?service=<code> — which config keys the service accepts at all. The structure depends on the service; do not guess it from examples for other services.

Bu sayfayı yapay zekâya verin

.md sürümünü açllm.md

spesifikasyon 0.0.1