// get started

Authentication

Every API request is authenticated with an API key sent as a bearer token.

Send your key

Put the key in the Authorization header. The OpenAI SDKs do this for you when you pass api_key / apiKey.

Header
Authorization: Bearer sk_litepod_...

Managing keys

  • Create and revoke keys on API Keys. Keys start with sk_litepod_.
  • We store only a hash of each key, so a key can't be shown again after you create it.
  • All keys in your account share one wallet and one rate limit.
  • Revoking a key stops it immediately. Requests already in progress finish.

Keep keys secret

warning · Never put a key in browser or mobile code
Anyone who can read the key can spend your wallet. Call Litepod from your server, and keep the key in an environment variable or a secrets manager. If a key leaks, revoke it and create a new one.

Authentication errors

A missing, malformed or revoked key returns 401 with code invalid_api_key:

401 response
{
  "error": {
    "message": "Invalid API key",
    "type": "authentication_error",
    "code": "invalid_api_key"
  }
}