Read Data

Retrieve a specific record using its unique identifier.

import fetch from "node-fetch";

const recordId = "66bd3762c23f9e3f152fb4d1";

const response = await fetch(
  `https://api.bluenexus.ai/api/v1/data/memories/${recordId}`,
  {
    headers: {
      Authorization: `Bearer ${USER_ACCESS_TOKEN}`,
    },
  }
);

const record = await response.json();

// Example response:
// {
//   "id": "66bd3762c23f9e3f152fb4d1",
//   "title": "Morning Workout",
//   "content": "Completed 30-minute run in the park. Feeling energized!",
//   "category": "fitness",
//   "tags": ["exercise", "health", "running"],
//   "createdAt": "2024-12-15T09:00:00.000Z",
//   "updatedAt": "2024-12-15T09:00:00.000Z"
// }

Finding Record IDs: The record ID is returned when you create a record, or you can find it by querying records.

See

Last updated