Skip to main content
At any point during a journey, you can check the overall journey status and results. For Hosted journeys, your backend polls this endpoint to detect when the end user has completed the verification experience on the hosted pages.

What you need

Before sending the request, make sure you have:

Fetch journey state

Send a POST request to the /journey/state/fetch endpoint:
BASH

Request body fields

Journey pending response:

If the end user has not yet completed the hosted journey, the response contains:
JSON

Journey completed response:

Once the end user completes the hosted journey:
JSON

Response fields

Journey lifecycle states

Polling for completion

Poll the state fetch endpoint at regular intervals until the journey completes:
  • Begin polling after sharing the instanceUrl with the end user.
  • Stop polling when status changes to Completed or Failed.

Using webhooks as an alternative

Instead of polling, you can configure webhooks to receive real-time notifications when a journey completes or fails. This eliminates the need for repeated API calls and allows your backend to react immediately to status changes. To set up webhooks, refer to the Webhook module guide.

Best practices

  • Do not share your access token with the frontend. All polling should be done from your backend server.
  • Handle the Failed status gracefully. Inspect the response for error details and determine whether the journey should be retried or escalated.