Skip to content

API reference

API: Pipelines

Markdown version

MethodPathWhat it doesScope
GET/v1/pipelinesPipelines with their stages (include_archived=true for archived ones too)deals:read
POST/v1/pipelinesCreate a pipeline (owner). Stage types are fixed once set.settings:write
DELETE/v1/pipelines/:idArchive a pipeline (owner). It must not be the default or hold open deals.settings:write
PATCH/v1/pipelines/:idRename, make default, or edit stages (owner). Stage types can't change; add a new stage instead.settings:write
POST/v1/pipelines/:id/restoreRestore an archived pipeline (owner)settings:write

Examples

GET /v1/pipelines

Pipelines with their stages (include_archived=true for archived ones too)

curl -s "https://api.closefinch.com/v1/pipelines" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/pipelines`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

POST /v1/pipelines

Create a pipeline (owner). Stage types are fixed once set.

curl -s -X POST "https://api.closefinch.com/v1/pipelines" \
  -H "Authorization: Bearer $RA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.closefinch.com/v1/pipelines`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

DELETE /v1/pipelines/$ID

Archive a pipeline (owner). It must not be the default or hold open deals.

curl -s -X DELETE "https://api.closefinch.com/v1/pipelines/$ID" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/pipelines/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/pipelines/$ID

Rename, make default, or edit stages (owner). Stage types can't change; add a new stage instead.

curl -s -X PATCH "https://api.closefinch.com/v1/pipelines/$ID" \
  -H "Authorization: Bearer $RA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.closefinch.com/v1/pipelines/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/pipelines/$ID/restore

Restore an archived pipeline (owner)

curl -s -X POST "https://api.closefinch.com/v1/pipelines/$ID/restore" \
  -H "Authorization: Bearer $RA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.closefinch.com/v1/pipelines/${id}/restore`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

Request and response schemas: https://www.closefinch.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.

Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.