# Start a conversation with the assistant

`POST /agents/assistant/threads` · Rivier · agents

Start a conversation with the assistant: a titled thread for a goal, kept as a record.

- Scope: agents:write
- Sdk: agents.assistant.threadCreate
- Cli: agents assistant thread create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "goal": {
      "type": "string",
      "maxLength": 300
    },
    "surface": {
      "type": "string",
      "enum": [
        "ask",
        "advisor"
      ],
      "description": "Which screen the conversation belongs to; default ask"
    }
  },
  "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/agents/assistant/threads' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "title": "string",
  "goal": "string",
  "surface": "ask"
}'
```
