Authorization header using the Bearer scheme:
Authentication methods
Clerk JWT tokens are issued by the Admin Center frontend session. They are short-lived and well-suited for interactive use, ad-hoc API calls, or testing from your terminal. Organization API keys are long-lived tokens that start withak_live_. They are scoped to your organization and intended for CI/CD pipelines, automation scripts, and any non-interactive workflow where a user session is not available.
API keys are scoped to your organization. Every request must carry a valid token that includes your organization context. Requests without a valid org ID claim will be rejected with a
401 error.Example requests
- Clerk JWT
- Organization API key
Retrieve your JWT from the Admin Center session (available in your browser’s local storage or via the Clerk SDK). Use it as a Bearer token:JWT tokens expire with your session. If you receive a
401, sign in again at admin.hackgate.io to get a fresh token.Troubleshooting authentication errors
A401 Unauthorized response means one of the following:
- Your token is missing from the request
- Your JWT has expired — sign in again to get a fresh token
- Your API key has been revoked or does not exist
- Your token does not carry an organization ID claim — ensure you are using a token generated under the correct organization context
401 errors, verify the key was created for the organization you are targeting and that it has not been rotated or deleted in Settings > API Keys.