Skip to Content
Xeonr Developer Docs

Getting started

Turn Notes on for a upl.im bucket and create a note through the API.

Notes keeps everything in a upl.im bucket. Before a bucket can hold notes, someone who administers it turns Notes on. You need a token with the right scopes (Authentication).

1. Find the bucket

NotesBucketsService/ListAllBuckets (upl:notes:read) lists every bucket you can reach, whether or not it has notes yet.

curl -s https://notes-api.xeonr.io/xeonr.notes.v1.NotesBucketsService/ListAllBuckets \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{}'

2. Turn Notes on

NotesBucketsService/EnableNotesForBucket (upl:notes:admin) installs the Notes integration on the bucket for you and creates its configuration. You must be an admin of the bucket in upl.im.

curl -s https://notes-api.xeonr.io/xeonr.notes.v1.NotesBucketsService/EnableNotesForBucket \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"bucketId": "<bucket id>"}'

Calling it again on a bucket that already has Notes does nothing. If someone removed the Notes integration from the bucket in upl.im, this call is refused: reinstall the integration from the bucket's settings in upl.im first. Removal is deliberate, so Notes never reinstalls itself.

ListNotesBuckets now includes the bucket.

3. Create a note

NotesService/CreateNote (upl:notes:edit) creates an empty note, at the root or under a folder. CreateNoteFromMarkdown creates one from Markdown, making any folders in its path.

curl -s https://notes-api.xeonr.io/xeonr.notes.v1.NotesService/CreateNoteFromMarkdown \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"bucketId": "<bucket id>", "path": "Team/Meeting notes", "name": "Kick-off", "markdown": "# Kick-off"}'

NotesBucketsService/GetNotesConfig returns the bucket's whole tree of folders and notes.

Turning Notes off

DisableNotesForBucket (upl:notes:admin) deletes every note and folder Notes keeps in the bucket. It cannot be undone.

On this page