# Request ids · safe retries

Every tool that creates something takes a `requestId`. Send the same id to retry the same call, and Xale returns the first result instead of saving twice.

Checked 2026-12-04 · https://xale.app/docs/ai/request-ids-safe-retries

## The rule

Make a new id for each new item: 8 to 100 letters, digits or `-` `_` `.` `:`. Send the same id only to retry the same call. A readable id helps you: `plan-2026-12-04-dentist`.

```json
{ "blockType": "quickblock", "title": "Dentist", "startAt": 1796378400000, "requestId": "plan-2026-12-04-dentist" }
```

Xale remembers a `requestId` for 7 days, for this connection and this tool.

## Which tools take one

The 19 create tools: [`xale_plan_block`](https://xale.app/docs/ai/tools/xale_plan_block), [`xale_schedule_intention`](https://xale.app/docs/ai/tools/xale_schedule_intention), [`xale_save_note`](https://xale.app/docs/ai/tools/xale_save_note), [`xale_append_to_note`](https://xale.app/docs/ai/tools/xale_append_to_note), [`xale_save_list`](https://xale.app/docs/ai/tools/xale_save_list), [`xale_append_to_list`](https://xale.app/docs/ai/tools/xale_append_to_list), [`xale_save_mindmap`](https://xale.app/docs/ai/tools/xale_save_mindmap), [`xale_add_mindmap_nodes`](https://xale.app/docs/ai/tools/xale_add_mindmap_nodes), [`xale_save_meeting`](https://xale.app/docs/ai/tools/xale_save_meeting), [`xale_save_link`](https://xale.app/docs/ai/tools/xale_save_link), [`xale_create_task`](https://xale.app/docs/ai/tools/xale_create_task), [`xale_create_project`](https://xale.app/docs/ai/tools/xale_create_project), [`xale_create_habit`](https://xale.app/docs/ai/tools/xale_create_habit), [`xale_record_entry`](https://xale.app/docs/ai/tools/xale_record_entry), [`xale_create_milestone`](https://xale.app/docs/ai/tools/xale_create_milestone), [`xale_add_area`](https://xale.app/docs/ai/tools/xale_add_area), [`xale_add_person`](https://xale.app/docs/ai/tools/xale_add_person), [`xale_create_people_group`](https://xale.app/docs/ai/tools/xale_create_people_group), [`xale_save_my_instructions`](https://xale.app/docs/ai/tools/xale_save_my_instructions).

## What comes back

| The text says | What it means | What to do |
| --- | --- | --- |
| A normal result with `"alreadySaved": true` beside `notice` | This id already saved this item. This is its first result. | Nothing to do: use the id in `data` (`mapId` for a Mindmap). Don't create it again. |
| “This call is still being made. Wait a few seconds, then send the same requestId again.” | The first call with this id is still running. | Wait, then send the same call with the same id. |
| “This requestId was already used for different content with xale_…. Use a new requestId for each new item.” | You reused an id for something else. | Make a new id. |
| “The outcome of the earlier call with this requestId is unknown. Check with a read tool before trying again; if it is not there, send it again with a new requestId. (Xale remembers a requestId for 7 days.)” | An earlier call with this id may have saved it. | Read first. Only if it isn't there, send it with a **new** id. |
| “Xale couldn't confirm that this finished (ref …). Check with a read tool before trying again, and use a new requestId if you do.” | This call may have saved it. | The same: read first, then a new id if needed. |

A refusal (a tool's own sentence, or invalid arguments) saved nothing and frees the id: fix the call and send it again with the same id.

A replayed result is shown only while everything it names can still be seen. If the item has since moved into a kept-away Area or to Trash, the replay answers “Nothing with that id is available in this Xale.”

## A create with Tasks and Habits

Use one `requestId` for the parent and the children approved in that call. Resend the same arguments and ID when retrying that call. A replay returns the original parent and any `taskIds` and `habitIds` with `alreadySaved: true`. A changed child list is different content. If the outcome is uncertain, check with reads before sending a new ID.

## Other ways to retry safely

- [`xale_begin_run`](https://xale.app/docs/ai/tools/xale_begin_run) takes its own `beginKey` (8 to 64 letters, digits, `-` or `_`): the same key gives the same run back.
- Removals use a `removalId` from [`xale_prepare_removal`](https://xale.app/docs/ai/tools/xale_prepare_removal). It's confirmed once, within 30 minutes.
- Suggestions use a `proposalId`. [`xale_accept_proposal`](https://xale.app/docs/ai/tools/xale_accept_proposal) keeps one record per suggestion, so accepting twice creates nothing more.
- Tools that change or tick things take no `requestId`. Many are safe to repeat (ticking a done row, completing a done Habit), but read before you resend one whose outcome was uncertain.

## Related

- Tools: [xale_plan_block](https://xale.app/docs/ai/tools/xale_plan_block)
- Tools: [xale_save_note](https://xale.app/docs/ai/tools/xale_save_note)
- Read next: [Tool errors · shared shapes](https://xale.app/docs/ai/tool-errors-shared-shapes)
- Read next: [Undo-friendly writes · small steps](https://xale.app/docs/ai/undo-friendly-writes-small-steps)
- Read next: [Partial saves · what to tell people](https://xale.app/docs/ai/partial-saves-what-to-tell-people)
