API
API reference
Anything you can do in the UI, you can do via the API. A predictable REST API, real-time webhooks and official SDKs to connect The Agency CRM to your own stack.
Last updated: July 16, 2026
Basics
The API is a REST API with JSON payloads and clear error codes. Every request is authenticated with an API key or an OAuth2 token. All write operations support idempotency keys so you can retry safely without duplicate records.
Authentication
Pass your API key in the Authorization header. Create keys in the dashboard under Settings → API. Keys are scoped and revocable at any time.
curl https://api.theagencycrm.nl/v1/deals \
-H "Authorization: Bearer YOUR_API_KEY"Key resources
GET /v1/leads— Fetch leads, with cursor-based pagination.POST /v1/deals— Create a deal and place it in a pipeline stage.POST /v1/invoices— Create an invoice and send it with a payment link.GET /v1/clients— Search and manage your clients and contacts.
Webhooks
Receive events the moment they happen — deal created, deal won, invoice paid — with automatic retries and signature verification. Configure endpoints in the dashboard and verify every payload with the included signature.
MCP
Beyond the REST API, The Agency CRM offers an MCP (Model Context Protocol) server. Use it to connect AI assistants directly to your CRM and call the same actions the built-in assistant uses.
Full reference
The complete endpoint documentation with request and response examples, SDKs and the OpenAPI spec lives on the developers page.