AgentKit API reference
AgentKit's API lets your agent act in each user's apps. It sends the user to approve access, keeps their tokens, and runs tools as that user.
The API is REST over HTTPS. Requests and responses are JSON, and every request carries a bearer token. Call it with the Python or Node.js SDK, or from any language over HTTP. Each endpoint page shows the REST request and the SDK methods that call it.
A connector is the app, such as Gmail, and a connection is your configuration for it, so the REST field connector takes the connection name, such as my-gmail.
Start here
- Authenticate with your client ID and secret.
- Create a user's authorization link and send them to approve.
- Execute a tool as that user.
For a working agent end to end, follow the Quickstart. To use AgentKit with LangChain, Google ADK, the Vercel AI SDK or another framework, choose a framework.
Resources
- ConnectionsYour settings for one app, such as Gmail: create, read, update and delete it.5 endpoints
- Connected accountsEach user's link to an app: create, read, update and delete it.7 endpoints
- AuthorizationSend a user to approve access, then confirm it was them.2 endpoints
- ToolsFind the tools a user can call, and run one as that user.5 endpoints
- Virtual MCP serversServe a chosen set of tools to an MCP client, with a token per user.8 endpoints
- Custom connectorsTell Scalekit how to sign in to an app that isn't in the catalog.3 endpoints
- TriggersGet an event when something changes in a user's app, and check its delivery.21 endpoints
- WebhooksThe events Scalekit sends to your endpoint when a connected account changes.9 events