Prompts

Check prompt usage by contacts and conversations

GET
/api/prompts/{promptId}/usage

Reports how many Contacts and Conversations currently reference the prompt and returns up to a few alternative prompts the caller could reassign them to. Used by the delete/reassign confirmation flow.

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/usage"
{  "promptId": "5f7b1c2e8a1d4e0012c3b4a5",  "promptName": "Leasing follow-up assistant",  "isInUse": true,  "contactsCount": 24,  "conversationsCount": 31,  "totalUsageCount": 55,  "hasAlternatives": true,  "alternatives": [    {      "id": "5f7b1c2e8a1d4e0012c3b4a6",      "name": "Standard follow-up assistant",      "description": "Generic follow-up prompt."    }  ]}