Notes API
Base path: https://developerapi.motaware.com/notes/v1
Scopes: notes.read for the GET routes, notes.write for everything else (it also allows reads).
The person's Motaware plan must include Notes, otherwise the answer is 403 entitlement.app_unavailable.
On a lapsed plan reads keep working and changes get 403.
Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET | /notes | Notes (not archived), pinned first, paged; filters tagId, color |
| POST | /notes | Create a note |
| GET | /notes/recent?count=20 | Recently changed notes |
| GET | /notes/starred | Starred notes |
| GET | /notes/archived | Archived notes |
| GET | /notes/trash | Notes in the trash |
| GET | /notes/{id} | One note with its content |
| PUT | /notes/{id} | Change a note (partial) |
| DELETE | /notes/{id} | Move a note to the trash |
| POST | /notes/{id}/restore | Restore from the trash |
| GET | /notes/{id}/export/{format} | Export as markdown, html, text or pdf |
| POST | /notes/{id}/tags/{tagId} | Tag a note |
| DELETE | /notes/{id}/tags/{tagId} | Untag a note |
| GET | /notebooks | Notebooks |
| POST | /notebooks | Create a notebook: { "name", "description"? } |
| GET | /notebooks/{id} | One notebook |
| PUT | /notebooks/{id} | Change a notebook |
| DELETE | /notebooks/{id} | Delete a notebook |
| GET | /notebooks/{id}/notes | The notebook's notes, paged |
| GET | /tags | Tags |
| POST | /tags | Create a tag: { "name", "color"? } |
| PUT | /tags/{id} | Change a tag |
| DELETE | /tags/{id} | Delete a tag |
| GET | /search?q= | Search, up to 50 results: [{id, title, snippet, notebookName, updatedAt}] |
Note
Fields: id, title, slug, isPinned, isStarred, wordCount, notebookId,
notebookName, tags, attachmentCount, preview, color, isArchived, version,
createdAt, updatedAt, deletedAt.
The detail adds content, isDeleted and tags[{id, name, color, noteCount}].
Content is Markdown (up to 1,000,000 characters); checklists are Markdown task lists (- [ ] item).
Create with { "title"?, "content"?, "notebookId"?, "tagIds"? }; without notebookId the note goes to the default notebook.
Change any of title, content, isPinned, isStarred, notebookId, color, isArchived.
Avoiding lost edits
Every note has a version that goes up when its title or content changes. Send it back as expectedVersion when you change
the title or content: if someone changed the note in the meantime, the answer is 409 and nothing is saved. Read the note again and retry.
Paging
pageNumber and pageSize (default 30, at most 100); the answer is { items, pageNumber, totalPages, totalCount, hasPreviousPage, hasNextPage }.
Examples
curl -X POST https://developerapi.motaware.com/notes/v1/notes \
-H "Authorization: Bearer $MOTAWARE_API_KEY" -H "Content-Type: application/json" \
-d '{"title":"Shopping","content":"- [ ] milk\n- [ ] bread"}'
curl https://developerapi.motaware.com/notes/v1/notes/{id}/export/markdown \
-H "Authorization: Bearer $MOTAWARE_API_KEY"
Not available yet
Attachments, importing files, deleting permanently, and live change notifications.