Retrieves authorize uri

GET /v1/authorize

Retrieves authorize uri

Query parameters

  • ResponseType string

    Response Type

  • ClientId string

    The Client Identifier

  • RedirectUri string

    The url to which response will be redirected to

  • Scope string

    The scope of the access request

  • State string

    An opaque value which can be used to maintain state between the request and callback

Responses

  • 302 application/json

    Found

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attribute Show response attribute object
    • redirect_to string(uri) | null

      The callback URL

GET /v1/authorize
curl \
 --request GET 'https://oauth.twilio.com/v1/authorize'
Response examples (302)
{
  "redirect_to": "https://www.twilio.com/authorize?response_type=code&client_id=OQ7cda1a615f05a95634e643aaaf7081d7&redirect_uri=www.twilio.com&scope=offline_access&state=xvz"
}