{
  "opencollection": "1.0.0",
  "info": {
    "name": "Zendesk Account Account Settings OAuth Tokens API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "OAuth Tokens",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Zendesk Get  Api V2 Oauth Tokens",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/oauth/tokens"
          },
          "docs": "Returns the properties of the tokens for the current user. Admins can view OAuth token properties for all users using the [all](/api-reference/ticketing/oauth/oauth_tokens/#parameters) parameter. The [client_id](/api-reference/ticketing/oauth/oauth_tokens/#parameters) parameter can be included to filter that list by a global or local OAuth client ID. For security reasons, only the first 10 characters of each access token are included.\n\n#### Pagination\n\n* Cursor pagination (recommended)\n* Offset "
        },
        {
          "info": {
            "name": "Zendesk Post  Api V2 Oauth Tokens",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v2/oauth/tokens"
          },
          "docs": "Returns an OAuth access token with a specified [scope](#scopes).\n\nRefresh tokens aren't used. An access token doesn't expire but it can be [revoked](#revoke-token).\n\nFor a tutorial, see [Creating and using OAuth tokens with the API](/documentation/ticketing/working-with-oauth/creating-and-using-oauth-tokens-with-the-api/).\n\n**Note**: For OAuth authorization code, use the [Create Token for Grant Type](/api-reference/ticketing/oauth/grant_type_tokens/#create-token-for-grant-type) endpoint.\nThe two"
        },
        {
          "info": {
            "name": "Zendesk Get  Api V2 Oauth Tokens Oauth_token_id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/oauth/tokens/:oauth_token_id"
          },
          "docs": "Returns the properties of the specified token. For security reasons, only the first 10 characters of the access token are included.\n\nIn the first endpoint, `id` is a token id, not the full token.\n\nIn the second endpoint, include an `Authorization: Bearer` header with the full token to get its associated properties. Example:\n\n```sh\ncurl https://{subdomain}.zendesk.com/api/v2/oauth/tokens/current.json \\\n  -H 'Authorization: Bearer ${authToken}' \\\n  -v -u {email_address}/token:{api_token}\n```\n\n####"
        },
        {
          "info": {
            "name": "Zendesk Delete  Api V2 Oauth Tokens Oauth_token_id",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v2/oauth/tokens/:oauth_token_id"
          },
          "docs": "#### Allowed for\n * Admins, Agents, End Users\n"
        }
      ]
    }
  ],
  "bundled": true
}