For agents
These docs as plain text and through an MCP server, so a coding agent can read them and use Pod
Every page of these docs is also plain Markdown, for an agent to read: ask for the page with Accept: text/markdown, or open it under https://docs.mapier.ai/llms.mdx/pod. The index of the whole Pod section is one file, https://docs.mapier.ai/llms/pod.txt.
Point your coding agent at that file and at the API reference, and give it a test key in POD_API_KEY. Everything a person does with a key, an agent can do with it too.
The docs' MCP server
The docs are also an MCP server, at https://docs.mapier.ai/mcp, over Streamable HTTP and with no key. It can search the docs, read a page as Markdown, and list every page. Pass product: "pod" to its search and list tools to keep to Pod's pages.
claude mcp add --transport http mapier-docs https://docs.mapier.ai/mcpOther clients take the same address as a remote MCP server.
A snippet for your agent's instructions
Paste this into your repository's AGENTS.md, or wherever your agent reads its instructions:
## Pod sandboxes
- Docs: https://docs.mapier.ai/llms/pod.txt (index), or the MCP server at https://docs.mapier.ai/mcp.
- API: https://api.pod.mapier.ai. The key is in POD_API_KEY; never print it or write it to a file.
- Use the SDK (@mapier/pod or mapier-pod) or `mpod` rather than raw HTTP.
- Every call that changes something sends an Idempotency-Key; send the same one when retrying.
- Branch on an error's `error` name, never its message. Retry only where the error list says so.
- Making keys, changing members and billing are for people only: ask, do not try.
- Delete sandboxes you no longer need, or let them sleep.Setting up, step by step
An agent that sets up Pod for you can follow these steps. Each one is safe to run again: it finds what is there before it makes anything.
- Check that
POD_API_KEYis set and starts withpod_test_. If it is missing, ask a person to make a test key in the dashboard: an agent cannot make one. - Install the SDK for the project's language:
@mapier/podormapier-pod. - List the sandboxes with a label of its own, such as
owner=setup-agent, and reuse one that is there. - Otherwise create one with that label and an
Idempotency-Keythe agent keeps, so a retry never makes a second. - Run a first command in it and check its exit code.
What only a person can do
Some actions are for people only, each with a fresh second factor, and no key can do them: making a key, changing members and roles, and the organization's billing. An agent that needs one of them asks you. A call it makes anyway answers person_required.
An agent never pays. Spending is capped by the spend caps a person sets, and a call past one answers spend_cap_reached.
An agent can start the sign-up
Not available yet Pod is open to invited teams. Public sign-up is not open yet.
An agent with no account can start a sign-up with no credential. Pod answers a test key it can use at once, held to small limits, and a claim link. The agent gives you the link; you sign in, accept the documents and become the owner, and the one who pays. Until then the agent can read whether you claimed it with its key. Unclaimed after 72 hours, the sign-up expires and its key stops working.
Good habits for an agent
- Use a test key until the work is right, and a key with only the scopes it needs.
- Send an
Idempotency-Keywith every call that changes something, and the same one when it sends the call again: Pod never acts twice on one key. - Branch on the error's name, never its message, and send a call again only where the error's rule allows it.
- Delete what it no longer needs, or let it sleep.