Create a template
Creates a prompt template in the clinic, owned by the calling user and stamped with their current clinic role (creatorRole). Pass the returned templateId to Generate a clinical note to use it.
Write the body as reusable instructions, not as an example patient record: anything written as fixed text can appear in every generated document. Creating a template does not change any existing record.
The caller must be a direct member of the clinic (organization admins without a clinic membership cannot create templates). A clinic can hold about 100 templates; beyond that creation fails. The API does not apply the clinic's Strict Mode creation block, but a member's template is then hidden from that member under Strict Mode. Not idempotent: repeating the call creates another template. Requires a personal API key.
Request
- Base URLhttps://vetnio.com/api/v2
- URLhttps://vetnio.com/api/v2/workspaces/{workspaceId}/templates
- AuthHTTP bearer
Path parameters
Identifier of the clinic (workspace), as returned by GET /workspaces. The key's user must be a member of the clinic, or an admin of the organization it belongs to.
Request body
Example request
{
"template": "<p><strong>Reason for visit</strong></p><p>(Summarize the reason for the visit in one sentence. If absent, write \"Not recorded\".)</p><p><strong>Examination</strong></p><p>(Include only findings explicitly recorded in this consultation. Preserve measurements and units. If none are recorded, write \"Not recorded\".)</p><p><strong>Plan</strong></p><p>(List only the actions and treatments actually discussed, one bullet per action.)</p>",
"name": "Follow-up - clinical team",
"type": "clinical_note"
}Response
The template was created; its ID is returned.
Example response
{
"templateId": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13"
}Changes
No recorded changes to this operation across all 1 revision of this API.