data-export
customer-content

Export an organization's template blueprints

Lists customer-owned templates for export, one page at a time, with metadata and a short-lived download link for each stored body. Pages are ordered by ascending template ID: pass nextCursor back as cursor until it is null. Download links expire after one hour (expiresAt); request the page again for fresh links. Vetnio's read-only default catalog templates are excluded; workspace-owned copies, including managed ones, are included. Read-only. Covers the organization-level template blueprints that can be shared to its clinics. Requires admin rights in the organization. Accepts a browser session or a personal API key; organization and workspace API keys (sk_org_…, sk_ws_…) get 403.

get/organizations/{organizationId}/data-export/templates

Request

  • Base URL
    https://vetnio.com/api/v2
  • URL
    https://vetnio.com/api/v2/organizations/{organizationId}/data-export/templates
  • Auth
    HTTP bearer

Path parameters

organizationIdstring required

Identifier of the organization to export (a UUID). The caller must be an admin of it.

Example:3f6c2a1e-8b4d-4c7a-9e2f-5d1b7a9c0e42

Query parameters

cursorstring

Pagination cursor: the nextCursor value from the previous page. Omit for the first page, and keep the same owner and template category while paging. Items with an ID greater than the cursor are returned.

Example:5b0d7a3e-2c41-4f0e-9a77-1f3c9e6b8d20
limitinteger

Maximum number of templates per page, 1-50.

Example:20

Response

Successful response

nextCursorstring nullable required

Pass this value as cursor to fetch the next page. null when this is the last page.

expiresInSecondsnumber required

Lifetime of every contentUrl on this page, in seconds.

expiresAtstring date-time required

When the contentUrl links on this page stop working (ISO-8601 UTC). Download before then. Expiry does not affect the stored content.

Example response

{
  "expiresInSeconds": 3600,
  "expiresAt": "2026-09-28T09:15:00.000Z",
  "items": [
    {
      "id": "2a9b8c7d-6e5f-4a3b-9c1d-0e2f4a6b8c0d",
      "organizationId": "3f6c2a1e-8b4d-4c7a-9e2f-5d1b7a9c0e42",
      "name": "Group clinical note",
      "type": "clinical_note",
      "createdBy": "0f8fad5b-d9cb-469f-a165-70867728950e",
      "createdAt": "2026-03-14T10:02:11.000Z",
      "artifact": {
        "contentUrl": "https://storage.example.com/templates/furunculotic-loud-chihuahua/5b0d7a3e-2c41-4f0e-9a77-1f3c9e6b8d20?X-Amz-Expires=3600&X-Amz-Signature=…",
        "contentType": "text/html",
        "size": 2048,
        "lastModified": "2026-09-28T08:15:00.000Z"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.