Generate Token
Token
Generate Token
Generates an access token that is required to authenticate requests to protected APIs.
Authentication
- Call this endpoint using HTTP Basic Authentication, passing your Modular API credentials as the username and password.
Token Usage
-
The generated token must be included as a Bearer token in the
Authorizationheader when calling other protected APIs:Authorization: Bearer <token> -
Requests made without this header, or with an invalid or expired token, will be rejected.
Security Notes
- Treat the token as a secret credential.
- Do not expose the token in client-side applications.
- If the token is suspected to be compromised, contact us to request token revocation or rotation.
POST
Generate Token