Org Snapshots

Create an organization snapshot

POST
/api/org-snapshots

Captures an organization-level snapshot (pipelines, automations, prompts, templates) of a source user inside a source organization. Superadmin only.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/org-snapshots" \  -H "Content-Type: application/json" \  -d '{    "name": "Production baseline 2026-05",    "description": "Reference Acme Corp configuration for new-tenant onboarding.",    "sourceOrgId": "64ee9a8b1e7f2a0011223344",    "sourceUserId": "64ee9a8b1e7f2a0011223399"  }'
{  "message": "Snapshot created",  "snapshot": {    "_id": "665f1a0c0e0a4b001a2c9f90",    "name": "Production baseline 2026-05",    "sourceOrgName": "Acme Corp",    "counts": {      "pipelines": 3,      "automations": 12,      "prompts": 20,      "templates": 30    }  }}