Monica
Log in
API v1
v1
View as Markdown

Get a note

GET QUERY /api/v1/vaults/{vault}/groups/{group}/notes/{note}

Return one note written about a group.

Groups are not yet available to every account. Until they are available to yours, every endpoint here answers 404.

This endpoint answers GET and QUERY alike, and both return the same answer. GET sends the parameters in the address, QUERY in the request body. How QUERY works.

Path parameters

Path parameters go in the address. GET sends the others in the address too, QUERY sends them as JSON in the request body. Anything not listed here is ignored.

vault string Required

The vault the group lives in, named either by the readable name it reports as slug or by its id.

group uuid Required

The id of the group. One addressed through the wrong vault, deleted, or belonging to another account, answers 404.

note uuid Required

The id of the note. One addressed through another group answers 404.

Returns

The note object. A note of another account, or one already deleted, answers 404.

data object

The note.

data.type string

Always group_note. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.

data.id string

The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.

data.attributes object

Everything the record holds.

data.attributes.group object

The group the note is about.

data.attributes.group.id uuid

The id of the group.

data.attributes.group.name string

What the group is called.

data.attributes.body string

What was written, as plain text.

data.attributes.created_at timestamp

When the note was written, as a count of seconds since 1970. This is the date the group page shows.

data.attributes.updated_at timestamp

When it last changed, as a count of seconds since 1970, or null.

data.links object

Where to find this record.

data.links.self string

The absolute address this record is read from.

Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.

GET
curl https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7/notes/9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235 \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7/notes/9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235', {
headers: { Authorization: `Bearer ${token}` },
})
const data = await response.json()
$response = Http::withToken($token)->get('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7/notes/9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235');
QUERY
curl https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7/notes/9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235 \
-X QUERY \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7/notes/9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235', {
method: 'QUERY',
headers: { Authorization: `Bearer ${token}` },
})
const data = await response.json()
$response = Http::withToken($token)->query('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7/notes/9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235');
Response 200
{
"data": {
"type": "group_note",
"id": "9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235",
"attributes": {
"group": {
"id": "5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7",
"name": "Party planning committee"
},
"body": "Angela keeps the budget in the blue binder. Ask her before buying anything.",
"created_at": 1791547200,
"updated_at": 1791547200
},
"links": {
"self": "https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/groups/5d2a7c91-3e48-4b06-9f1d-a83c60e2b4f7/notes/9e3c51b7-2d84-4f60-a1c9-6b07d4e8f235"
}
}
}

Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.