Skip to content

Getting Started ​

Cubrel has a REST API, so another system can read and write your records, and webhooks, so Cubrel tells that system the moment a record changes. A shop, a website form, an accounting tool, Zapier, Make, n8n or your own script can all connect this way.

The REST API and webhooks are available on every plan: Starter, Pro and Enterprise.

1. Get a token ​

An admin creates a token under Workspace > Integrations > API Tokens > New Token and picks what it may do, per module. The token is shown once. See API Tokens in the Admin Guide.

2. Make your first request ​

Every endpoint lives under your workspace's address plus /api/v1. Send the token as a bearer token:

http
GET https://yourcompany.cubrel.com/api/v1/contacts?per_page=5
Authorization: Bearer <your-token>
Accept: application/json

The answer is a page of contacts:

json
{
  "data": [{ "id": "…", "name": "Anna Berger", "email": "anna@example.com", "…": "…" }],
  "meta": { "total": 128, "per_page": 5, "current_page": 1, "last_page": 26 },
  "links": { "next": "https://yourcompany.cubrel.com/api/v1/contacts?page=2", "prev": null }
}

3. Create a record ​

http
POST https://yourcompany.cubrel.com/api/v1/contacts
Authorization: Bearer <your-token>
Content-Type: application/json

{ "first_name": "Anna", "last_name": "Berger", "email": "anna@example.com" }

A 201 returns the new contact. A missing required field or a key that isn't a field of the module gets a 422 that names it, and nothing is saved.

Your workspace's fields ​

Every workspace has its own modules and fields. To see exactly which fields a module has, their types and the values a select field allows, download the OpenAPI file for your token: Workspace > Integrations > API Tokens, then Download OpenAPI next to the token. Postman, Insomnia and Bruno import it directly.

The API Reference on this site describes every endpoint once, with Contacts as the example.

Where to go next ​

You want toRead
Understand tokens and what they may doAuthentication & Permissions
Read, create, update or delete records, with line items and attendeesRecords
Link records to each otherRelationships
Open tickets and add messages from your appTickets
Hear about changes in Cubrel the moment they happenWebhooks
Handle errors and stay under the rate limitErrors & Limits
Look up an endpointAPI Reference