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

# AI agent permissions

> Which API operations AI agents can use, and how keys and business approval limit access.

Choose permissions for the task your AI agent needs to complete. For example,
`sessions:write` lets it create a checkout session for a customer to pay.

A call needs both a key with the permission and the business's approval in the
same mode. For a platform agent, the connection and Platform Program must also
allow it. Ionic checks access on every request.

## Supported API operations

The table covers agents acting in their own business's account. Platform
agents can use the same operations except `payment_links:write` and
`payments:read`: those routes don't support `Ionic-Account`.

| Permission | Operations |
| - | - |
| `customers:read` | `GET /v1/customers`, `GET /v1/customers/{id}` |
| `customers:write` | `POST /v1/customers` |
| `invoices:read` | `GET /v1/invoices`, `GET /v1/invoices/{id}` |
| `invoices:write` | `POST /v1/invoices`, `POST /v1/invoices/{id}/lines`, `DELETE /v1/invoices/{id}/lines/{line_id}`, `POST /v1/invoices/{id}/finalize` |
| `products:read` | `GET /v1/products`, `GET /v1/products/{id}`, `GET /v1/prices`, `GET /v1/prices/{id}` |
| `products:write` | `POST /v1/products`, `POST /v1/products/{id}`, `POST /v1/products/{id}/set_default_price`, `POST /v1/prices`, `POST /v1/prices/{id}` |
| `payment_links:read` | `GET /v1/payment_links`, `GET /v1/payment_links/{id}` |
| `payment_links:write` | `POST /v1/payment_links`, `POST /v1/payment_links/{id}`, `POST /v1/payment_links/{id}/activate`, `POST /v1/payment_links/{id}/deactivate` |
| `sessions:read` | `GET /v1/checkout/sessions`, `GET /v1/checkout/sessions/{id}` |
| `sessions:write` | `POST /v1/checkout/sessions` |
| `payments:read` | `GET /v1/transactions`, `GET /v1/transactions/{id}` |

Customers complete payments on the invoices, checkout sessions, and payment
links an agent creates. These agent operations don't include direct charges,
refunds, payouts, or account administration.

## Spend permissions

These permissions let an agent use the [Spend](https://docs.ionicfi.com/spend/overview.md) endpoints. The agent
also needs access to a card, and the business approves each purchase. For a
platform agent, the connection and Platform Program must also allow them.

| Permission | Agent operations |
| - | - |
| `spend:read` | `GET /v1/spend/cards`, `GET /v1/spend_intents`, `GET /v1/spend_intents/{id}` |
| `spend:write` | `POST /v1/spend_intents`, `POST /v1/spend_intents/{id}/claim`, `POST /v1/spend_intents/{id}/cancel` |

Read and write are separate permissions. Your server creates card setup
sessions with its own key; the agent creates and claims
[spend intents](https://docs.ionicfi.com/api-reference/spend-intents.md).

## Change permissions

Removing a permission blocks it on the agent's next request. A key keeps the
permissions it was issued with, so after you add a permission, issue a new key.

For an AI assistant connected over MCP, a new permission may also require
reconnecting the app. See [Change or remove access](https://docs.ionicfi.com/guides/connect-ai-assistants.md#change-or-remove-access).

## Choose a guide

* [Connect your AI agent](https://docs.ionicfi.com/guides/agents.md) to your own account.
* [Connect your platform's AI agent](https://docs.ionicfi.com/guides/connect-agents.md) to a business.
* [Connect an AI agent over MCP](https://docs.ionicfi.com/guides/connect-ai-assistants.md) using any compatible client.


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