🚀 Digital ID portal is now live! Check out the overview to get started.
🚀 Digital ID portal is now live! Check out the overview to get started.
Fetch the current interaction in a GBG GO journey to determine which domain elements to collect from the end user.
curl --request POST \
--url https://eu.platform.go.gbgplc.com/v2/captain/journey/interaction/fetch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instanceId": "PiKR2O0IjyUR8KV3RviKt4we"
}
'{
"instanceId": "Pq_hhIX6-sHUy9FLSDzPLu",
"interactionId": "grn:::gbg:design:interaction:segment1@latest",
"journey": {
"status": "InProgress"
},
"interaction": {
"grId": "grn:::gbg:design:interaction:segment1@latest",
"resource": {
"id": "segment1",
"name": "segment1",
"version": "latest",
"type": "interaction",
"data": {
"pages": [
{
"id": "personal_details",
"label": "Personal details",
"cards": [
{
"id": "NameCard"
},
{
"id": "DateOfBirthCard"
},
{
"id": "IdentifierCardSSN"
},
{
"id": "ControlCard"
}
]
},
{
"id": "contact_details",
"label": "Contact details",
"cards": [
{
"id": "EmailCardPersonalEmail"
},
{
"id": "PhoneCardMobilePhone"
},
{
"id": "ControlCard"
}
]
},
{
"id": "address_details",
"label": "Address details",
"cards": [
{
"id": "AddressCard",
"config": {
"secrets": {
"loqateApiKey": {
"value": "WJ28-WP43-WG34-YD87"
}
}
}
},
{
"id": "ControlCard"
}
]
},
{
"id": "previous_addresses",
"label": "Previous Addresses",
"cards": [
{
"id": "PreviousAddressesCard"
},
{
"id": "ControlCard"
}
]
},
{
"id": "document_capture",
"label": "Document Capture",
"cards": [
{
"id": "DocumentCard"
}
]
}
]
}
},
"collects": [
{
"ref": "FullName",
"spec": "required"
},
{
"ref": "DateOfBirth",
"spec": "required"
},
{
"ref": "CurrentAddress",
"spec": "required"
},
{
"ref": "PreviousAddresses",
"spec": "optional"
},
{
"ref": "MobilePhone",
"spec": "optional"
},
{
"ref": "PersonalEmail",
"spec": "optional"
},
{
"ref": "SSN",
"spec": "optional"
},
{
"ref": "PrimaryDocument",
"spec": "required"
}
],
"consumes": []
},
"outstanding": [
"FullName",
"DateOfBirth",
"CurrentAddress",
"PrimaryDocument"
]
}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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Journey instance identifier
Success
Journey instance identifier
Interaction identifier
Current journey state.
Show child attributes
The current interaction definition, including the resource (pages/cards) and data collection requirements.
Show child attributes
List of data element references that are still required but not yet collected.
Was this page helpful?
curl --request POST \
--url https://eu.platform.go.gbgplc.com/v2/captain/journey/interaction/fetch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instanceId": "PiKR2O0IjyUR8KV3RviKt4we"
}
'{
"instanceId": "Pq_hhIX6-sHUy9FLSDzPLu",
"interactionId": "grn:::gbg:design:interaction:segment1@latest",
"journey": {
"status": "InProgress"
},
"interaction": {
"grId": "grn:::gbg:design:interaction:segment1@latest",
"resource": {
"id": "segment1",
"name": "segment1",
"version": "latest",
"type": "interaction",
"data": {
"pages": [
{
"id": "personal_details",
"label": "Personal details",
"cards": [
{
"id": "NameCard"
},
{
"id": "DateOfBirthCard"
},
{
"id": "IdentifierCardSSN"
},
{
"id": "ControlCard"
}
]
},
{
"id": "contact_details",
"label": "Contact details",
"cards": [
{
"id": "EmailCardPersonalEmail"
},
{
"id": "PhoneCardMobilePhone"
},
{
"id": "ControlCard"
}
]
},
{
"id": "address_details",
"label": "Address details",
"cards": [
{
"id": "AddressCard",
"config": {
"secrets": {
"loqateApiKey": {
"value": "WJ28-WP43-WG34-YD87"
}
}
}
},
{
"id": "ControlCard"
}
]
},
{
"id": "previous_addresses",
"label": "Previous Addresses",
"cards": [
{
"id": "PreviousAddressesCard"
},
{
"id": "ControlCard"
}
]
},
{
"id": "document_capture",
"label": "Document Capture",
"cards": [
{
"id": "DocumentCard"
}
]
}
]
}
},
"collects": [
{
"ref": "FullName",
"spec": "required"
},
{
"ref": "DateOfBirth",
"spec": "required"
},
{
"ref": "CurrentAddress",
"spec": "required"
},
{
"ref": "PreviousAddresses",
"spec": "optional"
},
{
"ref": "MobilePhone",
"spec": "optional"
},
{
"ref": "PersonalEmail",
"spec": "optional"
},
{
"ref": "SSN",
"spec": "optional"
},
{
"ref": "PrimaryDocument",
"spec": "required"
}
],
"consumes": []
},
"outstanding": [
"FullName",
"DateOfBirth",
"CurrentAddress",
"PrimaryDocument"
]
}