Authentication
OAuth 2.0 authentication endpoints
OAuth 2.0 Client Credentials flow endpoint.
Two authentication methods supported:
Standard OAuth (client_secret):
Include
client_secretin request bodyNo additional headers needed
mTLS OAuth (RFC 8705 - certificate replaces secret):
Include
X-Client-Certheader with base64-encoded certificateOmit
client_secretfrom request bodyCertificate authenticates the client instead of secret
Token lifetime: 1 hour Verification: Fast local JWT verification (<1ms)
For mTLS clients only (RFC 8705): Base64-encoded client certificate in PEM format.
When provided, certificate replaces client_secret for authentication.
Example:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...
To encode your certificate:
base64 -w 0 client.crt
OAuth grant type (must be client_credentials)
Your OAuth client identifier
Your OAuth client secret.
Required for standard OAuth clients. Omit for mTLS clients - certificate authenticates instead.
Access token issued successfully
Invalid request (missing or invalid parameters)
Invalid client credentials
POST /v1/oauth/token HTTP/1.1
Host: enterprise.bitmind.ai
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 119
"grant_type='client_credentials'&client_id='dae11660b4da11f08a03cb03e6b22977'&client_secret='your-client-secret'"{
"access_token": "eyJhbGciOiJSUzI1NiJ9...",
"token_type": "Bearer",
"expires_in": 3600
}Last updated