Prompts

Get a specific prompt by ID

GET
/api/prompts/{promptId}

Returns a single prompt the caller owns or has acquired as a marketplace reference. The response includes access-metadata flags (_isOwned, _isReference, _isEditableReference) so the UI can render the right edit affordances.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

promptId*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/prompts/string"
{  "_id": "5f7b1c2e8a1d4e0012c3b4a5",  "name": "Leasing follow-up assistant",  "prompt": "<prompt><role>Leasing assistant</role><goal>Re-engage leads.</goal></prompt>",  "description": "Follow up with leads 24h after their last response.",  "temperature": 0.7,  "responseTime": 45,  "isHidden": false,  "_isReference": false,  "_isEditableReference": false,  "_isOwned": true}