Retrieve all notes
This endpoint retrieves all notes in your account. You can narrow down the data returned by filtering on the source of the note (see our article on creating notes for more information).
HTTP Requestβ
GET https://api.lunatask.app/v1/notes
Query Parametersβ
| Parameter | Description |
|---|---|
source | The source specified when creating the note (optional) |
source_id | The source_id specified when creating the note (optional) |
If no source is specified, all note are returned.
Example in Rubyβ
require 'rest-client'
access_token = 'xxx'
RestClient.get('https://api.lunatask.app/v1/notes', { Authorization: "bearer #{access_token}" })
Responseβ
The request returns JSON structured like this:
{
"notes": [
{
"id": "5999b945-b2b1-48c6-aa72-b251b75b3c2e",
"notebook_id": "d1ff35f5-6b25-4199-ab6e-c19fe3fe27f1",
"date_on": null,
"sources": [
{
"source": "evernote",
"source_id": "352fd2d7-cdc0-4e91-a0a3-9d6cc9d440e7"
}
],
"created_at": "2021-01-10T10:39:25Z",
"updated_at": "2021-01-10T10:39:25Z",
},
{
"id": "2ca8eb4c-4825-47e4-84de-2bbe0017b6c0",
"notebook_id": "fc2aa380-3320-4525-8611-7332d5060478",
"date_on": null,
"sources": [],
"created_at": "2021-01-13T08:12:25Z",
"updated_at": "2021-01-15T10:39:25Z",
}
]
}