# Send a draft after an undo window of up to 30 seconds

`POST /workspace/inbox/drafts/{id}/send` · Rivier · inbox

Send a draft after an undo window of up to 30 seconds. Warns when someone else is replying or has answered since; force sends anyway. In test mode only the project's test addresses receive it.

- Scope: inbox:write
- Graphql: Mutation.inboxDraftSend
- Sdk: inbox.draft.send
- Cli: inbox draft send

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "undoSeconds": {
      "type": "integer",
      "minimum": 0,
      "maximum": 30
    },
    "force": {
      "type": "boolean"
    },
    "then": {
      "type": "string",
      "enum": [
        "waiting",
        "done",
        "keep"
      ]
    }
  },
  "additionalProperties": false
}
```

## Responses

- `202`: 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/drafts/{id}/send' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "undoSeconds": 0,
  "force": false,
  "then": "waiting"
}'
```
