Twilio Oauth2 API

The Oauth2 API from Twilio — 2 operation(s) for oauth2.

Operations 3

PUT /v1/Account/OAuthApps/{sid} Updates an existing OAuth app for the given OauthAppSid #
DELETE /v1/Account/OAuthApps/{sid} Deletes an oauth app for the given AccountSid #
POST /v1/Account/OAuthApps Creates an oauth app for the given AccountSid #

Documentation

📖
Documentation
https://www.twilio.com/docs/iam/api/account
📖
Documentation
https://www.twilio.com/en-us/blog/insights/ai/what-is-intelligent-virtual-assistant
📖
Documentation
https://www.twilio.com/docs
📖
Documentation
https://www.twilio.com/docs/conversations
📖
Documentation
https://www.twilio.com/docs/marketplace
📖
Documentation
https://www.twilio.com/en-us/messaging
📖
Documentation
https://www.twilio.com/en-us/user-authentication-identity/verify
📖
Documentation
https://www.twilio.com/docs/video
📖
Documentation
https://www.twilio.com/en-us/voice
📖
Documentation
https://www.twilio.com/docs/lookup
📖
Documentation
https://www.twilio.com/docs/flex
📖
Documentation
https://www.twilio.com/docs/sendgrid
📖
Documentation
https://www.twilio.com/docs/iam/scim/api-reference
📖
Documentation
https://www.twilio.com/docs/iam/oauth-apps/account-oauth-apps
📖
Documentation
https://www.twilio.com/docs/iam/oauth-apps/oauth-access-token
📖
Documentation
https://www.twilio.com/docs/iam/oauth-apps/overview
📖
Documentation
https://www.twilio.com/docs/conversations/memory/api-quickstart
📖
Documentation
https://www.twilio.com/docs/conversations/knowledge
📖
Documentation
https://www.twilio.com/docs/conversational-intelligence
📖
Documentation
https://www.twilio.com/docs/voice
📖
Documentation
https://www.twilio.com/docs/voice/voice-insights
📖
Documentation
https://www.twilio.com/docs/global-infrastructure
📖
Documentation
https://www.twilio.com/docs/messaging
📖
Documentation
https://www.twilio.com/docs/phone-numbers
📖
Documentation
https://www.twilio.com/docs/content
📖
Documentation
https://www.twilio.com/docs/chat

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/twilio:twilio-oauth2-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

twilio-oauth2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twilio - Iam Oauth2 API
  description: This is the public Twilio REST API.
  termsOfService: https://www.twilio.com/legal/tos
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
  x-twilio:
    apiStandards: v0.1
servers:
- url: https://iam.twilio.com
security:
- accountSid_authToken: []
tags:
- name: OAuth2
paths:
  /v1/Account/OAuthApps/{sid}:
    servers:
    - url: https://iam.twilio.com
    put:
      summary: Updates an existing OAuth app for the given OauthAppSid
      operationId: UpdateOauthAppAccount
      tags:
      - OAuth2
      parameters:
      - name: sid
        in: path
        required: true
        description: Unique ID (sid) of the OAuth app
        schema:
          type: string
          pattern: ^OQ[a-zA-Z0-9]{32}$
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/iam.v1.account.VendorOauthAppUpdateRequest'
        required: true
      responses:
        '200':
          description: Returns updated vendor oauthApp
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/iam.v1.account.VendorOauthAppCreateUpdateResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
    delete:
      summary: Deletes an oauth app for the given AccountSid
      operationId: DeleteOauthAppAccount
      tags:
      - OAuth2
      parameters:
      - name: sid
        in: path
        required: true
        description: Unique ID (sid) of the OAuth app
        schema:
          type: string
          pattern: ^OQ[a-zA-Z0-9]{32}$
      responses:
        '204':
          description: Successfully deleted the OAuth app. No content returned.
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
  /v1/Account/OAuthApps:
    servers:
    - url: https://iam.twilio.com
    post:
      summary: Creates an oauth app for the given AccountSid
      operationId: CreateOauthAppAccount
      tags:
      - OAuth2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/iam.v1.account.VendorOauthAppCreateRequest'
        required: true
      responses:
        '201':
          description: Returns newly created vendor oauthApp
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/iam.v1.account.VendorOauthAppCreateUpdateResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    description: Twilio-specific error code
                    type: integer
                    format: int32
                  message:
                    description: Error message
                    type: string
                  more_info:
                    description: Link to Error Code References
                    type: string
                  status:
                    description: HTTP response status code
                    type: integer
                    format: int32
components:
  schemas:
    iam.v1.account.VendorOauthAppCreateRequest:
      type: object
      properties:
        type:
          type: string
        friendly_name:
          type: string
        owner_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^[A-Z]{2}[0-9a-fA-F]{32}$
        description:
          type: string
        client_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^OQ[0-9a-fA-F]{32}$
        token_endpoint_auth_method:
          type: string
          enum:
          - client_secret_basic
          description: Determines how the client authenticates. Account OAuth apps on v1 only support 'client_secret_basic'. For PKCE (none), use the v2 API.
        policy:
          type: object
          properties:
            allow:
              type: array
              items:
                type: string
              description: Set of permissions explicitly allowed
            deny:
              type: array
              items:
                type: string
              description: Set of permissions explicitly denied
        access_token_ttl:
          type: integer
    iam.v1.account.VendorOauthAppUpdateRequest:
      type: object
      properties:
        type:
          type:
          - string
          - 'null'
        friendly_name:
          type:
          - string
          - 'null'
        description:
          type:
          - string
          - 'null'
        policy:
          type:
          - object
          - 'null'
          properties:
            allow:
              type: array
              items:
                type: string
              description: Set of permissions explicitly allowed
            deny:
              type: array
              items:
                type: string
              description: Set of permissions explicitly denied
        access_token_ttl:
          type:
          - integer
          - 'null'
    iam.v1.account.VendorOauthAppCreateUpdateResponse:
      type: object
      properties:
        type:
          type: string
        sid:
          type: string
          pattern: ^OQ[a-zA-Z0-9]{32}$
        friendly_name:
          type: string
        description:
          type: string
        date_created:
          type: string
          format: date-time
        created_by:
          type: string
        creator_sid:
          type: string
          pattern: ^US[0-9a-fA-F]{32}$
          description: The unique identifier (SID) of the user who created this OAuth app.
        secret:
          type: string
        status:
          type: string
        policy:
          type: object
          properties:
            allow:
              type: array
              items:
                type: string
              description: Set of permissions explicitly allowed
            deny:
              type: array
              items:
                type: string
              description: Set of permissions explicitly denied
        access_token_ttl:
          type: integer
  securitySchemes:
    accountSid_authToken:
      scheme: basic
      type: http
    access_token_bearer:
      type: http
      scheme: bearer
      bearerFormat: access_token
    m2mOauth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: M2M Access Token