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 Type | Format |
|---|---|
| DateTime | ISO8601 format. Examples β Date: 2026-01-24. Date and time: 2026-01-24T10:07Z |
| Money | Decimal number in reais (BRL), with up to 4 decimal places. E.g.: 100.5 = R$ 100.50 |
| UUID | Resource identifiers in UUID v4 format |
Conventionsβ
Conventions used in this documentation:
| Convention | Description |
|---|---|
:variable | Variable 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_TOKEN | Access 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:
| Code | Description | |
|---|---|---|
| β | 200 OK | Successful request with a response body. |
| β | 201 Created | Resource created successfully. |
| β | 204 No Content | Successful request, with no response body. |
| β | 400 Bad Request | Invalid request, usually malformed content. |
| β | 401 Unauthorized | Access token missing or invalid. |
| β | 403 Forbidden | API access blocked or user without permission. |
| β | 404 Not Found | The address accessed does not exist. |
| β | 422 Unprocessable Entity | Valid request, but the data sent is not. |
| β | 429 Too Many Requests | Request limit reached. |
| β | 500 Internal Server Error | Internal 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β
- Specifications β OpenAPI 3.1 in YAML for download.
- Endpoints β platform and API URLs.
- User-Agent β recommended header to identify your application.
- Rate Limit β throttling and response headers.
- Idempotency β
X-Idempotency-Keyfor safe retries. - Webhooks β events fired in real time.
- Data Retention β retention policy by resource type.