Skip to main content
The Astradial API supports three authentication methods depending on your use case. The simplest way to authenticate. Create an API key from the dashboard and include it in every request. Header format:
Example:

Create an API key

  1. Go to API & Webhooks in the sidebar
  2. Click Create Key
  3. Enter a name and select permissions
  4. Copy the key immediately — it is only shown once

API key permissions

Each key can have specific permissions:
API keys are scoped to your organization. You can only access your own data.

JWT bearer token

For user-level authentication, use a JWT token obtained from the login endpoint. Get a token:
Response:
Use the token:
JWT tokens expire after 24 hours.

Internal API key (server-to-server)

For internal service communication between your own services and Astradial. This bypasses organization-level auth.
The internal API key has full access to all organizations. Only use it for trusted server-to-server communication. Never expose it in client-side code.

Response codes