The Notes APIs let your app create, list, read, update, and delete notes for a signed-in user. A note is the user's own text, optionally attached to a passage of Scripture, and can carry a title, a color, and tags.
| Endpoint | Use it when you want… |
|---|---|
GET /v1/notes | A page of the user's notes, newest first, optionally filtered by passage or Bible version |
POST /v1/notes | To create a note |
GET /v1/notes/{note_id} | One note by its id |
PATCH /v1/notes/{note_id} | To change some of a note's fields |
DELETE /v1/notes/{note_id} | To delete a note |
Browse the full request and response schemas in the interactive API reference.
Before you start
Every Notes request acts on one user's notes, so it needs a signed-in user as well as your App Key:
- Send your App Key in the
X-YVP-App-Keyheader. See App Key setup. - Send the user's access token in the
Authorization: Bearerheader. Get it through the Sign-in APIs, requesting theread_notesandwrite_notesscopes in the authorize call'sscopeparameter. See OAuth scopes vs. requested permissions.
| Operation | Scope the token needs |
|---|---|
| List, get | read_notes |
| Create, update, delete | write_notes |
Code
Key concepts
A note attaches to at most one passage
The optional passage object pairs a Bible version id (bible_id) with a passage_id in one of these forms:
| Form | Example |
|---|---|
| A single verse | JHN.3.16 |
| A verse range within one chapter | JHN.3.16-18 |
Verses in one chapter, joined by + | JHN.3.16+JHN.3.18 |
A passage can't span chapters. To attach notes to verses in different chapters, create one note per chapter. See Passage IDs for the USFM reference format.
Create once with request_id
POST /v1/notes requires a request_id, a UUID your app generates for each new note. If a create request times out or the response is lost, send it again with the same request_id. You get back the note that was already created instead of a duplicate. Generate a new request_id for each new note.
Status is private or public
A note's status is either private, visible only to its author, or public, visible to others. Any other value is rejected.
A note's color appears in highlights
When a note attached to a passage has a color, the user's highlights for those verses include that color. GET /v1/highlights returns it for the note's chapter, and it changes or disappears when you update or delete the note.
Pagination
GET /v1/notes returns notes newest first, in pages. Set the page size with page_size, between 1 and 99 (default 25). When more notes are available, the response includes a next_page_token. Send that value back as page_token to get the next page.
A page can hold fewer than page_size notes, or none, while next_page_token is still present. This is more likely when you filter by passage_id or bible_id. Keep following next_page_token until it is null. Keep every parameter except page_size the same as in the request that returned the token.
When a page holds no notes and there are no further pages, the endpoint returns 204 No Content with an empty body, not 200 with an empty data array. Check for 204 before parsing the body.
GET /v1/notes
Return a page of the signed-in user's notes, newest first.
Endpoint URL
Code
Query parameters
| Parameter | Required | Description |
|---|---|---|
passage_id | No | Return only notes whose passage overlaps this one. See Filter by passage. |
bible_id | No | Return only notes attached to this Bible version. Notes with no passage never match. |
page_size | No | Number of notes to return, between 1 and 99. Defaults to 25. |
page_token | No | The next_page_token from a previous response, to get the next page. |
When you send both passage_id and bible_id, a note must match both.
Filter by passage
A note matches passage_id when its passage shares at least one verse with the value you send:
passage_id value | Matches notes that… |
|---|---|
A verse, such as JHN.3.16 | Include that verse |
A verse range, such as JHN.3.16-18 | Include any verse in the range |
Verses joined by +, such as JHN.3.16+JHN.3.18 | Include any of those verses |
A chapter, such as JHN.3 | Have a passage anywhere in that chapter |
passage_id matches across Bible versions. Add bible_id to limit the results to one version.
Example request
Code
Example response
Code
Fetching the next page
When next_page_token is non-null, send it back as page_token with the same filters:
Code
Response fields
| Field | Description |
|---|---|
data | Array of notes. See Note fields. |
next_page_token | Token for the next page, or null when there are no more pages. |
POST /v1/notes
Create a note for the signed-in user.
Endpoint URL
Code
Request body
| Field | Required | Description |
|---|---|---|
request_id | Yes | A UUID you generate for this note. See Create once with request_id. |
content | Yes | The note's text. |
status | Yes | private or public. |
title | No | A short title. |
color | No | A 6-digit lowercase hex color without #, such as 44aa44. |
passage | No | An object with bible_id and passage_id. See A note attaches to at most one passage. |
language_tag | No | The note's language: a two-letter language code, optionally followed by a region, such as en or en-US. |
tags | No | An array of labels. A label can't contain a comma. |
Example request
Code
Example response
Returns 201 Created with the new note:
Code
GET /v1/notes/{note_id}
Get one of the signed-in user's notes by its id.
Endpoint URL
Code
Path parameters
| Parameter | Description |
|---|---|
note_id | The note's id, as returned when you list or create notes. |
Example request
Code
Returns 200 with the note. See Note fields. If the signed-in user has no note with that id, the endpoint returns 404.
PATCH /v1/notes/{note_id}
Change some of a note's fields. Send at least one field. Fields you leave out keep their current value.
Endpoint URL
Code
Request body
Any of title, content, status, color, passage, language_tag, and tags, in the same forms as create. To clear title, color, passage, language_tag, or tags, send null. content and status can't be null.
Example request
Code
Returns 200 with the updated note. If the signed-in user has no note with that id, the endpoint returns 404.
DELETE /v1/notes/{note_id}
Delete one of the signed-in user's notes.
Endpoint URL
Code
Example request
Code
Returns 204 No Content with an empty body. If the signed-in user has no note with that id, including one already deleted, the endpoint returns 404.
Note fields
| Field | Description |
|---|---|
id | The note's unique identifier. |
title | A short title, or null. |
content | The note's text. |
color | A 6-digit hex color, or null. |
passage | An object with bible_id and passage_id, or null when the note isn't attached to a passage. |
language_tag | The note's language, such as en or en-US, or null. |
tags | The note's labels. |
status | private or public. |
created_dt | When the note was created. |
updated_dt | When the note was last updated. |
Errors
| Status | When | Examples |
|---|---|---|
400 Bad Request | A parameter or the request body is invalid. The body's message names the problem, such as content: Field required. | Missing request_id or content; a status other than private or public; a field the API doesn't recognize; a color with # or uppercase letters; a passage spanning chapters; a malformed passage_id or bible_id filter; page_size outside 1–99; an invalid page_token; an update with no fields. |
401 Unauthorized | The App Key or the access token is missing or invalid. | No Authorization header; an expired access token. See Authentication Errors. |
403 Forbidden | The access token doesn't have the scope the operation needs. | A token without write_notes on create, update, or delete. See Before You Start. |
404 Not Found | The signed-in user has no note with that id. | A deleted note's id. |
429 Too Many Requests | Rate limit exceeded. | Check the Retry-After header before retrying. |
For the exact response body shapes, see the error codes reference.
Need help?
If you need help integrating with the Notes APIs or have questions about the documentation, please reach out to our support team.