Skip to content

API-Referenz ​

Jeder Endpunkt einmal, erzeugt aus der OpenAPI-Datei von Cubrel: zuerst für jedes Modul über {module}, dann für Kontakte als Beispiel mit ihren echten Feldern. Die Beschreibungen der Endpunkte sind auf Englisch.

Dein Workspace hat seine eigenen Module und Felder. Die genaue Liste steht in der OpenAPI-Datei deines Tokens unter Einstellungen > Integrationen > API-Token, mit OpenAPI herunterladen neben dem Token; Postman, Insomnia und Bruno importieren sie. Die allgemeine Datei dieser Seite liegt unter /openapi.json.

Any module

GET/{module}

List records

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.
per_pagequeryinteger
pagequeryinteger
searchquerystringMatches the module's searchable fields.
sortquerystringA sortable field.
directionquerystring
filterquerystringThe slug or id of a saved list filter.

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 200 One page of records.

POST/{module}

Create a record

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.

Anfragerumpf: RecordInput

The module's writable fields, custom fields included, as one flat object. Download your workspace's OpenAPI file from API Tokens for the exact fields. `line_items` on quotes and orders, `attendees` on meetings.

NameTypPflichtWerteBeschreibung
line_itemsLineItemInput[]
attendeesAttendeeInput[]

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 201 The record.

PUT/{module}

Create or update by a matching field

Updates the one record whose `match` field has the value sent in the body, or creates a record when none has it. More than one match is a 422.

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.
match *querystringA writable text or email field, such as `sku` or `email`.

Anfragerumpf: RecordInput

The module's writable fields, custom fields included, as one flat object. Download your workspace's OpenAPI file from API Tokens for the exact fields. `line_items` on quotes and orders, `attendees` on meetings.

NameTypPflichtWerteBeschreibung
line_itemsLineItemInput[]
attendeesAttendeeInput[]

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 200 The record.
  • 201 The record.

GET/{module}/{id}

Get a record

Includes `related` records, and `line_items` on quotes and orders, `attendees` on meetings.

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.
id *pathstring (uuid)

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 200 The record.
  • 404 No such record, or a module the API can't reach.

PATCH/{module}/{id}

Update a record

Only the fields you send change. `line_items` or `attendees`, when sent, is the complete new list. PUT does the same.

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.
id *pathstring (uuid)

Anfragerumpf: RecordInput

The module's writable fields, custom fields included, as one flat object. Download your workspace's OpenAPI file from API Tokens for the exact fields. `line_items` on quotes and orders, `attendees` on meetings.

NameTypPflichtWerteBeschreibung
line_itemsLineItemInput[]
attendeesAttendeeInput[]

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 200 The record.

DELETE/{module}/{id}

Delete a record

Moves the record to the Bin.

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.
id *pathstring (uuid)

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 204 Deleted.
  • 404 No such record, or a module the API can't reach.

GET/{module}/relationships

List the module's relationships

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 200 The relationships records of this module can be linked through.

POST/{module}/{id}/relationships/{relationship}

Link records

A link that exists, or that the relationship's type doesn't allow, is a 422.

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.
id *pathstring (uuid)
relationship *pathstring

Anfragerumpf: object

NameTypPflichtWerteBeschreibung
related_idsstring (uuid)[]ja

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 201 The linked records.

DELETE/{module}/{id}/relationships/{relationship}/{relatedId}

Unlink a record

Parameter

NameOrtTypBeschreibung
module *pathstringThe module's slug, as in its URL in the app, such as `contacts`.
id *pathstring (uuid)
relationship *pathstring
relatedId *pathstring (uuid)

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 204 Unlinked.
  • 404 No such record, or a module the API can't reach.

Example: Contacts

GET/contacts

List records

Parameter

NameOrtTypBeschreibung
per_pagequeryinteger
pagequeryinteger
searchquerystringMatches the module's searchable fields.
sortquerystringA sortable field.
directionquerystring
filterquerystringThe slug or id of a saved list filter.

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 200 One page of records.

POST/contacts

Create a record

Anfragerumpf: ContactsInput

NameTypPflichtWerteBeschreibung
namestringjaName
descriptionstringDescription
first_namestringFirst Name
last_namestringLast Name
emailstring (email)Email
phonestringPhone
positionstringPosition
notesstringNotes
avatarstringProfile Picture
addressobjectAddress
mobilestringMobile
salutationstringmr, ms, mx, dr, profSalutation
departmentstringDepartment
marketing_consentbooleanMarketing Consent
consent_datestring (date)Consent Date

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 201 The record.

PUT/contacts

Create or update by a matching field

Updates the one record whose `match` field has the value sent in the body, or creates a record when none has it. More than one match is a 422.

