Docs

Authentication

Send your key in the Authorization header of every request:

Authorization: Bearer <key>

API key and Gateway key

An API key works for all your Gateways. A request with it goes through your Default Gateway, unless it names another Gateway in gateway. You can have several, each with a name, an Expiry, Allowed IPs and an on/off switch. It is shown one time, when you make it.

A Gateway key works for one Gateway only. A request with it sends through that Gateway, so you name none. Telrioz makes it when the Gateway is created and shows it one time. It has the same Expiry and on/off switch as an API key, but no Allowed IPs.

Expiry

Expiry is the last day (WIB) a key works. From the next day, the key is refused as expired.

Allowed IPs

Allowed IPs are the IP addresses and networks an API key may be used from. If you set none, the key works from any address. A request from another address is refused.

Key errors

A key that is wrong, off, expired or from the wrong address is refused. The full list of errors is in Errors.

Key errors
HTTP statuserrorMeaningFix
401unauthorizedNo Bearer key, or a key we do not know.Send the header Authorization: Bearer <key> with a key from Developers โ†’ Credentials.
401key_disabledThe key is switched off.Switch the key on in Developers โ†’ Credentials, or use another key.
401key_expiredThe key is past its last day (WIB).Make a new key, or ask your admin to move the key's expiry date.
403ip_not_allowedThe request is not from one of the key's allowed IPs.Ask your admin to add this IP to the key's Allowed IPs, or remove the limit.