Before you start
Before running this quickstart, make sure you have:- A published journey with the journey resource ID and version number copied from the GBG GO dashboard.
-
An API client created in the Account management portal, which provides the credentials you use to authenticate:
client_id: Your unique API client identifier.client_secret: Your secret key for API authentication.
- A tool capable of making HTTP requests, for example, curl or Postman.
API client credentials are different from your GBG GO platform login. They are specifically for programmatic access.
Step 1: Set up your journey
Before making API calls, you need a published journey with the Age Verification module. Follow the steps in Option 2: Create a journey from scratch of the Platform quickstart to add the Age Verification module to your journey and publish it. Once your journey is published to preview, copy the Resource ID and version from the Dashboard. You need these to start the journey through the API.Step 2: Authenticate
Send aPOST request to get your Bearer token:
cURL
JSON
Authorization header.
Step 3: Start a journey
Use your access token, journey resource ID and version to start a journey instance. Setcontext.config.delivery to "api" for API-first journeys.
Non-prefill mode
Start with an emptysubject. The end user provides all data through interactions:
cURL
The
@5z6bj7o suffix in the resource ID represents the journey version. Replace it with your specific version for production integrations. Using @latest can introduce a small delay in processing. Usually less than 10 seconds.Partial pre-fill mode
If you already have some user data, include it incontext.subject. Remove the corresponding domain elements from the Interaction Group panel so the journey doesn’t collect them again:
cURL
instanceId:
JSON
Step 4: Fetch the interaction
Poll/journey/interaction/fetch to retrieve the current interaction and discover what data the end user must provide:
cURL
JSON
Response field reference
Response field reference
Refs that contain a slash, for example,
FullName/firstName and MobilePhone/number, are granular domain elements. They request a specific component of a larger domain element instead of the whole thing. Use the spec field to see which components are required versus optional.If no
interactionId is returned yet, the platform is still processing. Keep polling until an interactionId appears or journey.status changes from InProgress.Step 5: Submit interaction data
Once you’ve collected data from the end user, submit it using theinteractionId from the fetch response:
cURL
JSON
/journey/interaction/fetch again to get the next interaction or check if the journey is complete.
Step 6: Fetch journey state
Once all interactions are submitted, poll/journey/state/fetch to detect completion and retrieve verification results:
cURL
status is no longer InProgress:
JSON
status field, take appropriate actions:
Next steps
- API usage guides: detailed step-by-step reference for each API call.
- API reference: complete request and response definitions.
- Error handling: how to diagnose and resolve API errors.
- Investigate overview: review customer session results and submitted data in the GBG GO dashboard.