Process
Get processes (prompts) for a selected user
Admin variant - return every Prompt assigned to the user identified by selectedUser.userId. Used when a manager opens another rep's playground; the caller must have access to the target user.
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
curl -X POST "https://example.com/api/processes" \ -H "Content-Type: application/json" \ -d '{ "selectedUser": { "userId": "65b1f0a2c3d4e5f6a7b8c9d0" } }'{ "message": "Processes fetched successfully", "processes": [ { "_id": "65b2a1c3d4e5f6a7b8c9d0e1", "name": "Lead qualification", "prompt": "You are a friendly intake specialist...", "responseTime": 5, "isHidden": false, "temperature": 0.4, "createdBy": "65b1f0a2c3d4e5f6a7b8c9d0", "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0", "createdAt": "2026-04-01T10:00:00.000Z", "updatedAt": "2026-05-15T18:24:11.000Z" } ]}