---
agentTools:
  projectIndex: https://attio.readme.io/llms.txt
---

# Introspect Endpoint

Check whether an access token is valid, and if so, what scopes and identity it grants

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Attio OAuth flow",
    "description": "Welcome to the Attio OAuth flow documentation. All of the OAuth APIs are documented here.",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://app.attio.com",
      "description": "Production"
    }
  ],
  "paths": {
    "/oauth/introspect": {
      "post": {
        "summary": "Introspect Endpoint",
        "description": "Check whether an access token is valid, and if so, what scopes and identity it grants",
        "tags": [
          "OAuth 2.0"
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        }
                      },
                      "required": [
                        "active"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "description": "Whether the token is currently active and usable."
                        },
                        "scope": {
                          "type": "string",
                          "description": "A space-separated list of scopes associated with this token"
                        },
                        "client_id": {
                          "type": "string",
                          "description": "The app ID of the OAuth application that requested this token"
                        },
                        "token_type": {
                          "type": "string",
                          "enum": [
                            "Bearer"
                          ],
                          "description": "The type of token, always Bearer for tokens acquired via the OAuth 2.0 flow."
                        },
                        "exp": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The time at which this token will expire, if set, as a number of seconds since January 1 1970 UTC."
                        },
                        "iat": {
                          "type": "number",
                          "description": "The time at which this token was issued, as a number of seconds since January 1 1970 UTC."
                        },
                        "sub": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Since Bearer tokens grant Workspace-level permissions, this property contains the workspace_id."
                        },
                        "aud": {
                          "type": "string",
                          "description": "The intended audience for this token, for Bearer tokens this is the same as the client_id."
                        },
                        "iss": {
                          "type": "string",
                          "enum": [
                            "attio.com"
                          ],
                          "description": "The issuer of the token. Always attio.com"
                        },
                        "authorized_by_workspace_member_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid",
                          "description": "The ID of the workspace member who authorised this token initially, if known"
                        },
                        "workspace_id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The ID of the workspace the token is scoped to."
                        },
                        "workspace_name": {
                          "type": "string",
                          "description": "The name of the workspace the token is scoped to."
                        },
                        "workspace_slug": {
                          "type": "string",
                          "description": "The slug of the workspace the token is scoped to."
                        },
                        "workspace_logo_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri",
                          "description": "The logo URL of the workspace the token is scoped to."
                        }
                      },
                      "required": [
                        "active",
                        "scope",
                        "client_id",
                        "token_type",
                        "exp",
                        "iat",
                        "sub",
                        "aud",
                        "iss",
                        "authorized_by_workspace_member_id",
                        "workspace_id",
                        "workspace_name",
                        "workspace_slug",
                        "workspace_logo_url"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 103,
      "2": 36,
      "3": 204,
      "4": 181,
      "5": 71,
      "6": 16,
      "7": 0,
      "8": 98,
      "9": 191,
      "10": 62,
      "11": 18
    }
  }
}
```