# File a request (https://notert.io/docs/api/reference/file-a-request)

`POST /api/v1/requests`

Files a new request from the token's holder, pending with no tags or owners unless it names them: on a board, under another request, or else on the workspace's first board. A token with requests:manage too triages it as it files it, with its status, tags, owners, expected day and who it is from, and moves requests already filed under it; any of those without requests:manage is INSUFFICIENT_SCOPE, and nothing is filed. New sub-requests written with it start hidden from the public board and need only requests:write. The team is told as when a teammate files one. Where it is filed but can't be read back for the answer, the answer holds its id alone, and a get reads the rest.

Access: A token with requests:write.

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | No | A key of your own for this call, such as a UUID, sent again with a call made again after its answer was lost, so it stores and sends once and answers what the first stored. The same key with other words names another record. Send it or an id in the body, not both. At least 1 character. At most 255 characters. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | string | Yes | What the request asks for, in a line. At least 1 character. At most 150 characters. |
| `details` | string | No | What the request says beyond its title, in Markdown. At most 5000 characters. |
| `status` | string | No | Where it starts. Left out, pending. Any other needs requests:manage. One of: `pending`, `in_review`, `planned`, `in_progress`, `completed`, `closed`. Default "pending". |
| `tagIds` | string[] | No | The ids of the tags it wears. Left out, none. Any needs requests:manage. Default []. |
| `ownerIds` | string[] | No | The m_ ids of the teammates who own it. Left out, none. Any needs requests:manage. Default []. |
| `estimatedDate` | date or null | No | The day the team expects to ship it, YYYY-MM-DD. Left out, none. A day needs requests:manage. |
| `id` | uuid | No | An id of your own, a UUID, so a call sent again after its answer was lost answers the same request rather than filing a second. Or send an Idempotency-Key header instead, not both. |
| `boardId` | string | No | The board to file it on. Without one it goes on the board of the request it is filed under, or else the workspace's first board. At most 64 characters. |
| `parentId` | string | No | The request to file it under as a sub-request. It starts hidden from the public board. At most 64 characters. |
| `author` | object | No | Who it is from, such as the customer who asked on a call, whose vote it starts with and who hears of its status by email: a member or a contact by personId, or kind new with a firstName, lastName and email for someone the workspace doesn't know yet. Left out, the token's holder. Naming one needs requests:manage. |
| `author.personId` | string | No | The member's or the contact's person id, m_ or c_ and their id, as the people and voters lists answer it. |
| `author.firstName` | string | No | Someone new's first name. At least 1 character. At most 40 characters. |
| `author.lastName` | string | No | Someone new's last name, or empty. At most 39 characters. |
| `author.email` | string | No | Someone new's email, or empty. An email the workspace knows finds that contact rather than adding one. At most 254 characters. |
| `author.kind` | value | No | new, for someone the workspace doesn't know yet. |
| `subRequestIds` | string[] | No | Requests already filed to move under it as its sub-requests, by id or key, in this order. They leave the board's lists and the roadmap. Any needs requests:manage. Default []. |
| `newSubRequests` | object[] | No | New requests to write under it, after those in subRequestIds, each with a title and as wanted its details, status, tagIds, ownerIds and estimatedDate. Each starts hidden from the public board. Default []. |
| `newSubRequests.title` | string | Yes | What the request asks for, in a line. At least 1 character. At most 150 characters. |
| `newSubRequests.details` | string | No | What the request says beyond its title, in Markdown. At most 5000 characters. |
| `newSubRequests.status` | string | No | Where it starts. Left out, pending. Any other needs requests:manage. One of: `pending`, `in_review`, `planned`, `in_progress`, `completed`, `closed`. Default "pending". |
| `newSubRequests.tagIds` | string[] | No | The ids of the tags it wears. Left out, none. Any needs requests:manage. Default []. |
| `newSubRequests.ownerIds` | string[] | No | The m_ ids of the teammates who own it. Left out, none. Any needs requests:manage. Default []. |
| `newSubRequests.estimatedDate` | date or null | No | The day the team expects to ship it, YYYY-MM-DD. Left out, none. A day needs requests:manage. |
| `pictureUrls` | uri[] | No | Public https addresses of pictures to attach (JPEG, PNG, GIF or WebP, of no more pixels than 3840 x 2160, up to 10 MB each), at most 10 and the plan's count, which the server fetches from the open web. One that can't be fetched, isn't a picture or is too large is PICTURE_REFUSED, and nothing is filed. Default []. |

