Chaves de API
Como criar e usar uma chave de API do oxb: uma por servidor, com chave de acesso e chave secreta, 120 requisições por minuto e códigos de erro.
Esta página ainda não está traduzida para o seu idioma: a versão em inglês é exibida.
The oxb API lets you read and control your server from your own tools: a Discord bot, your website, a panel of your own. Every API Key belongs to one license and only returns the data of that server.

Create a key#
- 1
Open Panel → API Keys
Press Create API Key, give it a name and choose the server it belongs to.
- 2
Save the secret key
It is shown only once. Copy the access key and the secret key in a safe place.
- 3
Use it in your requests
They are sent in two headers:
x-api-key(access) andx-api-secret(secret).
curl -X POST https://api.oxbservices.com/v1/auth/verify \ -H "x-api-key: YOUR_ACCESS_KEY" \ -H "x-api-secret: YOUR_SECRET_KEY"{ "valid": true, "key": { "id": "…", "name": "My bot", "status": "ACTIVE", "totalRequests": 12 }, "server": { "id": "…", "name": "My server", "licenseExpiresAt": "2027-02-01T00:00:00.000Z" }, "rateLimit": { "limit": 120, "window": "1m" }}Rules#
- One key per server. To create another, delete the previous one.
- The key works while the license of the server is valid (neither expired nor banned).
- Limit: 120 requests per minute per key. Every response includes
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset. - Never put an API Key in a client resource or in a public repository.
Errors#
| Status | code | Meaning |
|---|---|---|
| 401 | MISSING_CREDENTIALS | x-api-key or x-api-secret is missing. |
| 401 | INVALID_KEY / INVALID_SECRET | The access key or the secret is not correct. |
| 403 | KEY_INACTIVE / KEY_EXPIRED | The key is suspended, cancelled or expired. |
| 403 | NO_LINKED_LICENSE / LICENSE_NOT_FOUND | The key is not bound to a server, or the server no longer exists. |
| 403 | LICENSE_BANNED / LICENSE_EXPIRED | The license of the server is banned or expired: renew it to keep using the API. |
| 429 | RATE_LIMIT_EXCEEDED | You went over 120 per minute. retryAfter gives the seconds to wait. |
| 400 | MISSING_PARAM / INVALID_BODY | A required field of the body is missing. |
| 503 | SERVER_OFFLINE | Actions that need the server (kick, ban, commands): the server is off or not answering. |
Última atualização: 11 de novembro de 2026