---
title: "Developer platform: API and MCP in Mexico | Clara"
description: "Build with Clara’s REST API or connect an assistant through MCP in Mexico. Explore authentication, sandbox, transaction examples and agent resources."
canonical: "https://www.clara.com/en-mx/products/developers"
lang: "en-MX"
alternate_html: "https://www.clara.com/en-mx/products/developers"
---

# Your Clara data. In your code and your AI.

1. [Home](https://www.clara.com/en-mx)
2. Developers

Build an integration with the REST API, or connect your existing Clara account to an AI assistant through MCP. Start with cards and transactions.

[Connect Clara MCP](#dev-mcp)[Explore the API](#dev-api)

Mexico, Colombia and Brazil. Technical documentation in English.

Illustrative example · no live account connected

REST API

```sh
GET https://public-api.mx.clara.com/api/v3/transactions
?page=0&size=10
```

Example response · an empty page is valid

```json
{
  "content": [],
  "totalElements": 0,
  "totalPages": 0,
  "size": 10,
  "number": 0
}
```

Clara MCP

> Show my last 10 Clara transactions.

`list_transactions`

Your assistant uses list\_transactions to retrieve transactions from the active company. It can explain the returned data in your language.

## Choose your first result

A backend integration and an assistant connection have different setup steps. Pick the interface that fits your workflow.

REST API

### Build with the REST API

For scheduled syncs, reconciliation jobs and custom integrations.

1. Create an API project in Clara with the permissions your integration needs. Store its credentials securely.
2. Use your client certificate and private key for mTLS, then obtain an OAuth 2.0 access token.
3. Request the first page of transactions. Follow pagination when exporting more records.
[API authentication and credentials](https://developers.clara.team/authentication)

Read transactions with the API · Mexico

```sh
curl --fail-with-body \
  --cert "$CLARA_CLIENT_CERT" \
  --key "$CLARA_PRIVATE_KEY" \
  --header "Authorization: Bearer $CLARA_ACCESS_TOKEN" \
  "https://public-api.mx.clara.com/api/v3/transactions?page=0&size=10"
```

CLARA\_CLIENT\_CERT and CLARA\_PRIVATE\_KEY are local file paths. CLARA\_ACCESS\_TOKEN is an OAuth access token. Keep all credentials in your secret manager or runtime environment.

Sandbox

```sh
curl --fail-with-body \
  --cert "$CLARA_CLIENT_CERT" \
  --key "$CLARA_PRIVATE_KEY" \
  --header "Authorization: Bearer $CLARA_ACCESS_TOKEN" \
  "https://public-api.mx.clara.com/api-test/v3/transactions?page=0&size=10"
```

[Sandbox](https://developers.clara.team/sandbox)

Expected result: HTTP 200 with content, totalElements, totalPages, size and number. page starts at 0\. Sandbox access and credentials are separate; request access from integration support.

MCP · Beta

### Bring Clara into your assistant

For questions and documented actions during a conversation. Clara MCP is in Beta.

Requires an existing Clara account with the Company Owner or Bookkeeper role. No API key or static token is needed.

1. Choose the server for your Clara account’s country.
2. Add a remote MCP connector in a supported assistant, select OAuth, and sign in with Clara.
3. Start with “List my Clara cards” or “Show my last 10 transactions” to verify the connection.

Product MCP server · Mexico

```
https://mx.clara.team/mcp
```

[MCP setup by assistant](https://developers.clara.team/mcp/quickstart)  
[Explore Clara MCP](https://www.clara.com/developers/mcp)

MCP does not issue cards, change limits, approve expenses, manage reimbursements or move money.

Your assistant provider receives and processes the data returned by tool calls under its own terms.

To revoke connected assistant access, contact Clara support. The current documentation describes no self-service revocation screen.

## Build something useful

Three practical starting points, each linked to its implementation guide.

- ### [Reconcile card transactions](https://developers.clara.team/guides/reconcile-transactions)  
Retrieve paginated transactions and compare them with billing statements in your own workflow. REST API · all three markets.
- ### [React to transaction events](https://developers.clara.team/api-reference/webhooks)  
Receive signed transaction webhooks, verify their signature and handle retries. REST API · all three markets.
- ### [Review spend in a conversation](https://developers.clara.team/mcp/tools)  
Connect an existing account, select the active company and ask about its transactions. Product MCP · all three markets.

## Know what each tool does

These are the seven documented product MCP tools. Reads, account changes and session changes are labeled separately.

`list_cards`Read

List company cards, cardholders, status and limits.

`list_transactions`Read

Retrieve company card transactions with filters.

`list_companies`Read

List accessible companies and identify the active one.

`lock_card`Account action

Immediately lock a card.

`unlock_card`Account action

Immediately unlock a card.

`upload-transaction-document`Account action

Attach a receipt or invoice to a transaction.

`switch_company`Session change

Change the active company for subsequent calls.

[MCP tools and examples](https://developers.clara.team/mcp/tools)

### Build for the right market

Mexico

MXN · Cards, transactions, users and webhooks. CFDI invoice endpoints are specific to Mexico.

`https://public-api.mx.clara.com`  
`https://mx.clara.team/mcp`

Colombia

COP · Cards, transactions, users and webhooks. Mexico’s CFDI and Brazil’s payment APIs do not apply.

`https://public-api.co.clara.com`  
`https://co.clara.team/mcp`

Brazil

BRL · Cards, transactions, users and webhooks, plus documented Digital Account, Pix, boleto and DDA APIs. These payment APIs are separate from MCP.

`https://public-api.br.clara.com`  
`https://br.clara.team/mcp`

[Build for the right market](https://developers.clara.team/country-features)

## Start here

Mexico, Colombia and Brazil. Technical documentation in English.

- ### [Developer documentation](https://developers.clara.team/introduction)  
Base URLs, versions, a quick start and the API reference.
- ### [Authentication (mTLS + OAuth 2.0)](https://developers.clara.team/authentication)  
Create a project, download the certificate and request an access token.
- ### [API reference: Cards](https://developers.clara.team/api-reference/cards)  
The reference opens on Cards; the docs sidebar carries transactions, users, webhooks and the rest.
- ### [OpenAPI 3.1 specification](https://developers.clara.team/openapi.json)  
A v3 high-value subset of the API, not a complete contract. Use it for typed clients and tooling.
- ### [Sandbox and test mode](https://developers.clara.team/sandbox)  
Test with separate credentials and /api-test/ paths. Sandbox access is requested from integration support.
- ### [API plans and limits](https://developers.clara.team/pricing)  
Pro and Enterprise access, the trial and the call allowances. The docs page is authoritative.

## Give your coding agent the right context

Copy a country-specific brief with the correct hosts, authentication, supported tools and canonical sources. It contains public documentation only.

Documentation reviewed: 2026-11-22

- [Read this page as Markdown](https://www.clara.com/en-mx/products/developers.md)
- [Capabilities JSON](https://www.clara.com/developers/capabilities.json)
- [Agent implementation instructions](https://developers.clara.team/agent-instructions.md)
- [Copy context for your agent · Markdown](https://www.clara.com/developers/context/en/mx.md)
- [llms.txt](https://developers.clara.team/llms.txt)
- [Documentation search MCP](https://www.clara.com/.well-known/mcp/server-card.json)  
Searches public documentation. It does not connect to your Clara account.

## Before you start

### Should I use the API or MCP?

Use the REST API for deterministic backend integrations and scheduled jobs. Use product MCP for an assistant connected to an existing Clara account. Their authentication and supported operations differ.

### Can an agent create its own API credentials?

No. A person with administrator access creates an API project in Clara. REST requests require both mTLS and an OAuth 2.0 Bearer token. Product MCP instead uses Clara account login with OAuth.

### Is the OpenAPI specification exhaustive?

No. The published OpenAPI 3.1 file covers a documented v3 subset. Check the canonical reference and country availability before relying on an operation.

### Can MCP make payments or approve expenses?

No. The documented Beta tools list cards and transactions, list and switch companies, lock and unlock cards, and attach transaction documents. Payment APIs and expense approvals are outside this MCP toolset.

## Keep your integration running

Ask your market’s integration team about API credentials, sandbox access or limits. Use the current documentation for plan availability.

- ### [Mexico · integration.support.mx@clara.team](mailto:integration.support.mx@clara.team)
- ### [Colombia · integration.support.co@clara.team](mailto:integration.support.co@clara.team)
- ### [Brazil · integration.support.br@clara.team](mailto:integration.support.br@clara.team)
- ### [API changelog](https://developers.clara.team/versioning)
- ### [Errors and troubleshooting](https://developers.clara.team/error-handling)
- ### [API plans and limits](https://developers.clara.team/pricing)
- ### [Clara status](https://status.clara.com/)
- ### [ERP integrations](https://www.clara.com/en-mx/platform/integrations)

## Create your account in minutes
