This quickstart guides you through your first API-first integration with GBG GO. Authenticate, start a journey, fetch the first interaction, submit data, and poll for completion.Documentation 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.
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.
- API credentials provided by your GBG account manager:
client_id: Your unique API client identifier.client_secret: Your secret key for API authentication.username: Your API username.password: Your API password.
- Your password reset from the temporary one provided at account creation.
- A tool capable of making HTTP requests, for example, curl or Postman.
API 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
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:
| Status | Meaning |
|---|---|
InProgress | The journey is still active. Retrieve remaining tasks. |
Completed | The journey is done. No further action is needed. |
Failed | The journey encountered an error. Review previous steps or retry. |
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.