Parameter

NameOrtTypBeschreibung
match *querystringA writable text or email field, such as `sku` or `email`.

Anfragerumpf: ContactsInput

NameTypPflichtWerteBeschreibung
namestringjaName
descriptionstringDescription
first_namestringFirst Name
last_namestringLast Name
emailstring (email)Email
phonestringPhone
positionstringPosition
notesstringNotes
avatarstringProfile Picture
addressobjectAddress
mobilestringMobile
salutationstringmr, ms, mx, dr, profSalutation
departmentstringDepartment
marketing_consentbooleanMarketing Consent
consent_datestring (date)Consent Date

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 200 The record.
  • 201 The record.

GET/contacts/{id}

Get a record

Includes `related` records, and `line_items` on quotes and orders, `attendees` on meetings.

Parameter

NameOrtTypBeschreibung
id *pathstring (uuid)

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 200 The record.
  • 404 No such record, or a module the API can't reach.

PATCH/contacts/{id}

Update a record

Only the fields you send change. `line_items` or `attendees`, when sent, is the complete new list. PUT does the same.

Parameter

NameOrtTypBeschreibung
id *pathstring (uuid)

Anfragerumpf: ContactsInput

NameTypPflichtWerteBeschreibung
namestringjaName
descriptionstringDescription
first_namestringFirst Name
last_namestringLast Name
emailstring (email)Email
phonestringPhone
positionstringPosition
notesstringNotes
avatarstringProfile Picture
addressobjectAddress
mobilestringMobile
salutationstringmr, ms, mx, dr, profSalutation
departmentstringDepartment
marketing_consentbooleanMarketing Consent
consent_datestring (date)Consent Date

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 200 The record.

DELETE/contacts/{id}

Delete a record

Moves the record to the Bin.

Parameter

NameOrtTypBeschreibung
id *pathstring (uuid)

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 204 Deleted.
  • 404 No such record, or a module the API can't reach.

GET/contacts/relationships

List the module's relationships

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 200 The relationships records of this module can be linked through.

POST/contacts/{id}/relationships/{relationship}

Link records

A link that exists, or that the relationship's type doesn't allow, is a 422.

Parameter

NameOrtTypBeschreibung
id *pathstring (uuid)
relationship *pathstring

Anfragerumpf: object

NameTypPflichtWerteBeschreibung
related_idsstring (uuid)[]ja

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 3 No such record, or a module the API can't reach.
  • 4 A value was refused. `errors` names each field, such as `line_items.0.sku`.
  • 201 The linked records.

DELETE/contacts/{id}/relationships/{relationship}/{relatedId}

Unlink a record

Parameter

NameOrtTypBeschreibung
id *pathstring (uuid)
relationship *pathstring
relatedId *pathstring (uuid)

Antworten

  • 0 The token is missing, invalid or revoked.
  • 1 The token lacks the ability for this module and action.
  • 2 Rate limit reached. Retry after the time in the Retry-After header.
  • 204 Unlinked.
  • 404 No such record, or a module the API can't reach.

Tickets

POST/tickets/{module}

Open a ticket

Opens a ticket with its first message, sent by the requester.

Parameter

NameOrtTypBeschreibung
module *pathstringA ticket module's slug, such as `cases`.

Anfragerumpf: object

NameTypPflichtWerteBeschreibung
requester_emailstring (email)ja
requester_namestring
subjectstringja
bodystringja

Antworten

  • 201 The record.
  • 422 A value was refused. `errors` names each field, such as `line_items.0.sku`.

GET/tickets/{module}/{id}/messages

List a ticket's messages

The conversation without internal notes.

Parameter

NameOrtTypBeschreibung
module *pathstringA ticket module's slug, such as `cases`.
id *pathstring (uuid)

Antworten

  • 200 The ticket's messages, oldest first.

POST/tickets/{module}/{id}/messages

Add a message to a ticket

Parameter

NameOrtTypBeschreibung
module *pathstringA ticket module's slug, such as `cases`.
id *pathstring (uuid)

Anfragerumpf: object

NameTypPflichtWerteBeschreibung
bodystringja
authorstringcustomer, agent
namestring
emailstring (email)

Antworten

  • 201 The new message.
  • 422 A value was refused. `errors` names each field, such as `line_items.0.sku`.

Webhooks

  • {module}.created
  • {module}.updated
  • {module}.deleted
  • {module}.message_created
NameTypBeschreibung
idstring (uuid)Unique per delivery; skip an id you have seen.
eventstring
occurred_atstring (date-time)
dataobjectThe record's fields as GET returns them, with line_items on quotes and orders; only the id on deleted.
changesobjectOn updated: each changed field with from and to.