Org Snapshots
Apply an organization snapshot
Creates a new organization (with credentials, dynamic properties, and pipelines) by cloning the snapshot inside a single transaction. Optionally seeds a first admin user with cloned automations, prompts, and templates. Superadmin only.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
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
application/json
curl -X POST "https://example.com/api/org-snapshots/string/apply" \ -H "Content-Type: application/json" \ -d '{ "orgName": "NewOrg Holdings", "orgPhone": "+14155550100", "orgAddress": "100 King St W, Toronto, ON", "firstUser": { "email": "admin@neworg.example", "password": "TempPass!2026", "fullName": "Morgan Admin", "designation": "Operations Lead" } }'{ "message": "Snapshot applied", "result": { "organizationId": "64ee9a8b1e7f2a0011223400", "organizationName": "NewOrg Holdings", "userId": "64ee9a8b1e7f2a0011223499", "userEmail": "admin@neworg.example", "cloned": { "pipelines": 3, "automations": 12, "prompts": 20, "templates": 30 } }}