API

Customers

Objects and fields, records, list views, search, pipelines, activities, imports and exports.

See Customers. Records are read and changed as the caller: what sharing and their role allow. Keys act as their maker, narrowed by the key's scopes.

Every route below, with its parameters, request and response, errors and samples, is in the API reference.

RouteWhat it does
GET /v1/orgs/:orgId/crm/objectsEvery object with its fields, validation rules and indexes.
POST /v1/orgs/:orgId/crm/objectsA custom object (Customers admins): a name field, the system fields and the built-in indexes.
GET /v1/orgs/:orgId/crm/objects/:objectOne object with its fields, validation rules and indexes.
PATCH /v1/orgs/:orgId/crm/objects/:objectLabels, sharing default, default columns and search subtitle (Customers admins), over version.
DELETE /v1/orgs/:orgId/crm/objects/:objectDeletes a custom object without records.
POST /v1/orgs/:orgId/crm/objects/:object/fieldsAdds a custom field (Customers admins): text, number, currency, date, picklist, multi-picklist, checkbox, lookup, email, phone or URL; required makes it required.
PATCH /v1/orgs/:orgId/crm/objects/:object/fields/:fieldChanges a field's label, help, required, picklist values or lookup, over the object's version.
DELETE /v1/orgs/:orgId/crm/objects/:object/fields/:fieldDeletes a custom field, with its rules and indexes (their entries go in the background).
PUT /v1/orgs/:orgId/crm/objects/:object/rulesReplaces the object's validation rules.
POST /v1/orgs/:orgId/crm/objects/:object/indexesAdds an index (built in the background): up to two equality fields and a sort field.
DELETE /v1/orgs/:orgId/crm/objects/:object/indexes/:indexIdDrops a custom index (its entries go in the background); built-in ones stay.
GET /v1/orgs/:orgId/crm/objects/:object/viewsBuilt-in, shared and the caller's own list views.
POST /v1/orgs/:orgId/crm/objects/:object/viewsSaves a view (shared ones: Customers admins); an index it needs is added and built.
PATCH /v1/orgs/:orgId/crm/objects/:object/views/:viewIdChanges a saved view (the caller's own; shared ones: Customers admins).
DELETE /v1/orgs/:orgId/crm/objects/:object/views/:viewIdDeletes a saved view (the caller's own; shared ones: Customers admins).
GET /v1/orgs/:orgId/crm/objects/:object/recordsA page of records by a view, or filters (JSON) and sort; cursor continues.
POST /v1/orgs/:orgId/crm/objects/:object/records/queryThe same list with the filters in the body.
POST /v1/orgs/:orgId/crm/objects/:object/recordsCreates a record owned by the caller (or ownerId); field errors come back as 422 with errors.
POST /v1/orgs/:orgId/crm/objects/:object/records/bulkUpdates, transfers or deletes many records; each reports its own result.
GET /v1/orgs/:orgId/crm/objects/:object/exportA view (or filters) as CSV, up to 10,000 rows; X-More: 1 when there are more (use an export job).
POST /v1/orgs/:orgId/crm/objects/:object/exportsExports a view to a file in the background (any size); download it from the job when done.
GET /v1/orgs/:orgId/crm/records/:idThe record, what the caller may do with it, and names of the people and records it refers to.
PATCH /v1/orgs/:orgId/crm/records/:idChanges fields and the owner; version refuses a stale edit (409).
DELETE /v1/orgs/:orgId/crm/records/:idDeletes the record; its history and the audit log keep who deleted it.
GET /v1/orgs/:orgId/crm/records/:id/historyField changes, newest first.
GET /v1/orgs/:orgId/crm/records/:id/relatedRecords of other objects that look up to this one (a few of each).
GET /v1/orgs/:orgId/crm/records/:id/activitiesThe timeline: activities related to the record, newest first.
POST /v1/orgs/:orgId/crm/records/:id/activitiesLogs a task, call, meeting, note or email on the record (and any others in relatedIds).
POST /v1/orgs/:orgId/crm/records/:id/convertConverts a lead into an account (or uses one), a contact (or uses one) and an opportunity.
GET /v1/orgs/:orgId/crm/pipelinesOpportunity pipelines with their stages.
POST /v1/orgs/:orgId/crm/pipelinesA pipeline (Customers admins): stages with probability and whether each is open, won or lost.
PUT /v1/orgs/:orgId/crm/pipelines/:pipelineIdReplaces a pipeline's name and stages (Customers admins), over version; a stage with deals can't be removed.
DELETE /v1/orgs/:orgId/crm/pipelines/:pipelineIdDeletes a pipeline without opportunities (Customers admins); the default stays.
GET /v1/orgs/:orgId/crm/pipelines/:pipelineId/boardThe board: each stage's first opportunities by close date with its count and amount; stage and cursor page one column.
GET /v1/orgs/:orgId/crm/jobsRecent imports and exports (the caller's; every one for Customers admins).
GET /v1/orgs/:orgId/crm/jobs/:jobIdAn import or export: state, progress counts and the first errors.
POST /v1/orgs/:orgId/crm/jobs/:jobId/cancelCancels an export that hasn't finished (the caller's, or any for Customers admins); a finished one comes back as it is.
GET /v1/orgs/:orgId/crm/jobs/:jobId/downloadA finished export's download link (ten minutes).
POST /v1/orgs/:orgId/crm/importsStarts an import: up to 5 MB in content, or a presigned uploadUrl for the file (PUT it, then call uploaded).
POST /v1/orgs/:orgId/crm/imports/:jobId/uploadedMarks a presigned upload complete so the import can be previewed.
POST /v1/orgs/:orgId/crm/imports/:jobId/previewThe header, ten sample rows and a suggested column mapping.
POST /v1/orgs/:orgId/crm/imports/:jobId/dry-runChecks the first 1,000 rows with the mapping, writing nothing.
POST /v1/orgs/:orgId/crm/imports/:jobId/startQueues the import; follow it on the job.
GET /v1/orgs/:orgId/crm/metaThe caller's view of Customers: objects, pipelines, settings, the people in the org and what the caller may do.
GET /v1/orgs/:orgId/crm/summaryHome: the pipeline summary (counters) and the caller's open tasks.
GET /v1/orgs/:orgId/crm/searchRecords matching words, an email, a phone number or an id, that the caller can see.
GET /v1/orgs/:orgId/crm/settingsCustomers settings: currency, Mail and Calendar logging, role permissions, with version.
PATCH /v1/orgs/:orgId/crm/settingsCurrency, Mail and Calendar logging, and what each role may see and change.