Note API
Get all notes in a deck
GET
https://memoet.com/api/decks/:deck:id/notes
This endpoint allows you to get all notes in a deck.
Path Parameters
deck:id*
string
ID of the deck.
Query Parameters
limit
string
Number of notes per page.
before
string
Before cursor of current page.
after
string
After cursor of current page.
Headers
Authentication*
string
Authentication token.
{
"data": [
{
"id": "6f397ed6-e5d0-43af-9265-d2b14b8a9a7c",
"title": "Which city is the capital of the United States of America? Which city is the capital of the United States of America? "
}
],
"metadata": {
"after": null,
"before": null,
"limit": 1,
"total_count": 3
}
}
Create new notes
POST
https://memoet.com/api/decks/:deck:id/notes
This endpoint allows you to create new notes for a deck.
Path Parameters
deck:id*
string
ID of the deck to add notes to.
Headers
Authentication*
string
Authentication token.
Request Body
note
object
See example below.
{}
Body content example:
{
"note": {
"title": "Greenland is a part of which kingdom?",
"content": "[Source](https://opentdb.com)",
"type": "multiple_choice",
"options": [
{
"content": "Sweden",
"correct": false
},
{
"content": "Denmark",
"correct": true
},
{
"content": "United Kingdom",
"correct": false
},
{
"content": "Norway",
"correct": false
}
]
}
}
Retrieve / Update / Delete a note in deck
GET
https://memoet.com/api/decks/:deck:id/notes/:note:id
Retrieve, update, delete a note by sending GET, PUT, DELETE request to endpoint above.
Path Parameters
note:id*
string
ID of the note.
deck:id*
string
ID of the deck.
Headers
Authentication*
string
Authentication token.
Last updated
Was this helpful?