# Programmable Dev > Safe tool access for AI agents. Your server calls the app API with its key; your agents call one MCP endpoint per tenant and actor with a short-lived token; people connect their accounts on a hosted page. Every call has grants, daily caps, optional human approval, a cost log, and results marked as untrusted data. The app API is JSON over HTTPS with `Authorization: Bearer pd_live_…`. Refusals are `{ error, code }`. ## Docs - [How it fits together](https://programmable.dev/docs#overview): Your server holds an app key; your agents hold short-lived tokens; people connect their accounts on our page. - [Quickstart: your first proxied call](https://programmable.dev/docs#quickstart): From an app key to a call to GitHub through a user's connection, in about five minutes. - [App keys and authentication](https://programmable.dev/docs#keys): One Bearer key per server, two live at a time so you can rotate without downtime. - [Connect sessions](https://programmable.dev/docs#connect-sessions): Send a person to our page to connect an account; they come back to your site. - [The proxy](https://programmable.dev/docs#proxy): Your server calls a provider's API with a user's connection; the credential stays with us. - [Token read](https://programmable.dev/docs#token-read): When your server must hold a user's OAuth access token itself. - [The MCP endpoint](https://programmable.dev/docs#mcp): Agents connect to one URL per tenant and actor and see only their granted tools. - [MCP sign-in (OAuth for stock MCP clients)](https://programmable.dev/docs#mcp-oauth): Claude, n8n and other MCP clients connect to one agent by sending a person to sign in, with no token to paste. - [Grants, tool calls and approvals](https://programmable.dev/docs#tools-and-approvals): Which tools each agent may use, how many times a day, and which calls wait for a person. - [Webhooks](https://programmable.dev/docs#webhooks): Signed events to your server: approvals, connections, provider events and access requests. - [Providers](https://programmable.dev/docs#providers): What your users can connect, for a picker and for host checks. - [Rate limits and caps](https://programmable.dev/docs#rate-limits): Every limit, and what you get past it. - [Security model](https://programmable.dev/docs#security): What each credential can do, what a leak costs you, and what we do not protect against. - [Errors](https://programmable.dev/docs#errors): One shape for every refusal, and a catalogue of every code. ## API reference - [OpenAPI 3.1 document](https://programmable.dev/openapi.json): every endpoint, body and response. - [Tenants and actors](https://programmable.dev/docs#tag-tenants-and-actors): A tenant is one of your customers; an actor is one of their agents. Both use your own ids, created on first use. - [Connections](https://programmable.dev/docs#tag-connections): A tenant's accounts at other services. People connect through a hosted page; keys never pass through your app. - [Providers](https://programmable.dev/docs#tag-providers): The services your users can connect, and the hosts the proxy may call. - [Proxy](https://programmable.dev/docs#tag-proxy): Your own server calls a provider's API through a connection. We add the credential; you never see it. - [Rate limits](https://programmable.dev/docs#tag-rate-limits): Optional calls-a-minute ceilings for your app and its tenants. A call over a ceiling is refused at once and is not charged. - [Token read](https://programmable.dev/docs#tag-token-read): Your server holds a connection's OAuth access token itself. Off until you turn it on. - [Grants and tools](https://programmable.dev/docs#tag-grants-and-tools): Which tools each agent may use, with daily caps and approvals; call them over REST or MCP. - [Approvals](https://programmable.dev/docs#tag-approvals): Calls waiting for a person to say yes. - [Usage](https://programmable.dev/docs#tag-usage): Calls, outcomes and cost; spending limits per app, tenant and actor. - [Call history](https://programmable.dev/docs#tag-call-history): Each call a tenant's agents and your proxy made, one at a time. - [Webhooks](https://programmable.dev/docs#tag-webhooks): Events sent to your server, signed with your secret. - [Your OAuth clients](https://programmable.dev/docs#tag-your-oauth-clients): Register your own OAuth client so the consent screen names your app. - [MCP sign-in](https://programmable.dev/docs#tag-mcp-sign-in): Let the person your app names connect a stock MCP client (Claude, n8n) to their agent by signing in, instead of pasting a token. - [Access requests](https://programmable.dev/docs#tag-access-requests): Let an agent ask your server for a tool it doesn't have. - [MCP server catalogue](https://programmable.dev/docs#tag-mcp-server-catalogue): Remote MCP servers your users can connect. ## Optional - [Everything in one file](https://programmable.dev/llms-full.txt): the guides, every endpoint and the error catalogue. - [Error catalogue](https://programmable.dev/docs#error-catalogue): every error code with its status and meaning.