VocalDocscontracts 1.65.0

Read a library template

GET /v1/prompt-library/{slug}

PropertyValue
Operationget_prompt_library_template
GroupPrompt templates
Scopeprompts:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A configuration read of platform rows; they carry no Call content.
Released in1.55.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the prompts:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/prompt-library/healthcare-appointment-confirmation" \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
slugpathPromptLibrarySlugyesThe name of a library template (1.55.0): kebab-case, 1 to 64 characters, stable across its versions.

Responses

StatusContent typeShapeError codes
200application/jsonPromptLibraryTemplate
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is PromptLibraryTemplate.

FieldTypeRequiredDescription
allow_termsarray of PromptAllowTermyesStaff and place names that phi_literal does not report (1.55.0), at most 100 of at most 100 characters.
changelogarray of PromptLibraryChangeyesNewest first.
declarationsPromptDeclarationsyes
descriptionstringyes
layerPromptLayeryes
namestringyesA display name.
object"prompt_library_template"yes
packsarray of PromptLibraryPackyesThe body in each language pack, en first.
purposePromptPurposeyes
recommended_policiesarray of PolicyDraftyesThe Policy drafts that enforce what the template only asks, in JDM form, to create with POST /v1/policies; a fork does not create them.
segmentPromptSegmentyes
slugPromptLibrarySlugyes
updated_atTimestampyes
versionintegeryesThe version a fork now copies.