Prompts

Get a single prompt version

GET
/api/prompts/{promptId}/versions/{versionId}

Returns the full version document (including the prompt body and metadata) for a specific version of a prompt the caller can access.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

promptId*string
versionId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/prompts/string/versions/string"
{  "_id": "65f9b1c2e8a1d4e001a0b1c4",  "promptId": "5f7b1c2e8a1d4e0012c3b4a5",  "prompt": "<prompt><role>Leasing assistant</role><goal>Re-engage leads 24h after their last reply.</goal></prompt>",  "version": 5,  "label": "Pre-launch checkpoint",  "displayVersion": "v1.4",  "title": "Pre-launch",  "description": "Snapshot before rolling out to production.",  "source": "manual_save",  "createdBy": "64a1b2c3d4e5f60012345679",  "createdAt": "2026-04-25T10:14:00.000Z",  "updatedAt": "2026-04-25T10:14:00.000Z"}