# Draft an email or text campaign for a plan in the project's voice

`POST /crm/marketing/plans/{id}/campaign-draft` · Rivier · contacts

Draft an email or text campaign for a plan in the project's voice; it is an ordinary draft campaign that a person reviews and approves.

- Scope: contacts:write
- Graphql: Mutation.contactsMarketingCampaignDraft
- Sdk: contacts.marketing.campaignDraft
- Cli: contacts marketing campaign draft

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 5,
      "maxLength": 1200
    },
    "name": {
      "type": "string",
      "maxLength": 160
    },
    "scheduledFor": {
      "type": "string",
      "maxLength": 40
    },
    "reason": {
      "type": "string",
      "maxLength": 300
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "sms"
      ],
      "default": "email"
    }
  },
  "required": [
    "brief"
  ],
  "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/crm/marketing/plans/{id}/campaign-draft' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "brief": "string"
}'
```
