Inquiries may need to be resumed in several situations:
Persona provides two ways to access Inquiries that are in progress:
While pending Inquiries can also be accessed by including a session token in the Inquiry link URL, one-time links present the following benefits:
One-time links have the following downsides:
If you are using a browser-based integration, you can generate a one-time link that will allow the end user to access the Inquiry.
Call /api/v1/inquiries/<inquiry-id>/generate-one-time-link to receive a one-time link. Within the response, the one-time link can be found within the response’s meta object. This link will expire after a set time period (24 hours by default) if not used.
Then, send the one-time link to the end user.
If the Inquiry is expired, or if you use a non-browser-based integration, you will need to create a new session token and use that to access the Inquiry.
Call /api/v1/inquiries/<inquiry-id>/resume to receive a session token. Within the response, the session token can be found as session-token within the response’s meta object. This token will expire after a set time period (24 hours by default) if it is not used.
Boot up the flow using both the Inquiry ID and session token as parameters.
Add the inquiryId and the sessionToken as an input to the builder:
Append the inquiryId with the sessionToken to the end of the hosted flow URL: &inquiry-id=<inquiry id>&session-token=<session token>
When possible, we recommend resuming pending Inquiries rather than creating a brand new Inquiry when handling returning users. If your user has already completed part of the Inquiry, resuming the Inquiry will allow them to pick up where they left off, which improves the user experience and reduces data duplication.
Note that resuming Inquiries on older versions of a template can lead to unexpected results. Inquiries are pinned to the current state of their template when created, and any updates made to the template between when the Inquiry was created and when it was resumed will not be reflected in the resumed Inquiry. If the latest published version of the Inquiry’s template has changed, we recommend creating a new Inquiry instead of resuming the pending Inquiry, to ensure that the most up-to-date configuration is used.
To check if an Inquiry is on the latest template version, examine the inquiry-template object within the included array in the Inquiry API response. The inquiry-template object in the response will contain the ID of the latest published template version under the field latest-published-version.id. If this ID differs from the inquiry-template-version-id on the Inquiry, then the Inquiry is not on the latest template version.
For additional guidance, learn more at our Help Center