Okapi

v1.1.0
bot.okapi/okapi Checked 1 day ago Published 26 days ago

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

ParameterTypeDescription
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_…).

ParameterTypeDescription
providers *arrayProviders' okapi.bot slugs: openai, anthropic, stripe-api.
cursorstringThe nextCursor of the page before.
kindstring
limitintegerChanges a page: 20 by default.
whenstringupcoming (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_…).

ParameterTypeDescription
idstringIts id: provider/slug, as search_breaking_changes gives it.
urlstringOr 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_…).

ParameterTypeDescription
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_…).

ParameterTypeDescription
workspacestringA 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_…).

ParameterTypeDescription
repository *stringowner/name, or its id from list_repositories.
statusstringOnly the calls in this status.
workspacestringA workspace's id from list_repositories; your personal one when left out.