Authentication
All Mojave API requests must be authenticated using a bearer token. Tokens must be included in the Authorization
header of each request.
You can use Personal API Tokens or OAuth 2.0 access tokens depending on your use case.
API Token Authentication
To authenticate using a personal API token, include the token in the request header like this:
Example request:
If the token is valid, you will receive the authenticated user’s details in the response.
OAuth 2.0 Authentication
For public or user-facing integrations, use the OAuth 2.0 flow to obtain access tokens.
The general flow is:
Redirect users to Mojave's authorization URL.
Mojave redirects back with a temporary code.
Exchange the code for an access token using your client credentials.
Use the access token in the
Authorization
header.
Token example:
Token Scope and Expiration
API tokens do not expire unless manually revoked.
OAuth tokens expire and must be refreshed using a refresh token.
All tokens are workspace-scoped and role-sensitive.
Common Errors
Status | Error | Description |
---|---|---|
401 |
| Invalid or missing token |
403 |
| Token valid, but not permitted for action |