---
canonical_url: "https://docs.composio.dev/reference/api-reference/toolkits/listToolkitScopes"
markdown_url: "https://docs.composio.dev/reference/api-reference/toolkits/listToolkitScopes.md"
product: "platform"
version: "3.1"
last_updated: null
---

# List toolkit scopes

**Documentation:** /reference/api-reference/toolkits/listToolkitScopes

> **API version:** This page documents Composio REST API v3.1, the current version, at `https://backend.composio.dev/api/v3.1`. `https://backend.composio.dev/api/v3` is the previous version and remains supported.

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.

---

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

**Endpoint:** `https://backend.composio.dev/api/v3.1/toolkits/{toolkit_slug}/scopes`

**Summary:** List toolkit 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.

### Authentication

**ApiKeyAuth** - API Key in `header` header `x-api-key` OR **UserApiKeyAuth** - API Key in `header` header `x-user-api-key`

### Path Parameters

- `toolkit_slug` (string) *(required)*: Toolkit to list scopes for.

### Query Parameters

- `auth_scheme` (enum: "OAUTH2" | "S2S_OAUTH2"): Auth scheme whose scopes to list: OAUTH2 or S2S_OAUTH2, the auth schemes that carry scopes. Defaults to OAUTH2.
- `toolkit_version` (string): Toolkit version to read the scopes from; defaults to the latest published version. Pass a concrete version to pin.

### Responses

#### 200 - Successfully listed the auth scheme's scopes

**Response Schema:**

- `auth_scheme` (string) *(required)*: Auth scheme whose scope catalog is listed.
- `toolkit_version` (string) *(required)*: Concrete toolkit version the catalog was read from; pass it back as toolkit_version to pin.
- `scopes` (array<object>) *(required)*: Every scope in the auth scheme's catalog, in catalog order; [] only when the catalog has no scopes.
  - Array items:
    - `scope` (string) *(required)*: Scope name exactly as the provider spells it.
    - `description` (string) *(required)*: What the scope grants, in the provider's wording.
    - `deprecated` (boolean) *(required)*: Whether the provider has deprecated this scope.
    - `grantable_when` (object) *(required)*: Grant contexts in which the provider grants this scope: dimension to its allowed values, using the dimensions listed by GET /api/v3.1/toolkits/{toolkit_slug}/scopes/grant_context. {} means every grant context can grant it.
      - `[key: string]` (array<string>)
    - `implied_by` (array<string>) *(required)*: Scopes that directly imply this one: granting any of them also grants this scope. Direct impliers only, not transitive: follow implied_by of each implier for chains.

**Example Response:**

```json
{
  "auth_scheme": "string",
  "toolkit_version": "string",
  "scopes": [
    {
      "scope": "string",
      "description": "string",
      "deprecated": true,
      "grantable_when": {
        "key": "..."
      },
      "implied_by": [
        "..."
      ]
    }
  ]
}
```

#### 400 - Bad request (auth_scheme other than OAUTH2 or S2S_OAUTH2, or not defined by the toolkit)

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 401 - Unauthorized

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 404 - Toolkit or toolkit_version not found

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 500 - Internal server error

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 501 - The scope catalog for this toolkit and auth scheme is not available yet (not_supported)

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

### Example requests

Python uses `requests`; TypeScript uses Node.js fetch. Replace sample IDs and values before sending these requests.

Set `COMPOSIO_API_KEY` before running these requests.

#### Python

```python
import os
import requests

response = requests.request("GET", "https://backend.composio.dev/api/v3.1/toolkits/string/scopes",
    headers={"x-api-key": os.environ["COMPOSIO_API_KEY"]})
response.raise_for_status()
print(response.text)
```

#### TypeScript

```typescript
const response = await fetch("https://backend.composio.dev/api/v3.1/toolkits/string/scopes", {
  method: "GET",
  headers: { "x-api-key": process.env["COMPOSIO_API_KEY"]! },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

#### API

```bash
curl -X GET "https://backend.composio.dev/api/v3.1/toolkits/string/scopes" \
  -H "x-api-key: $COMPOSIO_API_KEY"
```

---

## REST API version

The current REST API version is **v3.1**, served at `https://backend.composio.dev/api/v3.1`. Prefer it for new code and new examples.

`https://backend.composio.dev/api/v3` is the previous version. It is frozen with pinned tool-version defaults and remains supported — existing v3 integrations keep working and do not need to migrate.