---
title: "Create a note"
method: POST
path: "/notes"
tags: ["Notes"]
---

# Create a note

`POST /notes`

## Request

- Base URL: `https://api.parley.so/v1`
- URL: `https://api.parley.so/v1/notes`
- Auth: HTTP bearer

Create a markdown note on a project, account, or contact: pass exactly one of projectId, accountId, or contactId. Put a note on the most specific record it is about.

## Request body

- object
  - `projectId` string: Put the note on this project. Pass exactly one of projectId, accountId, or contactId.
  - `accountId` string: Put the note on this account. Pass exactly one of projectId, accountId, or contactId.
  - `contactId` string: Put the note on this contact. Pass exactly one of projectId, accountId, or contactId.
  - `name` string, required: The note title.
  - `content` string, required: The note's markdown. Refer to a file with @[name](fileId) and a folder with @[name/](folderId): these render as links and survive renames. Keep existing references exactly as they are when editing.

## Response `201`

Created.

- Note
  - `id` string, required: The note ID.
  - `name` string, required: The note title.
  - `location` object, required: The project, account, or contact the note is on.
    - `type` 'project' | 'account' | 'contact', required: The kind of record: project, account, or contact.
    - `id` string, required: Its ID.
    - `name` string, required: The record's name. A contact's is its first and last name, or an email address when it has no name.
  - `version` integer, required: Goes up by one each time the content changes or the note is renamed through the API. Pass it as expectedVersion when updating the note.
  - `createdAt` string, date-time, required: When the note was created.
  - `updatedAt` string, date-time, required: When the note was last changed, including renames.

## Other responses

- `400`: The request was invalid. VALIDATION_FAILED, INVALID_REFERENCE.
- `401`: Missing or invalid credentials. UNAUTHORIZED.
- `403`: You don't have permission. FORBIDDEN.
- `429`: Too many requests, or a usage limit was reached. TOO_MANY_REQUESTS.

---

[API](https://skmtc.dev/parley/apis/parley-api.md) - [All operations](https://skmtc.dev/parley/apis/parley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/parley/apis/parley-api/revisions/6b78aeee07bc?raw)
