DepartmentTransfer

Deep scan dependencies for a single-user department transfer

POST
/api/departments/transfer/scan

Compute the dependency manifest for moving one user to a new department: prompts, automations, conversations, contacts and approval policies that need remapping. Returns a scanVersion token that must be echoed on /execute to detect stale plans.

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

curl -X POST "https://example.com/api/departments/transfer/scan" \  -H "Content-Type: application/json" \  -d '{    "userId": "65b1f0a2c3d4e5f6a7b8c9d0",    "targetDepartmentId": "65c1a0b0c0d0e0f0a0b0c0d1"  }'
{  "scanVersion": "v2026-05-18T12:00:00Z-abc123",  "summary": {    "prompts": 4,    "automations": 2,    "conversations": 17,    "approvalPolicies": 1  },  "conflicts": []}