# A proposal from the project's writing model for a passage

`POST /cms/assist` · Rivier · content

A proposal from the project's writing model for a passage: a draft, a rewrite, a shorter or longer version, a tone, a summary, a search description, alt text or a translation. Nothing is saved; the result is marked as machine-written.

- Scope: content:write
- Sdk: content.entry.assist
- Cli: content entry assist

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "task": {
      "type": "string",
      "enum": [
        "draft",
        "rewrite",
        "shorter",
        "longer",
        "tone",
        "summary",
        "seo",
        "alt",
        "translate"
      ]
    },
    "text": {
      "type": "string",
      "maxLength": 12000,
      "default": ""
    },
    "instruction": {
      "type": "string",
      "maxLength": 500
    },
    "tone": {
      "type": "string",
      "enum": [
        "plain",
        "warm",
        "formal",
        "playful",
        "confident"
      ]
    },
    "language": {
      "type": "string",
      "maxLength": 20
    }
  },
  "required": [
    "task"
  ],
  "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/cms/assist' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "task": "draft"
}'
```
