# Draft a social post, a page block or a business-profile post for a plan

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

Draft a social post, a page block or a business-profile post for a plan; kept as a marked AI draft, published by a person.

- Scope: contacts:write
- Graphql: Mutation.contactsMarketingContentDraft
- Sdk: contacts.marketing.contentDraft
- Cli: contacts marketing content 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": [
        "social",
        "page",
        "gbp"
      ]
    }
  },
  "required": [
    "brief",
    "channel"
  ],
  "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}/content-draft' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "brief": "string",
  "channel": "social"
}'
```
