Skip to main content
These docs are available in forms that AI tools can read directly, so an agent can look up the API while it writes your integration.

The docs as text

The quickest way to give an AI tool these docs is to hand it one of these URLs. There is nothing to install.
That file holds every page of these docs, so an agent can read all of it in one request. The menu at the top of each page can also copy the page as Markdown or open it in an AI assistant.

OpenAPI

The whole API is described in one OpenAPI 3.1 file:
Use it to generate a client, or give it to an agent as the source of truth for endpoints, fields and error messages.

MCP server

If your tool supports MCP, it can search these docs itself instead of reading them all up front. The server is at:
Add it to your tool once:
Open Settings, then Connectors, select Add custom connector, and enter https://docs.coinstack.net/mcp.

What to tell an agent

If you are writing your own prompt, these are the points integrations most often get wrong:
  • The base URL is https://coinstack.net/api/v1. Authenticate with Authorization: Bearer sk_... from a server, never from a browser.
  • Every response is {"success": true, "response": {...}} or {"success": false, "response": "message"}.
  • Amounts are strings. Token amounts on quotes and payments are in the token’s smallest unit.
  • Fulfil an order when its checkout’s status is completed, not when the customer returns to success_url.
  • Verify the CoinStack-Signature header on every webhook, using the raw request body.
  • The same webhook event can arrive more than once.