Skip to main content

Introduction

If you are a dev, have fun! ✨

Format​

The API accepts only the JSON format. All requests must use Content-Type: application/json. All responses use snake_case.

Field TypeFormat
DateTimeISO8601 format. Examples β€” Date: 2026-01-24. Date and time: 2026-01-24T10:07Z
MoneyDecimal number in reais (BRL), with up to 4 decimal places. E.g.: 100.5 = R$ 100.50
UUIDResource identifiers in UUID v4 format

Conventions​

Conventions used in this documentation:

ConventionDescription
:variableVariable name that must be replaced in a URL.
#{variable}Variable name that must be replaced with values from your account.
...Response content truncated for readability.
$KOBANA_TOKENAccess token. For command-line testing, export it: export KOBANA_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx and paste the commands from the documentation into the terminal.

Response Codes​

The API returns standard HTTP codes:

CodeDescription
βœ…200 OKSuccessful request with a response body.
βœ…201 CreatedResource created successfully.
βœ…204 No ContentSuccessful request, with no response body.
❌400 Bad RequestInvalid request, usually malformed content.
❌401 UnauthorizedAccess token missing or invalid.
❌403 ForbiddenAPI access blocked or user without permission.
❌404 Not FoundThe address accessed does not exist.
❌422 Unprocessable EntityValid request, but the data sent is not.
❌429 Too Many RequestsRequest limit reached.
❌500 Internal Server ErrorInternal processing error. See the server status.

Request ID​

Each request has an associated identifier, available in the Request-Id response header. This value helps with debugging and auditing β€” requests and their IDs can be looked up in the system dashboard. The request log is available for 30 days. When opening a support ticket about a specific request, provide the Request-Id to speed up the investigation.

Security​

The Kobana API uses 2048-bit SSL certificates. Every request must be made over HTTPS β€” calls on port 80 are redirected to 443.

Clients must support TLSv1.2 or TLSv1.3 with one of the ciphers: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-CHACHA20-POLY1305, ECDHE-RSA-AES256-SHA384. TLSv1 and TLSv1.1 are not supported.

HTTP Cache​

Use the HTTP cache headers to reduce load and gain speed. Most responses include ETag and/or Last-Modified β€” store these values and resend them in subsequent requests via If-None-Match and If-Modified-Since. If the resource has not changed, the response will be 304 Not Modified, with no body and no reprocessing. More information: HTTP Cache Docs.

Error Handling​

5xx errors indicate server failures: 500 Internal Server Error (application unavailable), 502 Bad Gateway, 503 Service Unavailable and 504 Gateway Timeout (occasional infrastructure failures). Your application should identify these codes and reschedule the request after a few minutes with backoff. Server status: https://status.kobana.com.br.

Monetary values​

Every monetary value β€” in the request and in the response β€” is a decimal number in reais (BRL), with up to 4 decimal places. There are no fields in cents: send 100.5 for R$ 100.50 and 0.0125 for R$ 0.0125. Pricing fields accept all 4 decimal places; the others are rounded to 2.

Next steps​