aid_auths_oauth_token_post
Use this endpoint to directly request an access_token
Client Access Token
Use HTTP Basic authentication scheme for authenticating grant_type client_credentials, use client_id/client_secret as user/password.
Code/Password Token
Use HTTP Bearer authentication scheme for authenticating grant_type authorization_code or password, where the Bearer value must be a JWT toke with access to the token endpoint.
Account User Token
Use HTTP Bearer authentication scheme for authenticating grant_type account_user_token, where the Bearer value must be a account user JWT token.
Use ID token as Bearer toke if the user was authenticated externally. The ID must include a email claim that identifies the account user.
Refresh Token
Use HTTP Bearer authentication scheme for authenticating grant_type refresh_token where the Bearer value must be an Access Token for the clients that was used to create the Refresh Token.
Multi-factor authentication (MFA)
When a request is made to the endpoint to get an access token, normally you either get an error, or you get an access token. However, when the MFA is enabled, the endpoint may return a new error with error.code: mfa_required.
When an mfa_required error is returned, the client must perform a challenge. This is done by sending a request to the auth/mfa/challenge endpoint
To verify MFA using an OOB challenge, the client must make a request to this endpoint with grant_type=mfa-oob. Include the oob_code you received from the challenge response, as well as the mfa_token you received as part of mfa_required error.
scopes:
- admin:accounts
- write:accounts
- write:accounts:/auth/users
- write:accounts:/auth/users/no-mfa
Path parameters
An id that uniquely identifies the account or owner (partner)
Request body
Example request
{
"audience": "https://api.dintero.com/v1/accounts/P00000000"
}Response
Success
Example response
{
"access_token": "eyJhbGci...t7P4",
"expires_in": 86400
}