Authentication

The gateway uses Bearer Token authentication. Every request carries your API key in the Authorization header.

Header

Authorization: Bearer $ADMESH_API_KEY

Example

curl https://gateway.admesh.ai/v1/models \
  -H "Authorization: Bearer $ADMESH_API_KEY"

Key validation failures

  • Missing or incorrect key → 401 invalid_api_key.
  • Revoked or disabled key → 401 invalid_api_key.

Notes

  • The key travels in the header only, never the URL, so it stays out of access logs.
  • In a browser app, proxy requests through your own backend — never expose the key to clients directly.