# Inbox draft create

`POST /workspace/inbox/drafts` · Rivier · inbox

Start a reply, a reply to all, a forward or a new message, with recipients, subject and quoted text filled in and the person's signature on. Returns the live draft if there already is one.

- Scope: inbox:write
- Mcp: rivier_mail_draft
- Graphql: Mutation.inboxDraftCreate
- Sdk: inbox.draft.create
- Cli: inbox draft create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "threadId": {
      "type": "string",
      "format": "uuid"
    },
    "mode": {
      "type": "string",
      "enum": [
        "new",
        "reply",
        "reply_all",
        "forward"
      ]
    },
    "mailbox": {
      "type": "string",
      "minLength": 3,
      "maxLength": 254
    },
    "to": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3,
        "maxLength": 320
      },
      "maxItems": 50
    },
    "cc": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3,
        "maxLength": 320
      },
      "maxItems": 50
    },
    "bcc": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3,
        "maxLength": 320
      },
      "maxItems": 50
    },
    "subject": {
      "type": "string",
      "maxLength": 300
    },
    "body": {
      "type": "string",
      "maxLength": 100000
    },
    "templateId": {
      "type": "string",
      "format": "uuid"
    },
    "quote": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
```

## Responses

- `201`: 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' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "threadId": "string",
  "mode": "new",
  "mailbox": "string",
  "to": [
    "string"
  ],
  "cc": [
    "string"
  ],
  "bcc": [
    "string"
  ],
  "subject": "string",
  "body": "string"
}'
```
