> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Config assist

> Copilot reply, optionally with a proposed config and its validation summary.

### Path parameters

<ParamField path="brand_id" type="string (uuid)" required />

### Request body

`object`

<ParamField body="messages" type="object[]" required />

<ParamField body="provider" type="string" />

<ParamField body="model" type="string" />

<ParamField body="base_config" type="object" />

### Response

`object`

<ResponseField name="reply" type="string" required />

<ResponseField name="changes" type="string[]" required />

<ResponseField name="changed" type="boolean" required />

<ResponseField name="proposed_config" type="object" />

<ResponseField name="validation" type="object">
  <Expandable title="validation">
    <ResponseField name="valid" type="boolean" required />

    <ResponseField name="errors" type="string[]" required />

    <ResponseField name="warnings" type="string[]" required />
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                                                      |
| ----- | ---------------------------------------------------------------------------- |
| `200` | Copilot reply, optionally with a proposed config and its validation summary. |
| `400` | Validation error                                                             |
| `401` | Unauthorized                                                                 |
| `404` | Not found                                                                    |
| `429` | Rate limited                                                                 |
| `500` | Internal error                                                               |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.workstream.stateset.com/v1/brands/{brand_id}/config/assist' \
    --header "x-api-key: $STATESET_TEMPORAL_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{
    "messages": [
      {
        "role": "string",
        "content": "Two-person tent, green — replacement for damaged pole set."
      }
    ],
    "provider": "string",
    "model": "string",
    "base_config": {}
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "reply": "string",
    "changes": [
      "string"
    ],
    "changed": true,
    "proposed_config": {},
    "validation": {
      "valid": true,
      "errors": [
        "string"
      ],
      "warnings": [
        "string"
      ]
    }
  }
  ```
</ResponseExample>
