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

# Quickstart

> Launch your first Aurora request, poll for progress, and inspect results in under 5 minutes.

**1. Create a Project and API Key**

Sign in to the [Aurora SDK Developer Portal](https://live.sdk.aurorax.co), complete workspace activation, open a project, and generate a project API key (`ask_...`). Copy the secret immediately — it is shown only once.

**2. Create a Request**

Send a `POST /api/v1/requests` call with a clear `objective` and the end user's `user_details`.

```bash cURL theme={null}
curl -X POST https://live.sdk.aurorax.co/api/v1/requests \
  -H "Authorization: Bearer $AURORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "objective": "Find a set of four 235/65R17 winter (snow) tires for a 2026 Hyundai Tucson near Endicott, NY (13760) for local pickup only (tires only, no mounting or installation). Prefer good used tires, or new if a genuine bargain; check stock and report set-of-four price, brand/model, and tread depth.",
    "user_details": {
      "full_name": "Alex Rivera",
      "phone_number": "+16075550188"
    }
  }'
```

```python Python theme={null}
import os
import httpx

resp = httpx.post(
    "https://live.sdk.aurorax.co/api/v1/requests",
    headers={"Authorization": f"Bearer {os.environ['AURORA_API_KEY']}"},
    json={
        "objective": (
            "Find a set of four 235/65R17 winter (snow) tires for a 2026 Hyundai Tucson "
            "near Endicott, NY (13760) for local pickup only (tires only, no mounting or "
            "installation). Prefer good used tires, or new if a genuine bargain; check "
            "stock and report set-of-four price, brand/model, and tread depth."
        ),
        "user_details": {
            "full_name": "Alex Rivera",
            "phone_number": "+16075550188",
        },
    },
    timeout=30.0,
)
resp.raise_for_status()
data = resp.json()
request_id = data["request_id"]
print(request_id, data["status"])
```

```typescript TypeScript theme={null}
const resp = await fetch("https://live.sdk.aurorax.co/api/v1/requests", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AURORA_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    objective:
      "Find a set of four 235/65R17 winter (snow) tires for a 2026 Hyundai Tucson near Endicott, NY (13760) for local pickup only (tires only, no mounting or installation). Prefer good used tires, or new if a genuine bargain; check stock and report set-of-four price, brand/model, and tread depth.",
    user_details: {
      full_name: "Alex Rivera",
      phone_number: "+16075550188",
    },
  }),
});
const data = await resp.json();
const requestId = data.request_id;
console.log(requestId, data.status);
```

The API responds immediately with `202 Accepted` (response examples below highlight key fields — see the [API Reference](https://docs.live.sdk.aurorax.co/api-reference/introduction.md) for full schemas):

```json theme={null}
{
  "request_id": "req_7c1d9e0f2a4b4c6d8e0f1a2b",
  "status": "processing"
}
```

**3. Handle Clarifications (If Needed)**

Right after creation (while `status` is `processing`), Aurora checks whether it has enough detail before calling businesses. If anything is missing, `GET /api/v1/requests/{request_id}` returns `status: "needs_input"` with a `pending_form` JSON Schema:

```json theme={null}
{
  "request_id": "req_7c1d9e0f2a4b4c6d8e0f1a2b",
  "status": "needs_input",
  "pending_form": {
    "form_id": "frm_tires_1",
    "message": "A couple of quick details before we start calling local tire shops:",
    "requested_schema": {
      "type": "object",
      "properties": {
        "condition_preference": {
          "type": "string",
          "title": "Tire Condition",
          "enum": ["used_preferred", "new_only", "either"]
        },
        "include_mounting": {
          "type": "boolean",
          "title": "Include mounting and balancing?"
        }
      },
      "required": ["condition_preference", "include_mounting"]
    }
  }
}
```

Collect the user's answers and submit them to `POST /api/v1/requests/{request_id}/responses` (returns `202 Accepted` with `status: "processing"`). Once Aurora has everything it needs, the request transitions to `in_progress` and starts calling businesses:

```bash cURL theme={null}
curl -X POST https://live.sdk.aurorax.co/api/v1/requests/$REQUEST_ID/responses \
  -H "Authorization: Bearer $AURORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "form_id": "frm_tires_1",
    "answers": {
      "condition_preference": "used_preferred",
      "include_mounting": false
    }
  }'
```

See [Clarifications](https://docs.live.sdk.aurorax.co/guides/clarifications.md) for validation and multi-turn behavior.

**4. Poll for Request Status**

Poll `GET /api/v1/requests/{request_id}` every 10–15 seconds until `status` reaches a terminal state (`completed`, `failed`, or `cancelled`), answering `pending_form` (Step 3) if it pauses at `needs_input`.

> [!NOTE]
>
> In production, prefer [signed webhooks](https://docs.live.sdk.aurorax.co/guides/webhooks.md) over polling. Configure a default webhook URL in Project Settings or pass `webhook_uri` on request creation to receive real-time events (`request.needs_input`, `request.call.updated`, `request.result.created`, `request.result.updated`, `request.completed`).

```bash cURL theme={null}
curl https://live.sdk.aurorax.co/api/v1/requests/$REQUEST_ID \
  -H "Authorization: Bearer $AURORA_API_KEY"
```

```python Python theme={null}
import os
import time
import httpx

headers = {"Authorization": f"Bearer {os.environ['AURORA_API_KEY']}"}

while True:
    resp = httpx.get(
        f"https://live.sdk.aurorax.co/api/v1/requests/{request_id}",
        headers=headers,
        timeout=30.0,
    )
    resp.raise_for_status()
    detail = resp.json()
    status = detail["status"]
    print(f"status={status} calls={len(detail['calls'])} results={len(detail['results'])}")

    if status == "needs_input":
        # Present detail["pending_form"] to the end user and submit answers (Step 3).
        break
    if status in {"completed", "failed", "cancelled"}:
        break

    time.sleep(10)
```

```typescript TypeScript theme={null}
const headers = { Authorization: `Bearer ${process.env.AURORA_API_KEY}` };

while (true) {
  const resp = await fetch(
    `https://live.sdk.aurorax.co/api/v1/requests/${requestId}`,
    { headers },
  );
  const detail = await resp.json();
  console.log(
    `status=${detail.status} calls=${detail.calls.length} results=${detail.results.length}`,
  );

  if (detail.status === "needs_input") {
    // Present detail.pending_form to the end user and submit answers (Step 3).
    break;
  }
  if (["completed", "failed", "cancelled"].includes(detail.status)) {
    break;
  }

  await new Promise((resolve) => setTimeout(resolve, 10_000));
}
```

While calls are running, `status` is `in_progress` and `calls[]` and `results[]` populate incrementally:

```json theme={null}
{
  "request_id": "req_7c1d9e0f2a4b4c6d8e0f1a2b",
  "status": "in_progress",
  "calls": [
    {
      "id": "01M8SH3KECXPQ53DC47XMWEX95",
      "target_name": "Big E Tire & Auto Service",
      "status": "completed",
      "duration_seconds": 168.5,
      "summary": "Confirmed multiple sets of new 235/65R17 Hankook iPike winter tires in stock (no used tires). Cheapest set of four is $659 out the door including tax, 10-12/32 inch tread, pickup only.",
      "has_transcript": true,
      "has_recording": true
    },
    {
      "id": "01M8SH3QT5YB4T2F6ZJYDRXD5N",
      "target_name": "Matthews Chevrolet",
      "status": "connected"
    }
  ],
  "results": []
}
```

**5. Inspect Completed Results, Transcripts, and Recordings**

Once `status` becomes `completed`, `GET /api/v1/requests/{request_id}` returns `overall_summary`, ranked `results[]`, and `calls[]`:

```json theme={null}
{
  "request_id": "req_7c1d9e0f2a4b4c6d8e0f1a2b",
  "status": "completed",
  "overall_summary": "Completed with 2 ranked results. Top match: Big E Tire & Auto Service — AI SUMMARY - 95% MATCH.",
  "results": [
    {
      "target_name": "Big E Tire & Auto Service",
      "phone_number": "+16075550142",
      "address": "2295 Vestal Pkwy E, Vestal, NY 13850",
      "match_percentage": 95,
      "details": {
        "price_text": "$659",
        "price_subtext": "out the door",
        "ai_analysis": [
          { "id": "winter_tire_sku", "analysis_type": "good", "text": "235/65R17 winter tires" },
          { "id": "brand_and_model_disclosed", "analysis_type": "good", "text": "Hankook iPikes" },
          { "id": "condition_tread_depth", "analysis_type": "good", "text": "10-12/32 inch" },
          { "id": "used_vs_new_preference", "analysis_type": "neutral", "text": "New bargain option" }
        ]
      }
    },
    {
      "target_name": "Matthews Chevrolet",
      "phone_number": "+16075550198",
      "address": "3733 Vestal Rd, Vestal, NY 13850",
      "match_percentage": 95,
      "details": {
        "price_text": "$190.99 per tire",
        "price_subtext": "per tire",
        "ai_analysis": [
          { "id": "winter_tire_sku", "analysis_type": "good", "text": "Exact winter tires" },
          { "id": "brand_and_model_disclosed", "analysis_type": "good", "text": "Firestone Winter Force" },
          { "id": "condition_tread_depth", "analysis_type": "good", "text": "New, 12/32-inch tread" },
          { "id": "pickup_only_fulfillment", "analysis_type": "good", "text": "Pickup in 2-3 days" }
        ]
      }
    }
  ],
  "calls": [
    {
      "id": "01M8SH3KECXPQ53DC47XMWEX95",
      "target_name": "Big E Tire & Auto Service",
      "status": "completed",
      "duration_seconds": 168.5,
      "summary": "Confirmed multiple sets of new 235/65R17 Hankook iPike winter tires in stock (no used tires). Cheapest set of four is $659 out the door including tax, 10-12/32 inch tread, pickup only.",
      "has_transcript": true,
      "has_recording": true
    },
    {
      "id": "01M8SH3QT5YB4T2F6ZJYDRXD5N",
      "target_name": "Matthews Chevrolet",
      "status": "completed",
      "duration_seconds": 385.2,
      "summary": "Confirmed no used tires available. Quoted new Firestone Winter Force 2 UV (235/65R17, 12/32-inch tread) at $190.99 per tire ($763.96 for four, tires only), pickup in 2-3 days.",
      "has_transcript": true,
      "has_recording": true
    }
  ]
}
```

For any call where `has_transcript` or `has_recording` is `true`, fetch the transcript via `GET /api/v1/requests/{request_id}/calls/{call_id}/transcript` or stream the MP3 audio via `GET /api/v1/requests/{request_id}/calls/{call_id}/recording`. See [Results, Transcripts & Recordings](https://docs.live.sdk.aurorax.co/guides/results-and-recordings.md) and the [API Reference](https://docs.live.sdk.aurorax.co/api-reference/introduction.md).

> [!NOTE]
>
> Integrating an AI agent instead of a backend service? Skip custom polling and connect directly to the [Aurora MCP Server](https://docs.live.sdk.aurorax.co/mcp/overview.md) using the same API key.


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