Redirecting After 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=<your inquiry ID starting with inq_>&reference-id=12345
. For more detail on retrieving inquiries with the inquiry-id
, see /api/v1/inquiries/.
redirect-uri
supports custom schemes such as mobile intents.
If you have configured 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.
Redirect query parameters
When redirecting, Persona will specify the following query parameters.