Clienvy API documentation

Clienvy API documentation

The Clienvy API lets you manage the resources of an organization programmatically. Every request is authenticated with a bearer token and scoped to a single organization.

Authentication

Every request is authenticated with a bearer token and scoped to an organization.

While logged in to Clienvy, create a token under Settings → API and MCP. Each token is scoped to the permissions you grant it, so you control exactly what the API may do on your behalf.

Send the token in the Authorization header on every request:

Code
Authorization: Bearer <your-token>

Organization header

Clienvy is multi-tenant, so every request must identify which organization it operates on through the X-Organization-Id header. The value is the organization's UUID. (You may alternatively pass it as an organization_id query parameter.) A missing or unknown organization results in an HTTP 404.

Pagination

List endpoints are paginated. Select a page with the page query parameter (for example ?page=2). The page size is set with the per_page parameter (for example ?per_page=200, capped at 500), but only on endpoints that list per_page among their parameters: an endpoint that documents page alone pages at a fixed size of its own and ignores per_page. The default page size is 25 items for most endpoints. A paginated response wraps the items in data and adds a meta object:

JSONCode
{ "data": [ { "…": "…" } ], "meta": { "current_page": 1, "from": 1, "to": 25, "per_page": 25, "last_page": 4, "total": 92 } }

Single resources are returned bare (no data wrapper) — only paginated lists are wrapped.

Rate limiting

Requests are limited to 250 per minute. Exceeding the limit returns HTTP 429 Too Many Requests. If a higher limit is required, please contact support.

Errors

The API uses standard HTTP status codes — 401 (not authenticated), 403 (forbidden), 404 (not found), 422 (validation failed) and 429 (rate limit exceeded). A 422 response lists the offending fields:

JSONCode
{ "message": "The given data was invalid.", "errors": { "email": [ "The email field is required." ] } }

Dates

Timestamps are returned as Y-m-d H:i:s strings (for example 2026-07-17 14:30:00).

Spaces and collections

Spaces are where teams work together; they require the Spaces module. The model has four layers:

  • A space holds a tree of nodes. A space is standalone, belongs to a project, or belongs to a project template. A project or template space follows the access of what it belongs to; the spaces of a template are a blueprint that is copied onto every project made from that template.
  • A node is a page (a document) or a board. A node shares its UUID with its page or board, so the node ID is also the page or board ID. Pages and boards can be nested under a page.
  • A board shows the items of a collection: a custom data type such as tasks, whose fields are the columns. One collection can be shown on several boards, and every item lives on exactly one board.
  • A board has one or more views, each a table or a kanban with its own filters, sorting and visible fields.

Reading spaces and working with items needs the space.view permission; changing a space and its pages, boards and views needs space.edit. Creating a space needs space.create, deleting a space or one of its nodes needs space.delete. Collections and their fields are managed with full access.

Block content

Page content and item descriptions (content) are rich-text documents stored as a list of ProseMirror nodes, as produced by the Tiptap editor, without the surrounding doc node. Supported nodes are paragraph, heading (level), bulletList, orderedList, listItem, taskList, taskItem (checked), text and hardBreak; text marks are bold, italic, strike, underline and link (href). Anything else is removed when saving.

JSONCode
[ { "type": "heading", "attrs": { "level": 2 }, "content": [ { "type": "text", "text": "Kick-off" } ] }, { "type": "paragraph", "content": [ { "type": "text", "text": "Agenda", "marks": [ { "type": "bold" } ] } ] } ]
Tags
Contact
Company
Company mandates
Accounting relations
Credits
Deal
Deal statuses
Deal flows
Ticket
Ticket statuses
Ticket mails
Phone identities
Project
Project statuses
Project templates
Space
Space pages
Space boards
Collection
Collection items
Knowledge
Time entry
Time categories
Time tracking employees
Planning
Invoice
Invoice flows
Invoice styles
Subscription
Tax rates
Revenue categories
Website
Website tags
Website applications
Website application Pressable
Website application Kinsta
Website application wordpress
Website application cronjobs
Website mailbox domain
Website mailbox forward
Website mailbox account
Website mailbox backup
WordPress identities
Domain
Domain DNS
Domain redirects
Domain SMTP
Domain holders
Files
Versions
Employee
Employee invites
Organization
Audit log
List views
Integrations
Clienvy billing
HTML bundles
Space showcases
Marketing mailings
BETA. Part of the E-mailmarketing module, which only works for organizations that were given access to the beta and switched the module on. Do not use these endpoints on your own initiative; only when the user explicitly asks for a mailing. A mailing is an HTML mail of one mail type, sent once to one or more segments of relations, right away or at a set moment; an address in several segments gets it once. The usual way: create it, set the HTML (it must contain {{mailing.unsubscribe_url}} unless the mail type is the system type), look at the preview, send a test mail, then send or schedule it.
Marketing segments
BETA. Part of the E-mailmarketing module, which only works for organizations that were given access to the beta and switched the module on. Do not use these endpoints on your own initiative; only when the user explicitly asks for mailings or segments. A segment holds conditions on relations, never a list: who falls in it is worked out again on every request and when a mailing is sent.
Marketing unsubscribes
BETA. Part of the E-mailmarketing module, which only works for organizations that were given access to the beta and switched the module on. Do not use these endpoints on your own initiative; only when the user explicitly asks for it. An address unsubscribes from mail types one by one, or from every type at once (also types added later); it then gets no mailings of those types from this organization any more. Mail of the system type, and mail about invoices, tickets and websites, is not affected.
Marketing mail types
BETA. Part of the E-mailmarketing module, which only works for organizations that were given access to the beta and switched the module on. Do not use these endpoints on your own initiative; only when the user explicitly asks for it. A mail type says what a marketing mail is about; recipients unsubscribe per type. The one system type (is_system) is for mail about running the business: nobody can unsubscribe from it and it cannot be deleted.
Mail deliveries
The mails the organization sent in the last month (ticket replies, invoices, proposals, invites and the like), one per address, and whether they arrived. Marketing mail keeps its results with its mailing.