Skip to content

API Tokens ​

Other systems reach Cubrel through the REST API with a token. Only admins create and revoke tokens. The REST API is available on every plan: Starter, Pro and Enterprise.

Creating a token ​

Go to Workspace > Integrations > API Tokens > New Token:

  1. Give the token a name for your own reference, such as "Shop sync" or "Nightly export script".
  2. Pick the user the token acts as. Every request made with this token is attributed to that user (for example, records it creates will show that user as the owner).
  3. Either grant Full Access (every module, every action), or leave it unchecked and pick individual Read / Write / Delete / Link permissions per module. Users, roles and a few system modules aren't offered. Emails has no Write, since Cubrel writes every Email itself; even a Full Access token can't create or change one.
  4. Save. The plaintext token is shown exactly once, immediately after creation. Copy it somewhere safe: Cubrel only ever stores a hash of it, so if you lose it, you'll need to revoke it and create a new one.

A new token with only Write on Contacts

The i next to each permission explains what it covers. Line items and meeting attendees come with Read and Write on their quote, order, invoice or meeting; Link is only for linking records to records in other modules.

Give each system its own token with only what it needs. A website form that creates leads needs only Write on Leads, so a leaked token can't read anything.

A token isn't limited by its user's role. When it can do more through the API than that user can in the app, the list marks it Exceeds role, see Roles and Permissions.

Downloading the OpenAPI file ​

Download OpenAPI next to a token, and on the page that shows a new token, gives you a file that describes exactly what that token can reach: its modules and actions, every field with its type, custom fields included, and the values each select field allows. Hand it to whoever builds the integration; Postman, Insomnia and Bruno import it directly.

Revoking a token ​

Click Revoke next to the token in the API Tokens list. A revoked token stops working immediately.

In short ​

QuestionAnswer
Where do I create a token?Workspace > Integrations > API Tokens > New Token
Can I see a token again later?No, it's shown once; revoke it and create a new one
Who does a token act as?The user you pick; records it creates are owned by that user
How do developers see my fields?Download OpenAPI next to the token
Where is the API described?In the Developers docs