platform
account-management
oauth

Create OAuth2 token

Generate OAuth2 access token that can later on be used to authenticate other Infobip API calls.

post/auth/1/oauth2/token

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body application/x-www-form-urlencoded

client_idstring required

The username created when signing up with Infobip.

client_secretstring required

The password created when signing up with Infobip.

grant_type'client_credentials' | 'authorization_code ' required

Grant type as defined by the OAuth framework.

codestring

Authorization code received from the authorization server. This parameter is required only if the grant_type is set to authorization_code.

Response

successful response

access_tokenstring

OAuth2 token.

expires_ininteger

OAuth2 token expiration in seconds.

token_typestring

OAuth2 token type.

Changes

No recorded changes to this operation across all 1 revision of this API.