Authentication

Create OAuth bearer token

Changed on

Generates an OAuth bearer token to authenticate your subsequent API calls. For more details, see OAuth 2.0 authentication. The server-side SDKs handle this for you by generating and refreshing the token before expiry.

post/v2.01/oauth/token

Request

  • Base URL
    https://api.sandbox.mangopay.com
  • URL
    https://api.sandbox.mangopay.com/v2.01/oauth/token
  • Auth
    HTTP bearer

Response

Success

access_tokenstring

The access token to use in the Authorization header of your subsequent API call.

token_typestring

Returned values: Bearer

The type of the token.

expires_ininteger

The number of seconds until the token expires.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id create_oauth_token removed and replaced with authentication_create_oauth_token