Kiosa API kiosa.ai

Error codes

All errors of API v1 with stable code, status and meaning.

Errors from the /v1 endpoints arrive as application/problem+json per RFC 9457. Every error response contains these fields:

FieldMeaning
typeURL to the matching section of the English reference (https://docs.kiosa.ai/en/reference/errors/#<code>). The German page has the same anchors.
titleShort title
statusHTTP status
detailExplanation for this call
codeStable code in snake_case. Program against this value, not against title or detail.
request_idIdentifier of the call, identical to the X-Request-Id header

The OAuth endpoints (/api/oauth/*) answer in the OAuth error format of RFC 6749 §5.2. On 401 and 403 for /v1, the WWW-Authenticate header carries the challenge per RFC 6750 and points to the protected resource metadata (RFC 9728).

New codes can be added without a version change. Handle unknown codes by their HTTP status.

All codes#

invalid_token#

HTTP status 401 · Invalid token

The access token is missing, expired, revoked or not issued for this API. Use the refresh token to obtain a new access token; if that fails, the business has to grant access again.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#invalid_token",
  "title": "Invalid token",
  "status": 401,
  "detail": "The access token is missing, expired, revoked or not issued for this API. Use the refresh token to obtain a new access token; if that fails, the business has to grant access again.",
  "code": "invalid_token",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

admin_required#

HTTP status 403 · Admin required

Write calls require the user who granted access to still be an admin of the business. An admin has to grant access again.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#admin_required",
  "title": "Admin required",
  "status": 403,
  "detail": "Write calls require the user who granted access to still be an admin of the business. An admin has to grant access again.",
  "code": "admin_required",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

insufficient_scope#

HTTP status 403 · Insufficient scope

The token does not carry the scope this endpoint requires. Request the scope during authorization; the WWW-Authenticate header names it.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#insufficient_scope",
  "title": "Insufficient scope",
  "status": 403,
  "detail": "The token does not carry the scope this endpoint requires. Request the scope during authorization; the WWW-Authenticate header names it.",
  "code": "insufficient_scope",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

partner_apps_disabled#

HTTP status 403 · Partner apps disabled

The business has turned off partner apps in Kiosa (Settings → Connected apps). Calls are rejected until it turns them back on.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#partner_apps_disabled",
  "title": "Partner apps disabled",
  "status": 403,
  "detail": "The business has turned off partner apps in Kiosa (Settings → Connected apps). Calls are rejected until it turns them back on.",
  "code": "partner_apps_disabled",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

partner_not_approved#

HTTP status 403 · Partner not approved

The Kiosa API is only open to approved partners. Your client is not registered as a partner. Write to kontakt@kiosa.ai to apply for approval. Authorization already rejects such a client (`unauthorized_client`); calls get this code when the token belongs to a partner that has lost its approval since.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#partner_not_approved",
  "title": "Partner not approved",
  "status": 403,
  "detail": "The Kiosa API is only open to approved partners. Your client is not registered as a partner. Write to kontakt@kiosa.ai to apply for approval. Authorization already rejects such a client (`unauthorized_client`); calls get this code when the token belongs to a partner that has lost its approval since.",
  "code": "partner_not_approved",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

partner_suspended#

HTTP status 403 · Partner suspended

Kiosa has suspended this client. All of its tokens are rejected with immediate effect.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#partner_suspended",
  "title": "Partner suspended",
  "status": 403,
  "detail": "Kiosa has suspended this client. All of its tokens are rejected with immediate effect.",
  "code": "partner_suspended",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

provider_not_allowed#

HTTP status 403 · Provider not allowed

This client may not write integrations of this provider. Each partner is approved only for the providers agreed with Kiosa.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#provider_not_allowed",
  "title": "Provider not allowed",
  "status": 403,
  "detail": "This client may not write integrations of this provider. Each partner is approved only for the providers agreed with Kiosa.",
  "code": "provider_not_allowed",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

user_inactive#

HTTP status 403 · User inactive

The user who granted access has been deactivated, is no longer a member of the business or no longer has a sufficient role. An admin of the business has to grant access again.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#user_inactive",
  "title": "User inactive",
  "status": 403,
  "detail": "The user who granted access has been deactivated, is no longer a member of the business or no longer has a sufficient role. An admin of the business has to grant access again.",
  "code": "user_inactive",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

not_found#

HTTP status 404 · Not found

The resource does not exist or the provider is not supported by the API.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#not_found",
  "title": "Not found",
  "status": 404,
  "detail": "The resource does not exist or the provider is not supported by the API.",
  "code": "not_found",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

mapping_conflict#

HTTP status 409 · Mapping conflict

The mapping references branches that no longer belong to the connected company, for example because the credentials changed in the meantime. Fetch the branches again and resend the mapping.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#mapping_conflict",
  "title": "Mapping conflict",
  "status": 409,
  "detail": "The mapping references branches that no longer belong to the connected company, for example because the credentials changed in the meantime. Fetch the branches again and resend the mapping.",
  "code": "mapping_conflict",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

payload_too_large#

HTTP status 413 · Payload too large

The request body exceeds 64 KB. Kiosa did not process the request.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#payload_too_large",
  "title": "Payload too large",
  "status": 413,
  "detail": "The request body exceeds 64 KB. Kiosa did not process the request.",
  "code": "payload_too_large",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

missing_provider_scopes#

HTTP status 422 · Missing provider scopes

The key works but lacks permissions Kiosa needs for the import; missing_scopes lists them. Issue a key with all permissions and submit it again.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#missing_provider_scopes",
  "title": "Missing provider scopes",
  "status": 422,
  "detail": "The key works but lacks permissions Kiosa needs for the import; missing_scopes lists them. Issue a key with all permissions and submit it again.",
  "code": "missing_provider_scopes",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

provider_auth_failed#

HTTP status 422 · Provider rejected credentials

The provider rejected the credentials (wrong or expired key, or a key of another company). Kiosa stored nothing.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#provider_auth_failed",
  "title": "Provider rejected credentials",
  "status": 422,
  "detail": "The provider rejected the credentials (wrong or expired key, or a key of another company). Kiosa stored nothing.",
  "code": "provider_auth_failed",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

validation_failed#

HTTP status 422 · Validation failed

The body or a parameter does not match the schema, for example a missing or unknown field or a location ID that does not belong to this business. invalid_params lists every affected field.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#validation_failed",
  "title": "Validation failed",
  "status": 422,
  "detail": "The body or a parameter does not match the schema, for example a missing or unknown field or a location ID that does not belong to this business. invalid_params lists every affected field.",
  "code": "validation_failed",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

rate_limited#

HTTP status 429 · Rate limited

Each client may send 60 requests per minute per business. Wait for the number of seconds in the Retry-After header, then retry.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#rate_limited",
  "title": "Rate limited",
  "status": 429,
  "detail": "Each client may send 60 requests per minute per business. Wait for the number of seconds in the Retry-After header, then retry.",
  "code": "rate_limited",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

internal_error#

HTTP status 500 · Internal error

An unexpected error occurred at Kiosa. Retry later and quote the request_id when contacting support.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#internal_error",
  "title": "Internal error",
  "status": 500,
  "detail": "An unexpected error occurred at Kiosa. Retry later and quote the request_id when contacting support.",
  "code": "internal_error",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

provider_unreachable#

HTTP status 502 · Provider unreachable

Kiosa could not reach the provider or received an unexpected response. Retry later; repeating the PUT is idempotent.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#provider_unreachable",
  "title": "Provider unreachable",
  "status": 502,
  "detail": "Kiosa could not reach the provider or received an unexpected response. Retry later; repeating the PUT is idempotent.",
  "code": "provider_unreachable",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

upstream_unavailable#

HTTP status 502 · Upstream unavailable

The Kiosa server hosting the business could not be reached or sent an invalid response. Retry later; write calls are idempotent.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#upstream_unavailable",
  "title": "Upstream unavailable",
  "status": 502,
  "detail": "The Kiosa server hosting the business could not be reached or sent an invalid response. Retry later; write calls are idempotent.",
  "code": "upstream_unavailable",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

service_unavailable#

HTTP status 503 · Service unavailable

Kiosa is temporarily overloaded or unavailable. Wait for the number of seconds in the Retry-After header, if present, then retry.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#service_unavailable",
  "title": "Service unavailable",
  "status": 503,
  "detail": "Kiosa is temporarily overloaded or unavailable. Wait for the number of seconds in the Retry-After header, if present, then retry.",
  "code": "service_unavailable",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}

upstream_timeout#

HTTP status 504 · Upstream timeout

The Kiosa server hosting the business did not respond in time. The matching GET shows whether a write call already took effect; retrying is idempotent.

json
{
  "type": "https://docs.kiosa.ai/en/reference/errors/#upstream_timeout",
  "title": "Upstream timeout",
  "status": 504,
  "detail": "The Kiosa server hosting the business did not respond in time. The matching GET shows whether a write call already took effect; retrying is idempotent.",
  "code": "upstream_timeout",
  "request_id": "req_01JDX5Q8M3V8F2K7ZB9T4N6C1A"
}