Once you have an access token, you can start a journey instance. This creates a new execution of the published journey and returns anDocumentation Index
Fetch the complete documentation index at: https://docs.go.gbgplc.com/llms.txt
Use this file to discover all available pages before exploring further.
instanceId that you use in all subsequent API calls.
Before you start a journey
Before sending the request, make sure you have:- Published hosted journey: A published hosted journey in preview or production environment. You need the journey’s resource ID and version to start a journey instance.
- Access token: obtained in Step 1: Authenticate for API authentication.
- Journey Resource ID: Specific journey Resource ID. Click Dashboard in the GBG GO platform to find the Resource ID for your published journey.
- Journey version: Specific journey version number. Click Dashboard in the GBG GO platform to find the version number for your published journey.
Choose how to start the journey
There are two execution modes:| Mode | Description |
|---|---|
| Partial prefill mode | You supply domain elements you already have upfront in the context.subject object when starting the journey. The remaining domain elements are collected from the end user through the hosted journey page. |
| Non-prefill mode | You start the journey with an empty subject object. All required data is collected from the end user through the hosted journey page. |
Start a journey (non-prefill mode)
If you are not including any user data, send an emptysubject object along with the delivery configuration:
BASH
What happens
- A journey instance is created.
- The response includes an
instanceIdandinstanceUrlthat you use in subsequent steps. - All required domain elements are collected from the end user through the hosted journey page.
Start a journey (partial prefill mode)
If you already have customer data that you don’t want to ask the end user for again through the hosted journey, you can supply it upfront when starting the journey. To do this, remove those domain elements from the Interaction Group panel in the journey builder. This moves the domain elements to the start interaction, which means they can be supplied through partial prefill in thecontext.subject object when you start the journey.
For example, if your journey collects the customer’s full name and date of birth, and you already have it, remove FullName and DateOfBirth from the interaction group.


FullName and DateOfBirth can be prefilled.
You can include it in the context.subject object instead. For example:
BASH
The structure of the
context.subject object must follow the domain element schema paths configured for your journey. Always check the schema before sending data. Providing data in the wrong structure results in validation errors or incomplete journeys. To check the required fields and structure for your journey, navigate to Dashboard in the GBG GO platform, click the Actions list for your journey, and click View schema. This shows the expected data structure for the subject object.What happens
- A journey instance is created with the prefilled data applied.
- Domain elements that match the prefilled data may already be satisfied, so the end user won’t be asked for them again on the hosted journey page.
- Any remaining required domain elements are collected from the end user through the hosted journey page.
Request body fields
| Field | Required | Description |
|---|---|---|
resourceId | Yes | The unique identifier for the published journey, in the format {hash}@{version}. |
context.config.delivery | Yes | The delivery mode. Set to "page" for hosted journeys. |
context.subject | Yes | An empty object {} for non-prefill mode, or structured identity data for partial prefill mode. |
Successful response
If your request is successful, the API returns a201 Created response:
JSON
Response fields
| Field | Description |
|---|---|
instanceId | Unique identifier for this journey instance. Use this in all subsequent calls. |
instanceUrl | The URL path for the hosted journey page. |
status | Indicates the result of the start request. |
message | Human-readable confirmation message. |
Hosted journey sessions are single-use and cannot be resumed. If the end user closes or leaves the hosted journey page, the session cannot be continued. The session URL is also valid for a limited time. If the session expires or is abandoned, then start a new journey instance to generate a fresh URL.
Best practices
- Always confirm that the journey has been published before attempting to start it.
- Use the exact
resourceIdfor your target environment. Resource IDs differ between staging and production. - For partial prefill mode, always retrieve and validate against the schema before sending data. Incorrect data structures result in validation errors.