Okapi
v1.1.0Breaking changes of third-party APIs: check your code's API calls before they break.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_calls Check API calls
Before writing or changing code that calls a third-party API, send the calls (URL, method, models, parameters, version headers, SDK) and get each one's status (broken, at_risk, redirected, deprecated, ok, unknown) with the breaking changes that hit it: what breaks, when, what to migrate to, the provider's source. Works without a key (25 calls, the changes providers announced); a free key adds the ones Okapi inferred and 100 calls a request.
| Parameter | Type | Description |
|---|---|---|
calls * | array |
search_breaking_changes Search breaking changes
The breaking changes 1 to 10 providers announced: those to come (the nearest first), or in effect within a year, with their day, what changes, what to use instead and the okapi.bot page to cite. A provider by its okapi.bot slug: find it with search_providers. 20 a page (50 at most): pass nextCursor back as cursor for the next. Needs a free API key (Authorization: Bearer okapi_…).
| Parameter | Type | Description |
|---|---|---|
providers * | array | Providers' okapi.bot slugs: openai, anthropic, stripe-api. |
cursor | string | The nextCursor of the page before. |
kind | string | |
limit | integer | Changes a page: 20 by default. |
when | string | upcoming (the default), past (in effect within a year) or all. |
get_breaking_change Read a breaking change
One breaking change by its id (openai/gpt-4o) or its okapi.bot page URL: its facts, what it targets, the migration. Needs a free API key (Authorization: Bearer okapi_…).
| Parameter | Type | Description |
|---|---|---|
id | string | Its id: provider/slug, as search_breaking_changes gives it. |
url | string | Or its page on okapi.bot. |
search_providers Search API providers
API providers by name, host or slug (stripe, api.openai.com), each with its okapi.bot slug and how many breaking changes Okapi publishes for it. Needs a free API key (Authorization: Bearer okapi_…).
| Parameter | Type | Description |
|---|---|---|
query * | string |
list_repositories List your repositories
Your repositories Okapi reaches through its GitHub App, in a workspace, each with its last scan (status, calls found, providers), and your workspaces. Needs a free API key (Authorization: Bearer okapi_…).
| Parameter | Type | Description |
|---|---|---|
workspace | string | A workspace's id from list_repositories; your personal one when left out. |
get_repository_calls Read a repository's calls
Every API call Okapi found in one of your repositories at its last scan, each with its file and line, its status and the breaking changes that hit it; the broken and at risk first. Needs a free API key (Authorization: Bearer okapi_…).
| Parameter | Type | Description |
|---|---|---|
repository * | string | owner/name, or its id from list_repositories. |
status | string | Only the calls in this status. |
workspace | string | A workspace's id from list_repositories; your personal one when left out. |