> ## 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 draft

> Proposed complete config drafted from the supplied material — same shape as the Copilot; review, evaluate, then apply.

### Path parameters

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

### Request body

`object`

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

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

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

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

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

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

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

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

### 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` | Proposed complete config drafted from the supplied material — same shape as the Copilot; review, evaluate, then apply. |
| `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/draft' \
    --header "x-api-key: $STATESET_TEMPORAL_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{
    "brand_voice": "string",
    "policies": "string",
    "macros": "string",
    "sample_tickets": "string",
    "notes": "Two-person tent, green — replacement for damaged pole set.",
    "base_config": {},
    "provider": "string",
    "model": "string"
  }'
  ```
</RequestExample>

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