Help centerIntegrations

For: Admins

Add notes to cases with a hub key

Create internal notes on a case from your own software, give them a document and files, and choose which roles can see them.

In this article7 sections

Before you start

This page covers adding and reading a case's notesNotes Internal notes on a case that only people whose role allows it can see; clients can't see them unless the firm changes that. with a hub key. Paths are under https://prd-api-app.caseactive.com/v1/<hub id>/<case id>.

Calls

CallWhat it does
GET /notes/templatesLists your note templates
POST /notesCreates a note
GET /notesLists the case's notes, newest first
GET /notes/<note_id>Reads one note
PUT /notes/<note_id>Changes a note's title or who sees it
DELETE /notes/<note_id>Deletes a note, with its files

A note is a document kept on a case for your team, with any files that go with it. Its content is the document: start from a template, or upload a PDF or Word file once the note exists. There's no text field. Nobody is told when a note is added or changed, and notes send no webhooks.

Creating a note

FieldWhat it doesRequiredDefault
nameThe note's title. Letters, numbers, spaces and & ' - _ ( ) . /; no commas, colons, question marks or quotes.Yes—
permissionsThe rolesRole A set of permissions that decides what someone can see and do on a case, such as staff or clients. that may see it, such as ["role::staff"]. Only roles that can read notes.NoThe template's roles, or every role that can read notes
template{"owner": "host", "template_id": "<asset_id>"} from GET /notes/templates, to bring a template's document and files, or {"owner": "case", "template_id": "<note_id>"} to copy a note on this caseNoNone
curl -X POST https://prd-api-app.caseactive.com/v1/ca-7e6d5c4b3a2f10/cc-1a2b3c4d5e6f70/notes \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Case representation letter", "permissions": ["role::staff"], "template": {"owner": "host", "template_id": "note::20260915101500_5e4d3c2b1a0f90"}}'

It answers 201 with the note_id.

  • From a template, the note gets the template's document, files and roles; its codes, such as the client's name, are filled in once, when the note is made. Codes about whoever made it, such as their name, take the Virtual Assistant's details, which carry your firm's name. Its title isn't copied: send name.
  • A copy of a note on this case also keeps what was typed or drawn on it, unless you send schema to replace that. Its codes are filled in again, as of when the copy is made.
  • Without a template, upload its document next: ask for an address with media_group=schemas, upload a PDF or Word file, and attach it with PUT /notes/<note_id>/schema/media. A Word file is converted to PDF. A note holds one document. See Upload and attach files with a hub key.
  • Other files, such as photos or a recording, attach with PUT /notes/<note_id>/media.

Who sees it

People in the note's roles can open it. Staff, whose role moderates notes by default, see every note whatever its roles. Clients see no notes unless an Admin has given the clients role access to them; see Change what a role can do.

Reading notes

GET /notes takes limit (default 20, up to 1000) and start_key, and pages as every list does. A key reads every note on the case. Each note holds:

FieldWhat it holds
note_id, case_idIts IDs
nameIts title
user_idWho made it; the Virtual Assistant's ID for notes a key or an automation made
permissionsThe roles that may see it
schema_mediaThe media_id of its document
media, media_ctIts document and files, by kind, and how many. Download them as in Upload and attach files with a hub key.
schemaWhat people typed or drew on the document, in Instant JSON
template_idThe template it was made from
created_on, updated_onWhen it was made and last changed, in UTC

GET /notes/templates lists your published note templatesTemplate A reusable feed post, form, e-sign, note or task kept in the Library and copied onto cases., oldest first, with each one's asset_id, title, description and permissions.

Changing and deleting

PUT /notes/<note_id> takes name and permissions, and changes only the ones you send. A key can change any note on the case. An empty permissions list is refused: send the roles that should see it. A body with neither is refused.

DELETE /notes/<note_id> deletes any note, with its document and files. Nobody is told.

If a call is refused

StatusmessageWhy
400SchemaFieldsExceptionA field is missing or invalid, such as a comma in name, an empty permissions list or a role your hub doesn't have; errors names it
400SchemaFieldsException, with ItemCopyNotAllowedException at templateThe template isn't published, isn't open to the Bots role, or its files are still being processed
400SchemaFieldsException, with NoteRoleCannotReadNotesException at permissionsA role in permissions can't read notes
403HostModuleDisabledExceptionNotes are switched off for your hub, or hidden on this case
403CaseClosedExceptionThe case is closed
404ItemNotFoundExceptionThe note doesn't exist

For the error body and the rest of the codes, see Handle API errors and status codes.

Related articles

Upload and attach files with a hub keyGet an upload address, upload a file, attach it to an update, note, task, form or e-sign, and download a case's files.IntegrationsAdd an internal note to a caseKeep an internal note on a case, as a document with files, and choose which roles besides staff can see it.Cases & intake · 3 minHandle API errors and status codesRead the error body, what 400, 401, 403, 404, 500 and 503 mean, and why an item your key can't see answers 404.Integrations