# Add an agent to the desk (a person's seat or an AI agent)

`POST /contact-centre/agents` · Rivier · inbox

Add an agent to the desk (a person's seat or an AI agent).

- Scope: inbox:write
- Graphql: Mutation.inboxContactCentreAgentCreate
- Sdk: desk.agents.create
- Cli: desk agent-add

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "human",
        "ai"
      ],
      "description": "A person's seat or an AI agent's"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "userId": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "description": "The signed-in person this seat belongs to"
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 40
      },
      "maxItems": 30
    },
    "presence": {
      "type": "string",
      "enum": [
        "online",
        "away",
        "offline"
      ]
    },
    "maxConcurrent": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "kind",
    "name"
  ],
  "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/contact-centre/agents' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "kind": "human",
  "name": "string"
}'
```
