API docs / API reference / Clients
Create a client
POST /v1/clients
One of your customers. Audits, link campaigns and mailboxes can belong to a client, so usage, reports and branding split by customer.
Body
| name required string | Shown in reports. |
| external_ref string | Your own id, e.g. from your CRM. |
| metadata object | Up to 20 keys, kept as given. |
Send an Idempotency-Key header to make a retry safe: the same key within 24 hours returns the first answer and is never charged twice.
Request
curl -X POST "https://amarkos.com/api/v1/clients" \
-H "Authorization: Bearer $AMARKOS_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Tools",
"external_ref": "crm-2231"
}'Response · 201
{
"id": "cl_8a1b2c3d4e5f40a1b2c3d4e5f6a7b8c9",
"name": "Acme Tools",
"external_ref": "crm-2231",
"metadata": {},
"branding": null,
"created_at": "2026-11-10T09:00:00Z"
}