Skip to main content
GET
/
notes
/
{id}
JavaScript
import Moonbase from '@moonbaseai/sdk';

const client = new Moonbase({
  apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted
});

const note = await client.notes.retrieve('id');

console.log(note.id);
{
  "id": "1CLJt2v5KzRWMMwvHwW4Nh",
  "type": "note",
  "body": {
    "markdown": "Here's a note for me! Yay!"
  },
  "created_at": "2025-02-17T16:00:00.000Z",
  "updated_at": "2025-02-17T16:00:00.000Z",
  "creator": {
    "id": "1CLJt2v2MQ25Sn5dxQYzyP",
    "type": "item",
    "collection": {
      "id": "1CLJt2ubZ7zAZFBxUxeBHo",
      "type": "collection",
      "ref": "people"
    }
  }
}

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Path Parameters

id
string
required

The ID of the note to retrieve.

Response

Successful response.

The Note object represents a block of text content, often used for meeting notes or summaries.

type
string
required

String representing the object’s type. Always note for this object.

Allowed value: "note"
id
string
required

Unique identifier for the object.

body
FormattedText · object
required

The main content of the note.

created_at
string<date-time>
required

Time at which the object was created, as an ISO 8601 timestamp in UTC.

updated_at
string<date-time>
required

Time at which the object was last updated, as an ISO 8601 timestamp in UTC.

title
string

An optional title for the note.

summary
string

A short, system-generated summary of the note's content.

creator
ItemPointer · object

The person that created the note.