OAuth
OAuth Token Exchange
Exchange authorization code for access token or refresh an access token. Accepts application/json or application/x-www-form-urlencoded.
post/oauth/token
Request
- Base URLhttps://api.midday.ai
- URLhttps://api.midday.ai/oauth/token
- Auth
- OAuth 2Authorization code: https://app.midday.ai/oauth/authorizeToken URL: https://api.midday.ai/oauth/token
- or HTTP bearer
Response
Token exchange successful
Example response
{
"access_token": "mid_access_token_abcdef123456789",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "mid_refresh_token_abcdef123456789",
"scope": "transactions.read invoices.read"
}Changes
No recorded changes to this operation across all 1 revision of this API.