> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.withpersona.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.withpersona.com/_mcp/server.

# Redirecting On Complete or Cancel

> **Warning**
>
> #### Native SDKs Recommended
>
> We strongly recommend using our native mobile SDKs (Android, iOS) instead of WebView where possible. WebView integrations are more difficult to support due to performance constraints of WebView technology
>
> For more information, see [Native mobile integration vs. WebView](/webview-vs-native-mobile-integration).

When an inquiry has finished (status is either `completed` or `failed`) or has been canceled, the WebView will either redirect to the URI specified in `redirect-uri`, or to `https://personacallback` if nothing was specified. At this point, you can read the `GET` parameters in the response URL.

The parameter value does not need to be a valid browser URL; arbitrary URIs such as mobile app actions or intents are accepted.

## Inquiry finished

The end user will be redirected with the following parameters when the end user presses the complete button in the Success or Failure screens in the Inquiry flow.

| Parameter            | Nullable | Description                                                                   |
| -------------------- | -------- | ----------------------------------------------------------------------------- |
| `persona-inquiry-id` |          | Inquiry ID of the flow.                                                       |
| `inquiry-id`         | Nullable | **Deprecated.** Inquiry ID of the flow. Will only be sent on success.         |
| `reference-id`       | Nullable | If you set a reference ID on the request, it will be on the response.         |
| `status`             |          | Status of the completed inquiry (e.g. `'completed'`, `'failed'`).             |
| `fields`             |          | A map of field types and values. See [Fields](/inquiry-fields) documentation. |

## Inquiry canceled

The end user will be redirected with the following parameters when the end user cancels the Inquiry flow with the 'x' button in the upper right corner.

| Parameter            | Nullable | Description             |
| -------------------- | -------- | ----------------------- |
| `persona-inquiry-id` |          | Inquiry ID of the flow. |