{
	"info": {
		"_postman_id": "de540ba8-408f-483f-a5fa-e58dcce3aeb8",
		"name": "API Integration collection | Londonist",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "31303606",
		"_collection_link": "https://trulioo-sc.postman.co/workspace/Trulioo-%2526-Londonist-%257C-API-Colle~d767be79-73d3-47e9-9b95-c0027ae6e249/collection/31303606-de540ba8-408f-483f-a5fa-e58dcce3aeb8?action=share&source=collection_link&creator=31303606"
	},
	"item": [
		{
			"name": "DocV",
			"item": [
				{
					"name": "1. initiatize flow",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://api.workflow.prod.trulioo.com/interpreter-v2/flow/:flowId",
							"protocol": "https",
							"host": [
								"api",
								"workflow",
								"prod",
								"trulioo",
								"com"
							],
							"path": [
								"interpreter-v2",
								"flow",
								":flowId"
							],
							"variable": [
								{
									"key": "flowId",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "1. Submit step",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "x-hf-session",
								"value": "656746702600001c008c6026",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"6571908cfaf5ef4652b9783c\":\"Accept\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api.workflow.prod.trulioo.com/interpreter-v2/submit/:flowId",
							"protocol": "https",
							"host": [
								"api",
								"workflow",
								"prod",
								"trulioo",
								"com"
							],
							"path": [
								"interpreter-v2",
								"submit",
								":flowId"
							],
							"variable": [
								{
									"key": "flowId",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "3. GET profile",
					"request": {
						"auth": {
							"type": "oauth2",
							"oauth2": [
								{
									"key": "scope",
									"value": "workflow.studio.api",
									"type": "string"
								},
								{
									"key": "clientSecret",
									"value": "",
									"type": "string"
								},
								{
									"key": "clientId",
									"value": "",
									"type": "string"
								},
								{
									"key": "addTokenTo",
									"value": "header",
									"type": "string"
								},
								{
									"key": "tokenName",
									"value": "token",
									"type": "string"
								},
								{
									"key": "tokenType",
									"value": "Bearer",
									"type": "string"
								},
								{
									"key": "refresh_token",
									"type": "any"
								},
								{
									"key": "expires_in",
									"value": 1800,
									"type": "number"
								},
								{
									"key": "token_id",
									"value": "ad80177b-e02e-4100-ad62-b0c8ce31805c",
									"type": "string"
								},
								{
									"key": "timestamp",
									"value": 1679324387159,
									"type": "number"
								},
								{
									"key": "client_authentication",
									"value": "body",
									"type": "string"
								},
								{
									"key": "accessTokenUrl",
									"value": "https://auth-api.trulioo.com/connect/token",
									"type": "string"
								},
								{
									"key": "grant_type",
									"value": "client_credentials",
									"type": "string"
								},
								{
									"key": "id",
									"value": "request/909a6d9e-d0da-4a4c-9e2a-716cd417d5df/753b0708-b2d6-44aa-81e7-7cbf0dd673f6",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://api.workflow.prod.trulioo.com/export/v2/query/client/:clientId",
							"protocol": "https",
							"host": [
								"api",
								"workflow",
								"prod",
								"trulioo",
								"com"
							],
							"path": [
								"export",
								"v2",
								"query",
								"client",
								":clientId"
							],
							"variable": [
								{
									"key": "clientId",
									"value": "",
									"description": "x-hf-session"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "4. Authoriation token",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"url": {
							"raw": "https://verification.trulioo.com/authorize",
							"protocol": "https",
							"host": [
								"verification",
								"trulioo",
								"com"
							],
							"path": [
								"authorize"
							]
						}
					},
					"response": []
				},
				{
					"name": "4.1 GET Transaction details",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [
							{
								"key": "Accept-Version",
								"value": "2.5",
								"type": "text"
							}
						],
						"url": {
							"raw": "https://verification.trulioo.com/customer/transactions/:transactionId",
							"protocol": "https",
							"host": [
								"verification",
								"trulioo",
								"com"
							],
							"path": [
								"customer",
								"transactions",
								":transactionId"
							],
							"variable": [
								{
									"key": "transactionId",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "4.2 GET document images",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept-Version",
								"value": "2.5",
								"type": "text"
							}
						],
						"url": {
							"raw": "https://verification.trulioo.com/customer/transactions/:transactionId/images/:imageId?authorization=",
							"protocol": "https",
							"host": [
								"verification",
								"trulioo",
								"com"
							],
							"path": [
								"customer",
								"transactions",
								":transactionId",
								"images",
								":imageId"
							],
							"query": [
								{
									"key": "authorization",
									"value": ""
								}
							],
							"variable": [
								{
									"key": "transactionId",
									"value": ""
								},
								{
									"key": "imageId",
									"value": ""
								}
							]
						}
					},
					"response": []
				}
			],
			"description": "Retrieving shortcode\n\n1. **Step 1:** [Initialise the flow.](https://developer.trulioo.com/docs/get-current-step-or-initialize-a-flow) This will generate unique x-hf-session ID (in the header of the response). You'll also get the shortcode for the SDK.\n    \n2. **Step 2:** [Submit the data](https://developer.trulioo.com/docs/get-current-step-or-initialize-a-flow). You can use this call if you are submitting text information before starting the document verification. This can happen if you are first doing a watchlist or Person match check or if you wan tto associate text data such as a customer ID with the workflow session.\n    \n\nExport document verification information and images\n\n1. **Step 3:** [Retrieve Profile endpoint](https://developer.trulioo.com/docs/retrieve-profile-data-from-a-client) will retrieve details of the complete profile including submitted details and service level response for the verification.\n    \n2. **Step 4:** POST Authorization token: Use the license key to generate a bearer token for the next calls\n    \n3. **Step 4.1:** GET Transactions details: Use the transactionID to get the transactiondetails of the document verification, including image IDs\n    \n4. **Step 4.2:** GET Images: retrieve the images in base 64 format, document type PNG"
		}
	]
}