> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coinstack.net/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The CoinStack API base URL is https://coinstack.net/api/v1. Authenticate with an API key sent as 'Authorization: Bearer sk_...' from a server, never from a browser. Every response is a JSON object with 'success' and 'response'. Amounts are strings; token amounts on quotes and payments are in the token's smallest unit. Fulfil an order when its checkout 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 OpenAPI file is at https://docs.coinstack.net/openapi.json.

# Build with AI

> Give coding agents and AI assistants direct access to these docs.

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.

```
https://docs.coinstack.net/llms-full.txt
```

That file holds every page of these docs, so an agent can read all of it in one request.

| URL | Contents |
| - | - |
| [`/llms-full.txt`](https://docs.coinstack.net/llms-full.txt) | Every page in one file. |
| [`/llms.txt`](https://docs.coinstack.net/llms.txt) | A list of every page with a one-line description and a link. |
| Any page URL followed by `.md` | That page as Markdown, for example [`/quickstart.md`](https://docs.coinstack.net/quickstart.md). |

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:

```
https://docs.coinstack.net/openapi.json
```

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:

```
https://docs.coinstack.net/mcp
```

Add it to your tool once:

> [tab] Claude
>
> Open **Settings**, then **Connectors**, select **Add custom connector**, and enter `https://docs.coinstack.net/mcp`.

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http coinstack-docs https://docs.coinstack.net/mcp
> ```

> [tab] Cursor
>
> Add this to `mcp.json`:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "coinstack-docs": {
>       "url": "https://docs.coinstack.net/mcp"
>     }
>   }
> }
> ```

> [tab] VS Code
>
> Add this to `.vscode/mcp.json`:
>
> ```json theme={null}
> {
>   "servers": {
>     "coinstack-docs": {
>       "type": "http",
>       "url": "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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.