Pular para o conteúdo principal

Static API Keys

Companies use static API keys to authenticate directly with the OlaClick Public API. These keys are generated from the OlaClick panel, are bound to a single company, and never expire.

Key format​

EnvironmentPrefixBase URL
Productionolk_live_https://public-api.olaclick.app
Sandboxolk_test_https://public-api.olaclick-stg.click

Using a key in the wrong environment returns 401.

Usage​

Send the API key in one of these headers on every request:

Authorization header (Bearer)​

GET /v1/orders HTTP/1.1
Host: public-api.olaclick.app
Authorization: Bearer olk_live_a1b2c3d4e5f6...

X-API-Key header​

GET /v1/orders HTTP/1.1
Host: public-api.olaclick.app
X-API-Key: olk_live_a1b2c3d4e5f6...

Both methods are equivalent. If you send both headers with the same key, it works. If you send both with different keys, the request is rejected with 400.

Error responses​

Responses​

Request authenticated successfully.


Key characteristics​

PropertyValue
ExpirationNever — valid until revoked
ScopeBound to a single company
Rate limitBased on the company's plan tier
RevocationFrom the OlaClick panel