---
title: "Save a post to Notes"
description: "A reference note with the link and numbers. Saving it again returns the same note. Needs the `videos:create` permission."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mosio.me/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Mosio REST API › Discover

`POST /v1/discover/posts/{id}/notes`

A reference note with the link and numbers. Saving it again returns the same note. Needs the `videos:create` permission.

## Authentication

- `apiKey`, apiKey, in header, header `x-api-key`

## Path parameters

- `id` (`saveDiscoverPostToNotes.path.id`; string, required)

## Request body

_Required._

- `note` (`saveDiscoverPostToNotes.note`; string, optional) — What to learn from it, in the user's words
  - maxLength 2000

## Example request

```json
{
  "note": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://app.mosio.me/v1/discover/posts/<id>/notes' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "note": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/discover/posts/<id>/notes';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', 'x-api-key': '<x-api-key>'},
  body: JSON.stringify({note: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.mosio.me/v1/discover/posts/<id>/notes"

payload = { "note": "string" }
headers = {
    "Content-Type": "application/json",
    "x-api-key": "<x-api-key>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

The note.

#### Example

```json
{
  "id": "string",
  "kind": "idea",
  "title": "string",
  "body": "string",
  "research": {
    "question": "string",
    "sources": [
      {
        "url": "http://example.com",
        "title": "string",
        "accessed_at": "2019-08-24T14:15:22Z",
        "findings": [
          "string"
        ]
      }
    ],
    "user_facts": [],
    "open_questions": []
  },
  "links": [
    "string"
  ],
  "tags": [
    "string"
  ],
  "color": "yellow",
  "x": 0,
  "y": 0,
  "source": "string",
  "plan_id": "string",
  "created_at": "string",
  "updated_at": "string"
}
```

- `id` (`saveDiscoverPostToNotes.response.201.id`; string, required)
- `kind` (`saveDiscoverPostToNotes.response.201.kind`; string, required)
  - one of `"idea"`, `"research"`, `"data"`, `"reference"`, `"brief"`, `"note"`
- `title` (`saveDiscoverPostToNotes.response.201.title`; string, required)
- `body` (`saveDiscoverPostToNotes.response.201.body`; string, required)
- `research` (`saveDiscoverPostToNotes.response.201.research`; any of, required)
  - any of: `object`, `null`
- `links` (`saveDiscoverPostToNotes.response.201.links`; array<string>, required)
- `tags` (`saveDiscoverPostToNotes.response.201.tags`; array<string>, required)
- `color` (`saveDiscoverPostToNotes.response.201.color`; string, required)
  - one of `"yellow"`, `"blue"`, `"green"`, `"pink"`, `"purple"`, `"gray"`
- `x` (`saveDiscoverPostToNotes.response.201.x`; number, required)
- `y` (`saveDiscoverPostToNotes.response.201.y`; number, required)
- `source` (`saveDiscoverPostToNotes.response.201.source`; string | null, required)
- `plan_id` (`saveDiscoverPostToNotes.response.201.plan_id`; string | null, required)
- `created_at` (`saveDiscoverPostToNotes.response.201.created_at`; string, required)
- `updated_at` (`saveDiscoverPostToNotes.response.201.updated_at`; string, required)

### 400

The request body is not valid JSON or does not match the schema.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`saveDiscoverPostToNotes.response.400.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`saveDiscoverPostToNotes.response.400.message`; string, required) — A message for people, in Indonesian.
- `details` (`saveDiscoverPostToNotes.response.400.details`; unknown, optional) — More about the error, such as the fields to fix.

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`saveDiscoverPostToNotes.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`saveDiscoverPostToNotes.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`saveDiscoverPostToNotes.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.

### 404

No such video or file in this workspace.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`saveDiscoverPostToNotes.response.404.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`saveDiscoverPostToNotes.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`saveDiscoverPostToNotes.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/save-discover-post-to-notes/index.md
