# Support Assistant webhooks

Get notified when the Support Assistant answers your question, instead of polling.

Ask with [Ask a support question](/support-assistant/ask-support-question), then receive the answer here. [How the Support Assistant works](/support-assistant).

## Events

| Event | Description |
| --- | --- |
| [`support.run.completed`](/webhooks/support-assistant/support-run-completed) | A run finished with an answer or a human handoff |
| [`support.run.failed`](/webhooks/support-assistant/support-run-failed) | A run failed or expired, not billed |

## How it behaves

<Accordions>
<Accordion title="One event per run" id="one-event-per-run">

Each run fires exactly one event at its final status: `completed` and `needs_human` fire `support.run.completed`, `failed` fires `support.run.failed`.

If a delivery is missed, [Get a support answer](/support-assistant/get-support-answer) returns the same object.

</Accordion>
<Accordion title="The payload is the run" id="the-payload-is-the-run">

Next to `id` (the dedupe key), `event` and `timestamp`, `run` is exactly what [Get a support answer](/support-assistant/get-support-answer) returns, minus `pollAfterSeconds`.

`costUsd` is the amount billed (most questions cost $0.10 to $0.50; see [pricing](/pricing/support-assistant)).

</Accordion>
<Accordion title="Delivered only to unscoped endpoints" id="delivered-only-to-unscoped-endpoints">

An answer can quote anything Ana read across your team, so endpoints scoped to profiles or accounts never receive these events.

They belong to the `messages` resource group, so a restricted API key without `messages` cannot subscribe.

</Accordion>
</Accordions>

## Related

- [Webhooks](/webhooks): create an endpoint, retries, signatures.
- [Ask a support question](/support-assistant/ask-support-question): ask Ana a question.
- [Get a support answer](/support-assistant/get-support-answer): read the answer, the fallback if a delivery is missed.