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

# Get tools unlocked by scopes

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

> **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.

Returns the tools a set of scopes unlocks: tools that work for every input, and tools that work except for some inputs, with the scopes each of those inputs still needs. Deprecated and retired tools are left out.

---

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

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

**Summary:** Get tools unlocked by scopes

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

Returns the tools a set of scopes unlocks: tools that work for every input, and tools that work except for some inputs, with the scopes each of those inputs still needs. Deprecated and retired tools are left out.

### Authentication

**ApiKeyAuth** - API Key in `header` header `x-api-key`

### Path Parameters

- `toolkit_slug` (string) *(required)*: Toolkit to evaluate the scopes against.

### Request Body

**Schema:**

- `scopes` (array<string>) *(required)*: Scopes to evaluate, matched exactly by name: a scope the toolkit does not define unlocks nothing. An empty list returns the tools that need no scopes.
- `auth_scheme` (enum: "OAUTH2" | "OAUTH1" | "API_KEY" | ...): Auth scheme the connection will use. Defaults to OAUTH2.
- `toolkit_version` (string): Toolkit version to compute from; defaults to the latest published version. Pass a concrete version to pin.

**Example:**

```json
{
  "scopes": [
    "string"
  ],
  "auth_scheme": "OAUTH2",
  "toolkit_version": "latest"
}
```

### Responses

#### 200 - Successfully evaluated which tools the scopes unlock

**Response Schema:**

- `auth_scheme` (string) *(required)*: Auth scheme the coverage was computed under.
- `toolkit_version` (string) *(required)*: Concrete toolkit version the answer was computed from; pass it back as toolkit_version to pin.
- `covered_tools` (array<string>) *(required)*: Tools that work with the given scopes for every input.
- `partially_covered_tools` (array<object>) *(required)*: Tools that work with the given scopes except for some inputs, listed in limitations.
  - Array items:
    - `slug` (string) *(required)*: Tool slug.
    - `limitations` (array<object>) *(required)*: Conditions under which the tool does not work with the given scopes, and what each needs.
      - Array items:
        - `when` (object) *(required)*: Condition under which the tool still needs more scopes: input field name to qualifying values.
          - ...
        - `missing` (array<object>) *(required)*: Requirements the given scopes leave unmet under this condition; each needs one of its scopes.
          - Array items:
            - ...

**Example Response:**

```json
{
  "auth_scheme": "string",
  "toolkit_version": "string",
  "covered_tools": [
    "string"
  ],
  "partially_covered_tools": [
    {
      "slug": "string",
      "limitations": [
        "..."
      ]
    }
  ]
}
```

#### 400 - Bad request (validation_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>)

#### 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 toolkit does not support scope coverage 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
import json

response = requests.request("POST", "https://backend.composio.dev/api/v3.1/toolkits/string/scopes/coverage",
    headers={"Content-Type": "application/json", "x-api-key": os.environ["COMPOSIO_API_KEY"]},
    json=json.loads("{\"scopes\":[\"string\"],\"auth_scheme\":\"OAUTH2\",\"toolkit_version\":\"latest\"}"))
response.raise_for_status()
print(response.text)
```

#### TypeScript

```typescript
const response = await fetch("https://backend.composio.dev/api/v3.1/toolkits/string/scopes/coverage", {
  method: "POST",
  headers: { "Content-Type": "application/json", "x-api-key": process.env["COMPOSIO_API_KEY"]! },
  body: JSON.stringify({
  "scopes": [
    "string"
  ],
  "auth_scheme": "OAUTH2",
  "toolkit_version": "latest"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

#### API

```bash
curl -X POST "https://backend.composio.dev/api/v3.1/toolkits/string/scopes/coverage" \
  -H "x-api-key: $COMPOSIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scopes": [
      "string"
    ],
    "auth_scheme": "OAUTH2",
    "toolkit_version": "latest"
  }'
```

---

## 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.