# Reply to the customer on the conversation's channel as the agent it is with

`POST /contact-centre/conversations/{id}/reply` · Rivier · inbox

Reply to the customer on the conversation's channel as the agent it is with: a mail, a text, a WhatsApp message (a template when the 24-hour window is closed), a requested call back, or a web chat message. Each goes through the channel's own checks, consent and plan allowance, and is refused with the reason and the next step.

- Scope: inbox:write
- Mcp: rivier_cc_reply
- Graphql: Mutation.inboxContactCentreReplyCreate
- Sdk: desk.conversations.reply
- Cli: desk reply

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "agentId": {
      "type": "string",
      "format": "uuid"
    },
    "text": {
      "type": "string",
      "maxLength": 4000,
      "default": "",
      "description": "What to send. For a WhatsApp template the text may be empty: the template is filled in"
    },
    "templateId": {
      "type": "string",
      "maxLength": 100,
      "description": "A WhatsApp template, required when the 24-hour window is closed"
    },
    "variables": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 500
      },
      "propertyNames": {
        "maxLength": 40
      },
      "description": "Values for the template's placeholders, keyed 1, 2 and so on"
    },
    "purpose": {
      "type": "string",
      "enum": [
        "service",
        "marketing"
      ],
      "description": "Marketing needs the person's recorded agreement and waits out quiet hours"
    }
  },
  "required": [
    "agentId"
  ],
  "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/contact-centre/conversations/{id}/reply' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "agentId": "string"
}'
```
