API reference
Authentication
Exchange your client credentials for a bearer token. Tokens last 60 minutes.
Get an access token
POST/api/partner/v1/oauth/token
Exchanges your application's client ID and secret for a bearer token (OAuth 2.0 client credentials). Tokens last 60 minutes. Errors from this endpoint use the OAuth 2.0 format (error, error_description), not the Lint error shape.
Body
- grant_typestringrequired
One of
client_credentials - client_idstringrequired
From Integrations → Applications in the dashboard.
Example:
"a3204c24-8b6a-4300-a31c-7b1228243eb4" - client_secretstringrequired
Keep this on your server.
Example:
"your-client-secret"
Responses
- 200Token issued
- 401Wrong client ID or secret, or the application was revoked (OAuth 2.0 error format).
- 422A field failed validation.
validation_failed
curl -X POST https://staging.lint.finance/api/partner/v1/oauth/token \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"grant_type": "client_credentials",
"client_id": "a3204c24-8b6a-4300-a31c-7b1228243eb4",
"client_secret": "your-client-secret"
}'Response · 200
{
"token_type": "Bearer",
"expires_in": 3600,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9…"
}