# Have a model write the copy for a brief

`POST /crm/campaigns/{id}/draft-copy` · Rivier · campaigns

Have a model write the copy for a brief; it lands as an AI-written draft for review.

- Scope: campaigns:write
- Graphql: Mutation.campaignsCampaignDraft
- Sdk: campaigns.campaign.draft
- Cli: campaigns campaign draft

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 5,
      "maxLength": 2000
    },
    "tone": {
      "type": "string",
      "maxLength": 100
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}
```

## 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/crm/campaigns/{id}/draft-copy' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "brief": "string"
}'
```
