OauthV1Token

Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant

Changed on

Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant

post/v1/token

Request

  • Base URL
    https://oauth.twilio.com
  • URL
    https://oauth.twilio.com/v1/token
  • Auth
    none required

Request body application/x-www-form-urlencoded

GrantTypestring required

Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.

ClientIdstring required

A 34 character string that uniquely identifies this OAuth App.

ClientSecretstring

The credential for confidential OAuth App.

Codestring

JWT token related to the authorization code grant type.

RedirectUristring

The redirect uri

Audiencestring

The targeted audience uri

RefreshTokenstring

JWT token related to refresh access token.

Scopestring

The scope of token

Response

Created

access_tokenstring nullable

Token which carries the necessary information to access a Twilio resource directly.

refresh_tokenstring nullable

Token which carries the information necessary to get a new access token.

id_tokenstring nullable

Token which carries the information necessary of user profile.

token_typestring nullable

Token type

expires_ininteger nullable

Changes

    • info

      the endpoint scheme security accountSid_authToken was removed from the API

    • breaking

      the response's property type changed from string to integer, and format from date-time to int64 for status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property became optional