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

# Integrate SimplePay with an agent

> Give an agent the public contract and rules that prevent invented routes or fields.

Give the agent the OpenAPI specification before requesting code. The bundle comes from routes available to integrators.

## Use these sources

| Source                          | Purpose                                               |
| ------------------------------- | ----------------------------------------------------- |
| `/en/openapi.json`              | Exact methods, routes, schemas, scopes, and responses |
| `/en/api-reference/overview.md` | Environments, authentication, and global rules        |
| `/llms.txt`                     | Compact documentation index                           |
| `/llms-full.txt`                | Full content for broad context                        |

## Set agent rules

Require the agent to:

* Read OpenAPI before generating code
* Use only routes and fields in the bundle
* Keep the key in the backend
* Start with `https://api.test.simplepay.mx`
* Add idempotency to compatible mutations
* Verify webhooks with the original body
* Avoid processor parameters and IDs
* Run examples against sandbox

<Warning>
  Reject integrations that invent key prefixes, endpoints, or responses.
</Warning>