## Response 201

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The request's id. Where an endpoint takes one, its key as its page shows it, such as REQ-44, works too. |
| `key` | string | What people call the request by, as its page shows it. Every endpoint that takes a request's id takes it too. |
| `title` | string | What the request asks for, in a line. |
| `details` | string | What the request says beyond its title, in Markdown. |
| `status` | string | Where the request stands: pending unless it was filed in another status. One of: `pending`, `in_review`, `planned`, `in_progress`, `completed`, `closed`. |
| `boardId` | string | The board the request is on. |
| `parentId` | string or null | The request it is a sub-request of, or null for a top-level request. |
| `boardUrl` | string or null | Its page on the public board, at the workspace's own domain once one is connected. Null while a stranger can't open it: hidden, waiting for review or on a private board. |
| `authorId` | string or null | Who filed it, as the people endpoints name them: a customer's c_ id or a teammate's m_ id. Null once neither stands, as after the customer is erased. |
| `votes` | integer | How many people voted for it. |
| `createdAt` | date-time | When it was filed. |
| `updatedAt` | date-time | When it last changed, such as its title, details, status or board: the moment its version names. A vote or a comment doesn't change it. |
| `version` | string | Its version as read now, which a change sends back, so a change made since is refused rather than written over. One request's answers carry it; a page's don't. |
| `tagIds` | string[] | The ids of the tags it wears. |
| `ownerIds` | string[] | The m_ ids of the teammates who own it. |
| `estimatedDate` | date or null | The day the team expects to ship it, or none. |
| `hidden` | boolean | Whether the team keeps it off the public board. One on a private board, or waiting for review, isn't shown there either way. |
| `heldForReview` | boolean | Whether it waits for a moderator's review, off the public board until approved: held as it was posted, after an edit, or once reports sent it back. One a moderator removed is NOT_FOUND. |
| `attachments` | object[] | Its pictures and other files, in the order they were attached, every one the team sees on its page in the app. One request's answers carry them; a page's don't. |
| `attachments.attachmentId` | string | The file's id, which stays the same while its url may change from one read to the next. |
| `attachments.name` | string | The file's name. |
| `attachments.type` | string | The file's content type. |
| `attachments.size` | integer | The file's size in bytes. |
| `attachments.url` | string or null | Where the file opens. A file the public board may show keeps its address; one only the team sees opens until the end of the next day, so download what you keep rather than its address, and read the request again for a fresh one. Null while it can't be opened from outside the app: a document still being checked for safety, or a file a customer sent that waits for review or that the team keeps to itself, which open only in the app. |
| `newSubRequestIds` | string[] | The ids of the sub-requests written with it, in the order named. A call sent again under its id or key answers the same ones. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 400 | `IDEMPOTENCY_KEY_REFUSED` | Send an Idempotency-Key of 1 to 255 visible characters, or an id of your own in the body, not both. |
| 400 | `TOO_MANY_SUB_REQUESTS` | Add up to 50 sub-requests. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `BANNED` | The workspace banned that person, so nothing is written for them. |
| 403 | `BOARD_NOT_REACHED` | This API token works only on the boards it was made for. Name one of them, or create a token that reaches this one in the workspace's settings. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't file requests, vote or follow. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `ID_TAKEN` | Another request has this id. File it under a new one. |
| 409 | `PARENT_REFUSED` | That request can't be its parent: it is gone, merged, full, too deep, the request itself or one under it. data.reason says which. Its data holds `reason`. |
| 409 | `PICKS_GONE` | A board, tag or teammate it names isn't in this workspace. Pick another, or leave it out. Its data holds `board`, `tagIds`, `ownerIds`, `author`. |
| 409 | `SUB_REQUEST_REFUSED` | A request named can't go under this one: it is gone, merged, above it, or would sit too deep. Its data holds `refused`. |
| 409 | `TOO_MANY_FILES` | That is more files than the workspace's plan takes. Its data holds `limit`. |
| 422 | `PICTURE_REFUSED` | A picture in pictureUrls couldn't be attached, so nothing was written. data.url names it and data.reason says why. Its data holds `url`, `reason`. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/requests \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Dark mode",
  "details": "Easier on the eyes when we work late.",
  "status": "planned",
  "tagIds": [
    "7a3e1c9b-4d2f-4b8a-9e6c-2f1d5b7a3c08"
  ],
  "ownerIds": [
    "m_5k2m9p4q7r1t"
  ],
  "estimatedDate": "2026-12-15",
  "id": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "boardId": "2d9a7c41-6b3e-4e8f-a1c5-0f4b8d2e6a17",
  "parentId": "5e1b9f3a-7c2d-4a6e-8b0f-3d4c6a8e1f92",
  "author": {
    "personId": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70"
  },
  "subRequestIds": [
    "5e1b9f3a-7c2d-4a6e-8b0f-3d4c6a8e1f92"
  ],
  "newSubRequests": [
    {
      "title": "Export to CSV"
    }
  ],
  "pictureUrls": [
    "https://example.com/shots/dark-mode.png"
  ]
}'
```

## Example response 201

```json
{
  "id": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "key": "REQ-44",
  "title": "Dark mode",
  "details": "Easier on the eyes when we work late.",
  "status": "pending",
  "boardId": "2d9a7c41-6b3e-4e8f-a1c5-0f4b8d2e6a17",
  "parentId": null,
  "boardUrl": "https://feedback.example.com/p/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "authorId": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
  "votes": 1,
  "createdAt": "2026-11-02T10:15:00.123Z",
  "updatedAt": "2026-11-10T14:05:00.123Z",
  "version": "2026-11-10 14:05:00.123456",
  "tagIds": [],
  "ownerIds": [],
  "estimatedDate": null,
  "hidden": false,
  "heldForReview": false,
  "attachments": [
    {
      "attachmentId": "6d2f8b4a-9e1c-4a7d-b3f5-2c8e0a6d4b19",
      "name": "dark-mode.webp",
      "type": "image/webp",
      "size": 48213,
      "url": "https://notert-content.com/requests/6d2e9a1c/0b6f3a2e.webp"
    }
  ],
  "newSubRequestIds": []
}
```
