api-gateway
БесплатноБез исполняемых скриптовНе проверенCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a…
от maton-ai★ 36 звёзд на GitHubОб этом скилле
Maton API Gateway
Managed API routing for third-party apps, provided by Maton.
Installation
NPM
# Install the Maton CLI that every command in this skill runs through
npm install -g @maton/cli
Homebrew
# Install the Maton CLI that every command in this skill runs through
brew install maton-ai/cli/maton
Authentication
maton login
Prints a login link. Open it in a browser and copy the verification code shown. Then run maton login --code <CODE> to finish signing in. Once complete, it creates a profile in config.toml (eg. $HOME/.config/maton/config.toml) and stores the access and refresh tokens in the operating system's credential store (Keychain on macOS, Credential Manager on Windows, Secret Service on Linux), auto-renewed on expiry. The CLI reads them when it needs them.
Verify
maton whoami --json
{
"authenticated": true,
"profile_name": "[email protected]",
"auth_type": "oauth"
}
- If
authenticatedisfalse, stop and login again viamaton login. - If
auth_typeisapi_key, it is recommended to login viamaton loginand avoid keeping a long-lived credential.
Connections
List Connections
maton connection list slack --status ACTIVE
{
"connections": [
{
"connection_id": "{connection_id}",
"status": "ACTIVE",
"creation_time": "2025-12-08T07:20:53.488460Z",
"last_updated_time": "2026-01-31T20:03:32.593153Z",
"url": "https://connect.maton.ai/?session_token=5e9...",
"app": "slack",
"method": "OAUTH2",
"metadata": {}
}
]
}
Refer to maton connection list --help for possible flags and values.
Create Connection
Requires explicit user approval. Confirm the specific app and that the user intends to authorize access. Never create a connection on your own initiative.
maton connection create slack
maton connection create google-sheets --scopes https://www.googleapis.com/auth/spreadsheets.readonly
maton connection create github --access-policy-file policy.json
When the app offers a choice of OAuth scopes, ask the user which permissions they want and propose the narrowest set the task needs; pass them with --scopes (repeatable or comma-separated). The app's required scopes are always added, and leaving --scopes out requests the app's defaults. An unsupported scope returns 400 with the scopes the app offers. --access-policy limits which endpoints the connection may call; see Change Access Policy for the format.
For apps with permission data, references/<app>/scopes.md lists the OAuth scopes the app offers, and references/<app>/access-policy.md the access policy for read-only access and every reviewed endpoint, marked read or write (also at https://docs.maton.ai/<app>#permissions).
Refer to maton connection create --help for possible flags and values.
Get Connection
maton connection get {connection_id}
{
"connection": {
"connection_id": "{connection_id}",
"status": "PENDING",
"creation_time": "2025-12-08T07:20:53.488460Z",
"last_updated_time": "2026-01-31T20:03:32.593153Z",
"url": "https://connect.maton.ai/?session_token=5e9...",
"app": "google-sheets",
"metadata": {},
"access_policy": null
}
}
Open the returned URL in a browser to complete authorizing the app. If the app offers scope selection, choose only the scopes the current task needs.
A FAILED connection carries a status_reason (credentials_rejected, or credentials_unverified for email apps) and usually a status_detail sentence saying why. Reauthorize it in place (see Reauthorize Connection), which keeps its connection ID; create a new connection only if reauthorizing fails. Email apps also report a status_reason while PENDING; see the app's reference.
Once the connection is ACTIVE, metadata.granted_scopes lists the OAuth scopes the provider actually granted, when the app reports them; the user may grant fewer than were chosen. access_policy is null when the connection has full access, or the allow and deny rules it is limited to.
If a call returns 403 from the app and the scope it needs is not granted, the response's maton_hint names the missing permission. Tell the user; don't retry and don't create a new connection. Offer to change the connection's scopes (see Reauthorize Connection), only if the user agrees.
Refer to maton connection get --help for possible flags and values.
Reauthorize Connection
maton connection reauthorize {connection_id}
Reauthorizes a FAILED or PENDING connection in place: the user authorizes the app again in the browser and the connection keeps its ID, so anything using that ID keeps working. For iCloud Mail and Yahoo Mail the user enters a new app-specific password, which is veri
Установить api-gateway в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobВложенные файлы
FAQ
Что делает скилл api-gateway?
Call third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected search or scraping provider. Every call goes to an app the user connected. It is not a general-purpose browser or network client, and it cannot reach a service with no Maton connection. It also manages event triggers, webhook destinations that forward event payloads to an external URL until deleted, and local `--exec` handlers that run a script per event - separate, high-risk capabilities beyond a normal API call. Default to read and list calls; every write, connection, trigger, destination, or handler needs explicit user confirmation.
Как установить скилл api-gateway?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-gateway запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic