{
  "opencollection": "1.0.0",
  "info": {
    "name": "Telnyx Access Tokens OAuth Grants API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "OAuth Grants",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List OAuth grants",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/oauth_grants",
            "params": [
              {
                "name": "page[size]",
                "value": "",
                "type": "query",
                "description": "Number of results per page"
              },
              {
                "name": "page[number]",
                "value": "",
                "type": "query",
                "description": "Page number"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a paginated list of OAuth grants for the authenticated user"
        },
        {
          "info": {
            "name": "Get OAuth grant",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/oauth_grants/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "OAuth grant ID"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a single OAuth grant by ID"
        },
        {
          "info": {
            "name": "Revoke OAuth grant",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.telnyx.com/v2/oauth_grants/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "OAuth grant ID"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Revoke an OAuth grant"
        }
      ]
    }
  ],
  "bundled": true
}