Telnyx OAuth Grants API

The OAuth Grants API from Telnyx — 2 operation(s) for oauth grants.

Operations 6

GET /oauth_grants List OAuth grants #
DELETE /oauth_grants/{id} Revoke OAuth grant #
GET /oauth_grants/{id} Get OAuth grant #
GET /oauth/grants List OAuth grants #
DELETE /oauth/grants/{id} Revoke OAuth grant #
GET /oauth/grants/{id} Get OAuth grant #

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/telnyx-oauth-grants-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

telnyx-oauth-grants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Telnyx OAuth Grants API
  version: 2.0.0
  contact:
    email: support@telnyx.com
  x-endpoint-cost: light
  x-refined-note:
  - x-latency-category differs across the merged source definitions and was not carried
  description: 'Operations tagged OAuth Grants across 2 of this provider''s published API definitions: telnyx-openapi.yml, telnyx-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- description: Version 2.0.0 of the Telnyx API
  url: https://api.telnyx.com/v2
security:
- bearerAuth: []
tags:
- name: OAuth Grants
paths:
  /oauth_grants:
    get:
      description: Retrieve a paginated list of OAuth grants for the authenticated user
      operationId: ListOAuthGrants
      parameters:
      - description: Number of results per page
        in: query
        name: page[size]
        schema:
          default: 20
          maximum: 100
          minimum: 1
          type: integer
      - description: Page number
        in: query
        name: page[number]
        schema:
          default: 1
          minimum: 1
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/OAuthGrant'
                    type: array
                  meta:
                    $ref: '#/components/schemas/oauth_PaginationMeta'
                type: object
          description: List of OAuth grants
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
          description: Unauthorized
      security:
      - bearerAuth: []
      summary: List OAuth grants
      tags:
      - OAuth Grants
      x-latency-category: responsive
    servers:
    - description: Version 2.0.0 of the Telnyx API
      url: https://api.telnyx.com/v2
  /oauth_grants/{id}:
    delete:
      description: Revoke an OAuth grant
      operationId: RevokeOAuthGrant
      parameters:
      - description: OAuth grant ID
        in: path
        name: id
        required: true
        schema:
          format: uuid
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/OAuthGrant'
                type: object
          description: OAuth grant revoked successfully
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
          description: OAuth grant not found
      security:
      - bearerAuth: []
      summary: Revoke OAuth grant
      tags:
      - OAuth Grants
      x-latency-category: responsive
    get:
      description: Retrieve a single OAuth grant by ID
      operationId: GetOAuthGrant
      parameters:
      - description: OAuth grant ID
        in: path
        name: id
        required: true
        schema:
          format: uuid
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/OAuthGrant'
                type: object
          description: OAuth grant details
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
          description: OAuth grant not found
      security:
      - bearerAuth: []
      summary: Get OAuth grant
      tags:
      - OAuth Grants
      x-latency-category: responsive
    servers:
    - description: Version 2.0.0 of the Telnyx API
      url: https://api.telnyx.com/v2
  /oauth/grants:
    get:
      operationId: getOauthGrants
      tags:
      - OAuth Grants
      summary: List OAuth grants
      description: Retrieve a paginated list of OAuth grants for the authenticated user
      parameters:
      - name: page[size]
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
        description: Number of results per page
      - name: page[number]
        in: query
        schema:
          type: integer
          minimum: 1
          default: 1
        description: Page number
      responses:
        '200':
          description: List of OAuth grants
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OAuthGrant'
                  meta:
                    $ref: '#/components/schemas/oauth_PaginationMeta'
              example:
                data:
                - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  record_type: oauth_grant
                  client_id: string
                  scopes:
                  - string
                  created_at: '2024-01-23T18:10:02.574Z'
                meta:
                  page_number: 0
                  page_size: 0
                  total_results: 0
                  total_pages: 0
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
      x-latency-category: responsive
      x-operation-id-source: normalized
      x-operation-id-original: ListOAuthGrants
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
  /oauth/grants/{id}:
    delete:
      operationId: deleteOauthGrantsById
      tags:
      - OAuth Grants
      summary: Revoke OAuth grant
      description: Revokes the specified OAuth grant, withdrawing the access previously granted to the client.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: OAuth grant ID
      responses:
        '200':
          description: OAuth grant revoked successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/OAuthGrant'
              example:
                data:
                  id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  record_type: oauth_grant
                  client_id: string
                  scopes:
                  - string
                  created_at: '2024-01-23T18:10:02.574Z'
        '404':
          description: OAuth grant not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
      x-latency-category: responsive
      x-operation-id-source: normalized
      x-operation-id-original: RevokeOAuthGrant
    get:
      operationId: getOauthGrantsById
      tags:
      - OAuth Grants
      summary: Get OAuth grant
      description: Returns the details of a single OAuth grant on your account by its ID.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: OAuth grant ID
      responses:
        '200':
          description: OAuth grant details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/OAuthGrant'
              example:
                data:
                  id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  record_type: oauth_grant
                  client_id: string
                  scopes:
                  - string
                  created_at: '2024-01-23T18:10:02.574Z'
        '404':
          description: OAuth grant not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth_Error'
      x-latency-category: responsive
      x-operation-id-source: normalized
      x-operation-id-original: GetOAuthGrant
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
components:
  schemas:
    OAuthGrant:
      properties:
        client_id:
          description: OAuth client identifier
          type: string
        created_at:
          description: Timestamp when the grant was created
          format: date-time
          type: string
        id:
          description: Unique identifier for the OAuth grant
          format: uuid
          type: string
        last_used_at:
          description: Timestamp when the grant was last used
          format: date-time
          type:
          - string
          - 'null'
        record_type:
          description: Record type identifier
          enum:
          - oauth_grant
          type: string
        scopes:
          description: List of granted OAuth scopes
          items:
            type: string
          type: array
      required:
      - id
      - record_type
      - client_id
      - scopes
      - created_at
      type: object
    oauth_Error:
      properties:
        error:
          description: Error code
          type: string
        error_description:
          description: Human-readable error description
          type: string
      required:
      - error
      type: object
    oauth_PaginationMeta:
      properties:
        page_number:
          description: Current page number
          type: integer
        page_size:
          description: Number of items per page
          type: integer
        total_pages:
          description: Total number of pages
          type: integer
        total_results:
          description: Total number of results
          type: integer
      type: object
    oauth_oauth_Error:
      type: object
      properties:
        error:
          type: string
          description: Error code
        error_description:
          type: string
          description: Human-readable error description
      required:
      - error
    oauth_oauth_PaginationMeta:
      type: object
      properties:
        page_number:
          type: integer
          description: Current page number
        page_size:
          type: integer
          description: Number of items per page
        total_results:
          type: integer
          description: Total number of results
        total_pages:
          type: integer
          description: Total number of pages
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    branded-calling_bearerAuth:
      description: API key passed as a Bearer token in the Authorization header
      scheme: bearer
      type: http
    oauthClientAuth:
      description: OAuth 2.0 authentication for Telnyx API and MCP integrations
      flows:
        authorizationCode:
          authorizationUrl: https://api.telnyx.com/v2/oauth/authorize
          refreshUrl: https://api.telnyx.com/v2/oauth/token
          scopes:
            admin: Administrative access to Telnyx resources
          tokenUrl: https://api.telnyx.com/v2/oauth/token
        clientCredentials:
          scopes:
            admin: Administrative access to Telnyx resources
          tokenUrl: https://api.telnyx.com/v2/oauth/token
      type: oauth2
    outbound-voice-profiles_bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
    pronunciation-dicts_bearerAuth:
      description: Telnyx API v2 key. Obtain from https://portal.telnyx.com
      scheme: bearer
      type: http
    stored-payment-transactions_bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Telnyx API key supplied as `Authorization: Bearer <token>`. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.'
    Payment:
      type: apiKey
      in: header
      name: Authorization
      description: 'Machine Payment Protocol credential used on paid retries, sent as `Authorization: Payment ...`. Obtained by paying a challenge returned in the `WWW-Authenticate` header of a 402 response. This is not a Telnyx API key; initial challenge requests use standard bearer authentication instead.'
    agent-memory_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key
    collections_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key. Collections and results are automatically scoped to the authenticated user's organization.
    number-reputation_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
    rcs-registration_bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
    transcriptions-search_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key. Results are automatically scoped to the authenticated user's organization.
    web-search_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key
x-refined-from:
- telnyx-openapi.yml
- telnyx-openapi.json