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

# Clarifications

> Handle structured clarification forms when Aurora needs details from the end user.

Before placing real phone calls, Aurora verifies that your objective contains enough information to hold a productive conversation (for example, preferred dates, party size, budget, or vehicle model).

If required details are missing, the request enters `needs_input` status, populates `pending_form`, and emits a `request.needs_input` webhook.

## Form Schema Format

`pending_form` follows the flat **MCP Elicitation** JSON Schema subset (at most 4 fields, flat primitives and enums — no nested objects or `$ref`):

```json theme={null}
{
  "form_id": "frm_dentist_1",
  "message": "Which date and time window work best for your cleaning?",
  "requested_schema": {
    "type": "object",
    "properties": {
      "preferred_date": {
        "type": "string",
        "format": "date",
        "title": "Preferred Date"
      },
      "time_window": {
        "type": "string",
        "title": "Time Window",
        "enum": ["morning", "afternoon", "anytime"]
      }
    },
    "required": ["preferred_date", "time_window"]
  },
  "created_at": "2026-12-01T15:00:05Z"
}
```

## Submitting Answers

Submit user answers to `POST /api/v1/requests/{request_id}/responses`:

```bash theme={null}
curl -X POST https://live.sdk.aurorax.co/api/v1/requests/req_7c1d9e0f2a4b4c6d8e0f1a2b/responses \
  -H "Authorization: Bearer $AURORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "form_id": "frm_dentist_1",
    "answers": {
      "preferred_date": "2026-12-15",
      "time_window": "morning"
    }
  }'
```

* **Validation (`422`):** Answers are validated strictly against `pending_form.requested_schema` (types, required keys, enum values, ISO dates). Invalid submissions leave `pending_form` intact so you can correct and resubmit.
* **Stale form guard:** Passing `form_id` ensures answers apply to the exact pending form shown to the user.
* **Hard lock (`409`):** Once Aurora submits the outreach campaign (`status: "in_progress"` or terminal), answers are permanently locked and further `POST /responses` calls return `409 Conflict`.
* **Audit trail:** Every asked form and submitted answer set is retained in `clarifications[]` on `GET /api/v1/requests/{request_id}`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.