> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.withpersona.com/2021-05-14/hosted-flow-redirecting-on-complete/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.withpersona.com/_mcp/server. # Redirecting After Inquiry > Redirect users to an allowed URL after they complete a Hosted Flow Inquiry. Set the `redirect-uri` query parameter of the hosted flow link to your URL for processing responses from Persona. When the hosted flow completes, it will redirect to your URL with an `inquiry-id` query parameter. `redirect-uri` can also be set at the template level. Your server should optionally expect a `reference-id` GET parameter if you provided one when starting the flow. For example, if your URL is `http://withpersona.com/fake-path` then you can expect the hosted flow to redirect to `http://withpersona.com/fake-path?inquiry-id=&reference-id=12345`. For more detail on retrieving inquiries with the `inquiry-id`, see [/api/v1/inquiries/](/api-reference/inquiries/retrieve-an-inquiry). `redirect-uri` supports custom schemes such as mobile intents. If you have configured [Allowed Domains](/hosted-flow-security#allowed-domains), your `redirect-uri`'s domain must be a permitted domain. ## Query parameters Specify the following parameters when creating the inquiry to redirect on completion. | Parameter | Optional | Description | | -------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `redirect-uri` | Optional | Once the inquiry enters either the `Completed` or `Failed` status, we redirect the user back to this URL. The callback should expect a GET parameter named `inquiry-id` that references the inquiry. | | `reference-id` | Optional | You can generate and provide a unique id which we will associate with the inquiry. The identifier can be used to monitor user progress in newly created inquiries. | ## Redirect query parameters When redirecting, Persona will specify the following query parameters. | Parameter | Nullable | | | -------------- | -------- | ----------------------------------------------------------------------------- | | `inquiry-id` | | ID of the inquiry. | | `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. | > Redirect users to an allowed URL after they complete a Hosted Flow Inquiry.