Composio
Playground
API ReferenceToolkits

List toolkit scopesv3.1

GET
/api/v3.1/toolkits/{toolkit_slug}/scopes

Experimental: this endpoint is in beta and its contract may change.

Lists every scope an auth scheme of the toolkit supports, with what each scope grants, whether it is deprecated, the grant contexts that can grant it and the scopes that already imply it.

Authorization

x-api-key<token>

Project API key authentication

In: header

Path Parameters

toolkit_slugstringRequired

Toolkit to list scopes for.

Query Parameters

auth_schemeenum

Auth scheme whose scopes to list: OAUTH2 or S2S_OAUTH2, the auth schemes that carry scopes. Defaults to OAUTH2.

Default: "OAUTH2"
Possible values:
OAUTH2S2S_OAUTH2
toolkit_versionstring

Toolkit version to read the scopes from; defaults to the latest published version. Pass a concrete version to pin.

Default: "latest"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

import requestsurl = "https://example.com/api/v3.1/toolkits/string/scopes"response = requests.request("GET", url)print(response.text)
{  "auth_scheme": "OAUTH2",  "toolkit_version": "20261201_00",  "scopes": [    {      "scope": "Mail.Read",      "description": "Allows the app to read the signed-in user's mailbox.",      "deprecated": false,      "grantable_when": {},      "implied_by": [        "Mail.ReadWrite"      ]    },    {      "scope": "Mail.Read.Shared",      "description": "Allows the app to read mail a user can access, including their own and shared mail.",      "deprecated": false,      "grantable_when": {        "account_type": [          "work or school"        ]      },      "implied_by": [        "Mail.ReadWrite.Shared"      ]    }  ]}