Skip to main content

API keys

Every request to the Typeless API must include an API key. Keys use the format:
For example: tls_sk_AbC123... Create and manage your keys in the Typeless Console.

HTTP requests

Pass your key in the Authorization header using the Token scheme.

WebSocket connections

Pass your key as a token query parameter in the WebSocket URL.

Managing keys

From the Typeless Console you can create, rename, and revoke keys. The plaintext key value is shown only once — at creation time. If you lose a key, revoke it and create a new one.

Security

Protect your API keys like passwords.
  • Never embed keys in client-side code or public repositories
  • Store keys in environment variables or a secrets manager
  • If a key leaks, revoke it immediately in the console and create a new one

Authentication errors

See the Errors reference for full error handling guidance.