Prompts
Create a new prompt
Creates a new Prompt document owned by the calling user and organization. The body becomes the live prompt content; subsequent edits create versions, not new prompts.
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
curl -X POST "https://example.com/api/prompts/create" \ -H "Content-Type: application/json" \ -d '{ "name": "Leasing follow-up assistant", "prompt": "<prompt><role>Leasing assistant</role><goal>Re-engage leads 24h after their last reply.</goal></prompt>", "description": "Follow up with leads 24h after their last response.", "temperature": 0.7, "responseTime": 45, "isHidden": false }'{ "message": "Prompt created successfully", "prompt": { "_id": "64d2f9c5e8a1d4e001a0b1c2", "name": "Maple Court - Tour confirm", "description": "Confirms a tour booking and proposes alternates.", "prompt": "<prompt><role>Leasing assistant</role><goal>Confirm tour.</goal></prompt>", "temperature": 0.3, "responseTime": 30, "isHidden": false, "voiceAI": { "enabled": false }, "createdBy": "64a1b2c3d4e5f60012345679", "organizationId": "64a1b2c3d4e5f60012345678", "createdAt": "2026-05-20T15:04:01.135Z", "updatedAt": "2026-05-20T15:04:01.135Z" }}