---
title: "Add a note"
description: "Adds a note. With the same `idempotency_key`, a retried request adds one 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 › Notes

`POST /v1/notes`

Adds a note. With the same `idempotency_key`, a retried request adds one note. Needs the `videos:create` permission.

## Authentication

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

## Request body

_Required._

- `kind` (`createNote.kind`; string, required) — idea: a loose idea; research: findings with sources; data: figures, tables or survey results the video can show (numbers in the body, where they came from in links or research); reference: a video or post to learn from; brief: a rough brief not yet saved as a production plan; note: anything else.
  - one of `"idea"`, `"research"`, `"data"`, `"reference"`, `"brief"`, `"note"`
- `title` (`createNote.title`; string, required)
  - minLength 1; maxLength 120
- `body` (`createNote.body`; string, optional)
  - maxLength 10000; default `""`
- `research` (`createNote.research`; any of, optional)
  - default `null`
  - any of: `object`, `null`
- `links` (`createNote.links`; array<string>, optional)
  - format `uri`; maxLength 2000; default `[]`
- `tags` (`createNote.tags`; array<string>, optional)
  - minLength 1; maxLength 40; default `[]`
- `color` (`createNote.color`; string, optional)
  - one of `"yellow"`, `"blue"`, `"green"`, `"pink"`, `"purple"`, `"gray"`; default `"yellow"`
- `x` (`createNote.x`; integer, optional)
  - min -20000; max 20000; default `0`
- `y` (`createNote.y`; integer, optional)
  - min -20000; max 20000; default `0`
- `idempotency_key` (`createNote.idempotency_key`; string, optional) — Unique per note, so a retried request creates one note.
  - minLength 1; maxLength 128

## Example request

```json
{
  "kind": "idea",
  "title": "string",
  "body": "",
  "research": null,
  "links": [],
  "tags": [],
  "color": "yellow",
  "x": 0,
  "y": 0,
  "idempotency_key": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://app.mosio.me/v1/notes \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "kind": "idea",
  "title": "string",
  "body": "",
  "research": null,
  "links": [],
  "tags": [],
  "color": "yellow",
  "x": 0,
  "y": 0,
  "idempotency_key": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/notes';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', 'x-api-key': '<x-api-key>'},
  body: JSON.stringify({
    kind: 'idea',
    title: 'string',
    body: '',
    research: null,
    links: [],
    tags: [],
    color: 'yellow',
    x: 0,
    y: 0,
    idempotency_key: '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/notes"

payload = {
    "kind": "idea",
    "title": "string",
    "body": "",
    "research": None,
    "links": [],
    "tags": [],
    "color": "yellow",
    "x": 0,
    "y": 0,
    "idempotency_key": "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` (`createNote.response.201.id`; string, required)
- `kind` (`createNote.response.201.kind`; string, required)
  - one of `"idea"`, `"research"`, `"data"`, `"reference"`, `"brief"`, `"note"`
- `title` (`createNote.response.201.title`; string, required)
- `body` (`createNote.response.201.body`; string, required)
- `research` (`createNote.response.201.research`; any of, required)
  - any of: `object`, `null`
- `links` (`createNote.response.201.links`; array<string>, required)
- `tags` (`createNote.response.201.tags`; array<string>, required)
- `color` (`createNote.response.201.color`; string, required)
  - one of `"yellow"`, `"blue"`, `"green"`, `"pink"`, `"purple"`, `"gray"`
- `x` (`createNote.response.201.x`; number, required)
- `y` (`createNote.response.201.y`; number, required)
- `source` (`createNote.response.201.source`; string | null, required)
- `plan_id` (`createNote.response.201.plan_id`; string | null, required)
- `created_at` (`createNote.response.201.created_at`; string, required)
- `updated_at` (`createNote.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` (`createNote.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` (`createNote.response.400.message`; string, required) — A message for people, in Indonesian.
- `details` (`createNote.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` (`createNote.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` (`createNote.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`createNote.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/notes/create/index.md
