Skip to content

API reference

API: Sandboxes

Markdown version

MethodPathWhat it doesScope
GET/v1/config-sandboxesThis organization's sandboxes (owner)security:write
POST/v1/config-sandboxesCopy this organization's configuration (objects, fields, pipelines, statuses, agents as drafts; no data) into a new sandbox organization where nothing is ever sent (owner) (web app only)security:write
GET/v1/config-sandboxes/current/diffIn a sandbox: what differs from its organization's configuration (added or changed) (owner of both)security:write
POST/v1/config-sandboxes/current/promoteIn a sandbox: apply chosen differences to its organization (nothing there is deleted; agents arrive as drafts) (owner of both) (web app only)security:write

Examples

GET /v1/config-sandboxes

This organization's sandboxes (owner)

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

GET /v1/config-sandboxes/current/diff

In a sandbox: what differs from its organization's configuration (added or changed) (owner of both)

curl -s "https://api.closefinch.com/v1/config-sandboxes/current/diff" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/config-sandboxes/current/diff`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
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.