SecondMe API
Notes
Create text and link notes
Note management endpoints.
Base URL: https://api.mindverse.com/gate/lab
Add Note
Create a note or memory. Supports two types: text notes and link notes.
POST /api/secondme/note/addAuthentication
Requires OAuth2 Token.
Required Permissions
note.write
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | string | Yes for TEXT type | Note content (max 50000 characters) |
| title | string | No | Note title (max 200 characters) |
| urls | string[] | Yes for LINK type | URL list (max 10 URLs) |
| memoryType | string | No | Note type: TEXT (default) or LINK |
Request Examples
Text Note:
curl -X POST "https://api.mindverse.com/gate/lab/api/secondme/note/add" \
-H "Authorization: Bearer lba_at_your_access_token" \
-H "Content-Type: application/json" \
-d '{
"content": "Learned about Python async programming today",
"title": "Study Notes",
"memoryType": "TEXT"
}'Link Note:
curl -X POST "https://api.mindverse.com/gate/lab/api/secondme/note/add" \
-H "Authorization: Bearer lba_at_your_access_token" \
-H "Content-Type: application/json" \
-d '{
"urls": ["https://example.com/article"],
"title": "Interesting Article",
"memoryType": "LINK"
}'Response
Success (200)
{
"code": 0,
"data": {
"noteId": 12345
}
}| Field | Type | Description |
|---|---|---|
| noteId | number | Created note ID |
Error Codes
| Error Code | Description |
|---|---|
| auth.scope.missing | Missing note.write permission |
| note.content.required | TEXT type notes must provide content |
| note.urls.required | LINK type notes must provide urls |