Add a record to a pipeline
Add a company or contact to a pipeline. recordId is the Gleap id of the record — a
company’s _id (see GET /companies) or a contact’s id, matching the pipeline’s
recordType. laneId picks the stage and defaults to the pipeline’s first stage; values
sets initial field values keyed by fieldId (see GET /pipelines//properties).
A record sits on a pipeline at most once: adding one that is already present returns the existing entry unchanged instead of creating a duplicate. Pipeline automations configured for “record added” run on a genuine add.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Path Parameters
Body
Gleap id of the record to add, matching the pipeline's recordType: a company's _id (see
GET /companies) or a contact's id. Not your own external companyId / userId.
Stage to add the entry to — a lane id from the pipeline's lanes. Defaults to the
pipeline's first stage.
Initial field values, keyed by the pipeline's field fieldIds (see
GET /pipelines/{pipelineId}/properties). Primitive values only.
Response
Ok
Generic types for Document:
- T - the type of _id
- TQueryHelpers - Object with any helpers that should be mixed into the Query type
- DocType - the type of the actual Document created
COMPANY, CONTACT