# Hand a conversation over

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

Hand a conversation over. To a person: at once, back into the queue. To an AI agent: waits until a person approves.

- Scope: inbox:write
- Mcp: rivier_cc_handoff
- Graphql: Mutation.inboxContactCentreHandoffCreate
- Sdk: desk.conversations.handoff
- Cli: desk handoff

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "agentId": {
      "type": "string",
      "format": "uuid",
      "description": "The seat handing over"
    },
    "to": {
      "type": "string",
      "enum": [
        "human",
        "ai"
      ]
    },
    "reason": {
      "type": "string",
      "maxLength": 300
    },
    "toAgentId": {
      "type": "string",
      "format": "uuid",
      "description": "The AI agent to hand to"
    }
  },
  "required": [
    "agentId",
    "to"
  ],
  "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}/handoff' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "agentId": "string",
  "to": "human"
}'
```
