# Take back a message still inside its undo window; it returns as a draft

`POST /workspace/inbox/outbox/{id}/undo` · Rivier · inbox

Take back a message still inside its undo window; it returns as a draft.

- Scope: inbox:write
- Graphql: Mutation.inboxOutboxUndo
- Sdk: inbox.outbox.undo
- Cli: inbox outbox undo

## Parameters

- `id` (path, required), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/workspace/inbox/outbox/{id}/undo' \
  -H 'Authorization: Bearer $KEY'
```
