[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbooking-wait-list\u002Fcreate":3,"docs-tabs-entities\u002Fbooking-wait-list\u002Fcreate":6},{"content":4,"lastmod":5},"# Create an entry\n\n`POST \u002Fv1\u002Fbooking-wait-list`\n\nAdds a record to the wait list — the queue of clients for whom no free time slot was available to book.\n\nFields go at the root of the JSON, without a `fields` wrapper.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `note` | string \\| null | no | Note on the record. If the field is omitted or `null`, the record is created without a note |\n\nThe body accepts no other fields. The record's clients are set by a separate [`PUT \u002Fv1\u002Fbooking-wait-list\u002F:id\u002Fclients`](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fclients) request after creation.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"note\": \"Call back after 15:00\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"note\": \"Call back after 15:00\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ note: 'Call back after 15:00' }),\n})\n\nconst { data } = await res.json()\nconsole.log('Record ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ note: 'Call back after 15:00' }),\n})\n\nconst { data } = await res.json()\nconsole.log('Record ID:', data.id)\n```\n\n## Response fields\n\nOn success, the HTTP status is `201 Created`.\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data.id` | number | Identifier of the created record. Pass it in the path of requests to the record, for example [`PUT \u002Fv1\u002Fbooking-wait-list\u002F:id\u002Fclients`](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fclients) |\n| `data.note` | string \\| null | Note on the record. `null` — no note |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 27,\n    \"note\": \"Call back after 15:00\"\n  }\n}\n```\n\n## Error response example\n\n400 — the body contains a field other than `note`:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Only note can be written\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | The body contains a field other than `note`. Message `Only note can be written` |\n| 400 | `INVALID_PARAMS` | `note` is neither a string nor `null`. Message `note must be a string or null` |\n| 400 | `INVALID_PARAMS` | The body is not a JSON object, for example an array. Message `Body must be an object` |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is not passed |\n| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens |\n| 403 | `SCOPE_DENIED` | The key does not have the `booking` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 429 | `RATE_LIMITED` | Request rate exceeded. The effective cap is in the `x-ratelimit-limit` header |\n| 502 | `BITRIX_RESPONSE_INVALID` | Bitrix24 returned a response of an unexpected shape. If this happened while re-reading the record after creation, the record has already been created — find it in the [list](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Flist) before retrying |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List wait list records](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Flist)\n- [Update a wait list record](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fupdate)\n- [Wait list clients](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fclients)\n- [Book from the wait list](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fbooking)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-13",{},1795000274162]