SDK reference
Customers
GET/
Every object with its fields, validation rules and indexes.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A custom object (Customers admins): a name field, the system fields and the built-in indexes.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"label": "Example"
}'GET/
One object with its fields, validation rules and indexes.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Labels, sharing default, default columns and search subtitle (Customers admins), over version.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'DELETE/
Deletes a custom object without records.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds a custom field (Customers admins): text, number, currency, date, picklist, multi-picklist, checkbox, lookup, email, phone or URL; required makes it required.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/fields' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"label": "Example",
"type": "text"
}'PATCH/
Changes a field's label, help, required, picklist values or lookup, over the object's version.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/fields/{field}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1,
"convertTo": {}
}'DELETE/
Deletes a custom field, with its rules and indexes (their entries go in the background).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/fields/{field}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Replaces the object's validation rules.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/rules' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1,
"rules": [
{
"id": "<id>",
"name": "Example",
"active": true,
"when": [
{
"field": "example",
"op": "eq"
}
],
"require": [
{
"field": "example",
"op": "eq"
}
],
"message": "example"
}
]
}'POST/
Adds an index (built in the background): up to two equality fields and a sort field.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/indexes' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"eq": [
"example"
],
"sort": "example"
}'DELETE/
Drops a custom index (its entries go in the background); built-in ones stay.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/indexes/{indexId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Built-in, shared and the caller's own list views.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/views' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Saves a view (shared ones: Customers admins); an index it needs is added and built.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/views' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"sort": {
"field": "example",
"dir": "asc"
}
}'PATCH/
Changes a saved view (the caller's own; shared ones: Customers admins).
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/views/{viewId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"sort": {
"field": "example",
"dir": "asc"
}
}'DELETE/
Deletes a saved view (the caller's own; shared ones: Customers admins).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/views/{viewId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A page of records by a view, or filters (JSON) and sort; cursor continues.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/records' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
The same list with the filters in the body.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/records/query' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"view": "example",
"filters": [
{
"field": "example",
"op": "eq"
}
],
"sort": {
"field": "example",
"dir": "asc"
}
}'POST/
Creates a record owned by the caller (or ownerId); field errors come back as 422 with errors.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/records' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fields": {}
}'POST/
Updates, transfers or deletes many records; each reports its own result.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/records/bulk' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"ids": [
"example"
],
"operation": "update"
}'GET/
A view (or filters) as CSV, up to 10,000 rows; X-More: 1 when there are more (use an export job).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/export' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Exports a view to a file in the background (any size); download it from the job when done.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/objects/{object}/exports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"view": "example",
"filters": [
{
"field": "example",
"op": "eq"
}
],
"sort": {
"field": "example",
"dir": "asc"
}
}'GET/
The record, what the caller may do with it, and names of the people and records it refers to.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/records/{id}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes fields and the owner; version refuses a stale edit (409).
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/records/{id}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fields": {},
"ownerId": "<ownerId>",
"version": 1
}'DELETE/
Deletes the record; its history and the audit log keep who deleted it.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/records/{id}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Field changes, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/records/{id}/history' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The timeline: activities related to the record, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/records/{id}/activities' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Logs a task, call, meeting, note or email on the record (and any others in relatedIds).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/records/{id}/activities' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"type": "task",
"subject": "Example"
}'POST/
Converts a lead into an account (or uses one), a contact (or uses one) and an opportunity.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/records/{id}/convert' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"accountId": "<accountId>",
"contactId": "<contactId>",
"createOpportunity": true
}'GET/
Opportunity pipelines with their stages.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/pipelines' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A pipeline (Customers admins): stages with probability and whether each is open, won or lost.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/pipelines' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"stages": [
{
"name": "Example",
"probability": 1,
"category": "open"
}
]
}'PUT/
Replaces a pipeline's name and stages (Customers admins), over version; a stage with deals can't be removed.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/pipelines/{pipelineId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"stages": [
{
"name": "Example",
"probability": 1,
"category": "open"
}
]
}'DELETE/
Deletes a pipeline without opportunities (Customers admins); the default stays.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/pipelines/{pipelineId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The board: each stage's first opportunities by close date with its count and amount; stage and cursor page one column.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/pipelines/{pipelineId}/board' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Recent imports and exports (the caller's; every one for Customers admins).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/jobs' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
An import or export: state, progress counts and the first errors.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/jobs/{jobId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Cancels an export that hasn't finished (the caller's, or any for Customers admins); a finished one comes back as it is.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/jobs/{jobId}/cancel' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A finished export's download link (ten minutes).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/jobs/{jobId}/download' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts an import: up to 5 MB in content, or a presigned uploadUrl for the file (PUT it, then call uploaded).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"object": "example",
"fileName": "Example"
}'POST/
Marks a presigned upload complete so the import can be previewed.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/imports/{jobId}/uploaded' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
The header, ten sample rows and a suggested column mapping.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/imports/{jobId}/preview' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Checks the first 1,000 rows with the mapping, writing nothing.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/imports/{jobId}/dry-run' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"mapping": [
"example"
],
"options": {
"mode": "create",
"ownerId": "<ownerId>",
"dateOrder": "dmy"
}
}'POST/
Queues the import; follow it on the job.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/imports/{jobId}/start' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"mapping": [
"example"
],
"options": {
"mode": "create",
"ownerId": "<ownerId>",
"dateOrder": "dmy"
}
}'GET/
The caller's view of Customers: objects, pipelines, settings, the people in the org and what the caller may do.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/meta' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Home: the pipeline summary (counters) and the caller's open tasks.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/summary' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Records matching words, an email, a phone number or an id, that the caller can see.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/search' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Customers settings: currency, Mail and Calendar logging, role permissions, with version.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/settings' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Currency, Mail and Calendar logging, and what each role may see and change.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/settings' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'