Clients
Definitions of the types and format of the data used in the endpoints can be found at the bottom of the page.
Endpoints
Get Clients
GET https://cubicl.io/api/v1/crm/customers
Gets clients matching the search criteria.
Query Parameters
name
string
Text to be searched in client name.
A match will occur only if a word in the client name starts with the given search text.
Search is case insensitive.
string
Text to be searched in client or contact mail addresses.
Search is case insensitive.
includeAllFields
string
true to get all client fields.
false to get only name.
Default is false.
skip
number
Default is 0.
limit
number
Default is 10.
Client[]Get Client By Id
GET https://cubicl.io/api/v1/crm/customers/:id
Path Parameters
id*
string
Client ID
Create Client
POST https://cubicl.io/api/v1/crm/customers
Check the Client type definition below for field descriptions.
Request Body
name*
string
fullname
string
string
phone
string
contacts
Contact[]
customFields
object
portalCustomerManagerIds
string[]
Update Client
PUT https://cubicl.io/api/v1/crm/customers/:id
Check the Client type definition below for field descriptions.
Request Body
name*
string
fullname
string
string
phone
string
contacts
Contact[]
customFields
object
portalCustomerManagerIds
string[]
Delete Client
DELETE https://cubicl.io/api/v1/crm/customers/:id
Get Client Tasks
GET https://cubicl.io/api/v1/crm/customers/tasks
Returns tasks linked to clients. If customerId is omitted, tasks belonging to the paginated client set are returned.
Query Parameters
customerId
string
Client ID
type
string
all: all records. tasks: not support-request or email tasks. support-requests: support requests. emails: email tasks.
skip
number
Default: 0
limit
number
Between 1 and 200. Default: 200
orderBy
string
_id, name, createdAt, or updatedAt. Default: createdAt
orderDirection
string
asc or desc. Default: desc
fields
string
Comma-separated fields to include
Get CRM Settings
GET https://cubicl.io/api/v1/crm/settings
Returns the organization's CRM settings (for example deal stages and client custom fields).
Query Parameters
fields
string
Comma-separated fields to include. If omitted, all fields are returned.
Data
Clients
Contacts
Last updated