GBG Developers

sdfsdfsdf

some text

.red { fill: #b0013a; }

Load a selfie

Post /verify/facematch/v1/selfie

provides a method to load a 'selfie' to be matched against an uploaded document image (response is different from verify person)

Mandatory fields are highlighted
Header Parameters
Name Type Description
Authorization string

A JWT token to allow access

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
person-id string

Use to identify the verification made against a person

Example: 9d75d85e-f7bc-4d22-a93b-60c04881193d
document-verification-id string

The verification-id from the document step which the selfie will be matched to.

Example: 9d75d85e-f7bc-4d22-a93b-60c04881193d
customer-reference string

Allows the calling system to submit its own reference that can be used to track this verification. This shoud be supplied as a UUID.

Example: 9d75d86e-f7bc-4d22-a93b-59c04881193f
Request Body
  • image string
  • Response

    selfie submitted

    Response Headers
    Name Type Description
    verification-id string

    The unique key for this verification transaction. This is the same as the verificationID field in the response.

    Response Body
    • {
      • verificationID string Pattern: ^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$ example: 7ab2ff08-728a-42e6-aa38-df191ffd4817
      • timestamp string

        An ISO 8601 timestamp, with no optional bits:
        1) hyphens MUST be used to separate the date components
        2) day and month should be 2 digits
        3) colons MUST be used to separate the time components
        4) timestamps MUST NOT contain milliseconds
        5) timestamp MUST indicate the timezone, either as a time offset or a Zulu time indicator

        Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(([+-]\d{2}:\d{2})|Z)$ example: 2019-01-04T14:38:25
      • customerReference string Pattern: ^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$ example: 7ab2ff08-728a-42e6-aa38-df191ffd4817
      • verification {
        • result {
          • function string

            The name of the service that has provided the current verification

            Enum: [VERIFY-PERSON, VERIFY-DOCUMENT, VERIFY-SELFIE, HUMAN-EXPERT]
          • state string example: Microsoft.OpenApi.Any.OpenApiArray
          • score number

            The score assigned to this verification step

          }
        }
      • combined {
        • verifications [
          • verification {
            • result {
              • function string

                The name of the service that has provided the current verification

                Enum: [VERIFY-PERSON, VERIFY-DOCUMENT, VERIFY-SELFIE, VERIFY-PEPS-N-SANCTIONS, VERIFY_LIVENESS, HUMAN-EXPERT]
              • state string
              • score number

                The score assigned to this verification step

              }
            }
          ]
        • decision string
        • notes string
        }
      }
    {
      "verificationID": {
        "PrimitiveType": 4,
        "AnyType": 0,
        "Value": "7ab2ff08-728a-42e6-aa38-df191ffd4817"
      },
      "timestamp": {
        "PrimitiveType": 9,
        "AnyType": 0,
        "Value": "2019-01-04T14:38:25+00:00"
      },
      "customerReference": {
        "PrimitiveType": 4,
        "AnyType": 0,
        "Value": "7ab2ff08-728a-42e6-aa38-df191ffd4817"
      },
      "verification": {
        "result": {
          "Title": null,
          "Type": "object",
          "Format": null,
          "Description": null,
          "Maximum": null,
          "ExclusiveMaximum": null,
          "Minimum": null,
          "ExclusiveMinimum": null,
          "MaxLength": null,
          "MinLength": null,
          "Pattern": null,
          "MultipleOf": null,
          "Default": null,
          "ReadOnly": false,
          "WriteOnly": false,
          "AllOf": [],
          "OneOf": [],
          "AnyOf": [],
          "Not": null,
          "Required": [
            "function",
            "state"
          ],
          "Items": null,
          "MaxItems": null,
          "MinItems": null,
          "UniqueItems": null,
          "Properties": {
            "function": {
              "Title": null,
              "Type": "string",
              "Format": null,
              "Description": "The name of the service that has provided the current verification",
              "Maximum": null,
              "ExclusiveMaximum": null,
              "Minimum": null,
              "ExclusiveMinimum": null,
              "MaxLength": null,
              "MinLength": null,
              "Pattern": null,
              "MultipleOf": null,
              "Default": null,
              "ReadOnly": false,
              "WriteOnly": false,
              "AllOf": [],
              "OneOf": [],
              "AnyOf": [],
              "Not": null,
              "Required": [],
              "Items": null,
              "MaxItems": null,
              "MinItems": null,
              "UniqueItems": null,
              "Properties": {},
              "MaxProperties": null,
              "MinProperties": null,
              "AdditionalPropertiesAllowed": true,
              "AdditionalProperties": null,
              "Discriminator": null,
              "Example": null,
              "Enum": [
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "VERIFY-PERSON"
                },
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "VERIFY-DOCUMENT"
                },
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "VERIFY-SELFIE"
                },
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "HUMAN-EXPERT"
                }
              ],
              "Nullable": false,
              "ExternalDocs": null,
              "Deprecated": false,
              "Xml": null,
              "Extensions": {},
              "UnresolvedReference": false,
              "Reference": null
            },
            "state": {
              "Title": null,
              "Type": "string",
              "Format": null,
              "Description": null,
              "Maximum": null,
              "ExclusiveMaximum": null,
              "Minimum": null,
              "ExclusiveMinimum": null,
              "MaxLength": null,
              "MinLength": null,
              "Pattern": null,
              "MultipleOf": null,
              "Default": null,
              "ReadOnly": false,
              "WriteOnly": false,
              "AllOf": [],
              "OneOf": [],
              "AnyOf": [],
              "Not": null,
              "Required": [],
              "Items": null,
              "MaxItems": null,
              "MinItems": null,
              "UniqueItems": null,
              "Properties": {},
              "MaxProperties": null,
              "MinProperties": null,
              "AdditionalPropertiesAllowed": true,
              "AdditionalProperties": null,
              "Discriminator": null,
              "Example": [
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "PASS: Matched"
                },
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "NotMatched"
                },
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "NoFace"
                },
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "Undetermined"
                },
                {
                  "PrimitiveType": 4,
                  "AnyType": 0,
                  "Value": "Identical"
                }
              ],
              "Enum": [],
              "Nullable": false,
              "ExternalDocs": null,
              "Deprecated": false,
              "Xml": null,
              "Extensions": {},
              "UnresolvedReference": false,
              "Reference": null
            },
            "score": {
              "Title": null,
              "Type": "number",
              "Format": null,
              "Description": "The score assigned to this verification step",
              "Maximum": null,
              "ExclusiveMaximum": null,
              "Minimum": null,
              "ExclusiveMinimum": null,
              "MaxLength": null,
              "MinLength": null,
              "Pattern": null,
              "MultipleOf": null,
              "Default": null,
              "ReadOnly": false,
              "WriteOnly": false,
              "AllOf": [],
              "OneOf": [],
              "AnyOf": [],
              "Not": null,
              "Required": [],
              "Items": null,
              "MaxItems": null,
              "MinItems": null,
              "UniqueItems": null,
              "Properties": {},
              "MaxProperties": null,
              "MinProperties": null,
              "AdditionalPropertiesAllowed": true,
              "AdditionalProperties": null,
              "Discriminator": null,
              "Example": null,
              "Enum": [],
              "Nullable": false,
              "ExternalDocs": null,
              "Deprecated": false,
              "Xml": null,
              "Extensions": {},
              "UnresolvedReference": false,
              "Reference": null
            }
          },
          "MaxProperties": null,
          "MinProperties": null,
          "AdditionalPropertiesAllowed": true,
          "AdditionalProperties": null,
          "Discriminator": null,
          "Example": null,
          "Enum": [],
          "Nullable": false,
          "ExternalDocs": null,
          "Deprecated": false,
          "Xml": null,
          "Extensions": {},
          "UnresolvedReference": false,
          "Reference": null
        }
      },
      "combined": {
        "verifications": {
          "Title": null,
          "Type": "array",
          "Format": null,
          "Description": null,
          "Maximum": null,
          "ExclusiveMaximum": null,
          "Minimum": null,
          "ExclusiveMinimum": null,
          "MaxLength": null,
          "MinLength": null,
          "Pattern": null,
          "MultipleOf": null,
          "Default": null,
          "ReadOnly": false,
          "WriteOnly": false,
          "AllOf": [],
          "OneOf": [],
          "AnyOf": [],
          "Not": null,
          "Required": [],
          "Items": {
            "Title": null,
            "Type": "object",
            "Format": null,
            "Description": null,
            "Maximum": null,
            "ExclusiveMaximum": null,
            "Minimum": null,
            "ExclusiveMinimum": null,
            "MaxLength": null,
            "MinLength": null,
            "Pattern": null,
            "MultipleOf": null,
            "Default": null,
            "ReadOnly": false,
            "WriteOnly": false,
            "AllOf": [],
            "OneOf": [],
            "AnyOf": [],
            "Not": null,
            "Required": [],
            "Items": null,
            "MaxItems": null,
            "MinItems": null,
            "UniqueItems": null,
            "Properties": {
              "result": {
                "Title": null,
                "Type": "object",
                "Format": null,
                "Description": null,
                "Maximum": null,
                "ExclusiveMaximum": null,
                "Minimum": null,
                "ExclusiveMinimum": null,
                "MaxLength": null,
                "MinLength": null,
                "Pattern": null,
                "MultipleOf": null,
                "Default": null,
                "ReadOnly": false,
                "WriteOnly": false,
                "AllOf": [],
                "OneOf": [],
                "AnyOf": [],
                "Not": null,
                "Required": [
                  "function",
                  "state"
                ],
                "Items": null,
                "MaxItems": null,
                "MinItems": null,
                "UniqueItems": null,
                "Properties": {
                  "function": {
                    "Title": null,
                    "Type": "string",
                    "Format": null,
                    "Description": "The name of the service that has provided the current verification",
                    "Maximum": null,
                    "ExclusiveMaximum": null,
                    "Minimum": null,
                    "ExclusiveMinimum": null,
                    "MaxLength": null,
                    "MinLength": null,
                    "Pattern": null,
                    "MultipleOf": null,
                    "Default": null,
                    "ReadOnly": false,
                    "WriteOnly": false,
                    "AllOf": [],
                    "OneOf": [],
                    "AnyOf": [],
                    "Not": null,
                    "Required": [],
                    "Items": null,
                    "MaxItems": null,
                    "MinItems": null,
                    "UniqueItems": null,
                    "Properties": {},
                    "MaxProperties": null,
                    "MinProperties": null,
                    "AdditionalPropertiesAllowed": true,
                    "AdditionalProperties": null,
                    "Discriminator": null,
                    "Example": null,
                    "Enum": [
                      {
                        "PrimitiveType": 4,
                        "AnyType": 0,
                        "Value": "VERIFY-PERSON"
                      },
                      {
                        "PrimitiveType": 4,
                        "AnyType": 0,
                        "Value": "VERIFY-DOCUMENT"
                      },
                      {
                        "PrimitiveType": 4,
                        "AnyType": 0,
                        "Value": "VERIFY-SELFIE"
                      },
                      {
                        "PrimitiveType": 4,
                        "AnyType": 0,
                        "Value": "VERIFY-PEPS-N-SANCTIONS"
                      },
                      {
                        "PrimitiveType": 4,
                        "AnyType": 0,
                        "Value": "VERIFY_LIVENESS"
                      },
                      {
                        "PrimitiveType": 4,
                        "AnyType": 0,
                        "Value": "HUMAN-EXPERT"
                      }
                    ],
                    "Nullable": false,
                    "ExternalDocs": null,
                    "Deprecated": false,
                    "Xml": null,
                    "Extensions": {},
                    "UnresolvedReference": false,
                    "Reference": null
                  },
                  "state": {
                    "Title": null,
                    "Type": "string",
                    "Format": null,
                    "Description": null,
                    "Maximum": null,
                    "ExclusiveMaximum": null,
                    "Minimum": null,
                    "ExclusiveMinimum": null,
                    "MaxLength": null,
                    "MinLength": null,
                    "Pattern": null,
                    "MultipleOf": null,
                    "Default": null,
                    "ReadOnly": false,
                    "WriteOnly": false,
                    "AllOf": [],
                    "OneOf": [],
                    "AnyOf": [],
                    "Not": null,
                    "Required": [],
                    "Items": null,
                    "MaxItems": null,
                    "MinItems": null,
                    "UniqueItems": null,
                    "Properties": {},
                    "MaxProperties": null,
                    "MinProperties": null,
                    "AdditionalPropertiesAllowed": true,
                    "AdditionalProperties": null,
                    "Discriminator": null,
                    "Example": null,
                    "Enum": [],
                    "Nullable": false,
                    "ExternalDocs": null,
                    "Deprecated": false,
                    "Xml": null,
                    "Extensions": {},
                    "UnresolvedReference": false,
                    "Reference": null
                  },
                  "score": {
                    "Title": null,
                    "Type": "number",
                    "Format": null,
                    "Description": "The score assigned to this verification step",
                    "Maximum": null,
                    "ExclusiveMaximum": null,
                    "Minimum": null,
                    "ExclusiveMinimum": null,
                    "MaxLength": null,
                    "MinLength": null,
                    "Pattern": null,
                    "MultipleOf": null,
                    "Default": null,
                    "ReadOnly": false,
                    "WriteOnly": false,
                    "AllOf": [],
                    "OneOf": [],
                    "AnyOf": [],
                    "Not": null,
                    "Required": [],
                    "Items": null,
                    "MaxItems": null,
                    "MinItems": null,
                    "UniqueItems": null,
                    "Properties": {},
                    "MaxProperties": null,
                    "MinProperties": null,
                    "AdditionalPropertiesAllowed": true,
                    "AdditionalProperties": null,
                    "Discriminator": null,
                    "Example": null,
                    "Enum": [],
                    "Nullable": false,
                    "ExternalDocs": null,
                    "Deprecated": false,
                    "Xml": null,
                    "Extensions": {},
                    "UnresolvedReference": false,
                    "Reference": null
                  }
                },
                "MaxProperties": null,
                "MinProperties": null,
                "AdditionalPropertiesAllowed": true,
                "AdditionalProperties": null,
                "Discriminator": null,
                "Example": null,
                "Enum": [],
                "Nullable": false,
                "ExternalDocs": null,
                "Deprecated": false,
                "Xml": null,
                "Extensions": {},
                "UnresolvedReference": false,
                "Reference": null
              }
            },
            "MaxProperties": null,
            "MinProperties": null,
            "AdditionalPropertiesAllowed": true,
            "AdditionalProperties": null,
            "Discriminator": null,
            "Example": null,
            "Enum": [],
            "Nullable": false,
            "ExternalDocs": null,
            "Deprecated": false,
            "Xml": null,
            "Extensions": {},
            "UnresolvedReference": false,
            "Reference": null
          },
          "MaxItems": null,
          "MinItems": null,
          "UniqueItems": null,
          "Properties": {},
          "MaxProperties": null,
          "MinProperties": null,
          "AdditionalPropertiesAllowed": true,
          "AdditionalProperties": null,
          "Discriminator": null,
          "Example": null,
          "Enum": [],
          "Nullable": false,
          "ExternalDocs": null,
          "Deprecated": false,
          "Xml": null,
          "Extensions": {},
          "UnresolvedReference": false,
          "Reference": null
        },
        "decision": {
          "Title": null,
          "Type": "string",
          "Format": null,
          "Description": null,
          "Maximum": null,
          "ExclusiveMaximum": null,
          "Minimum": null,
          "ExclusiveMinimum": null,
          "MaxLength": null,
          "MinLength": null,
          "Pattern": null,
          "MultipleOf": null,
          "Default": null,
          "ReadOnly": false,
          "WriteOnly": false,
          "AllOf": [],
          "OneOf": [],
          "AnyOf": [],
          "Not": null,
          "Required": [],
          "Items": null,
          "MaxItems": null,
          "MinItems": null,
          "UniqueItems": null,
          "Properties": {},
          "MaxProperties": null,
          "MinProperties": null,
          "AdditionalPropertiesAllowed": true,
          "AdditionalProperties": null,
          "Discriminator": null,
          "Example": null,
          "Enum": [],
          "Nullable": false,
          "ExternalDocs": null,
          "Deprecated": false,
          "Xml": null,
          "Extensions": {},
          "UnresolvedReference": false,
          "Reference": null
        },
        "notes": {
          "Title": null,
          "Type": "string",
          "Format": null,
          "Description": null,
          "Maximum": null,
          "ExclusiveMaximum": null,
          "Minimum": null,
          "ExclusiveMinimum": null,
          "MaxLength": null,
          "MinLength": null,
          "Pattern": null,
          "MultipleOf": null,
          "Default": null,
          "ReadOnly": false,
          "WriteOnly": false,
          "AllOf": [],
          "OneOf": [],
          "AnyOf": [],
          "Not": null,
          "Required": [],
          "Items": null,
          "MaxItems": null,
          "MinItems": null,
          "UniqueItems": null,
          "Properties": {},
          "MaxProperties": null,
          "MinProperties": null,
          "AdditionalPropertiesAllowed": true,
          "AdditionalProperties": null,
          "Discriminator": null,
          "Example": null,
          "Enum": [],
          "Nullable": false,
          "ExternalDocs": null,
          "Deprecated": false,
          "Xml": null,
          "Extensions": {},
          "UnresolvedReference": false,
          "Reference": null
        }
      }
    })
    • cURL
    • JavaScript
    • C#
    • PHP
    • Java (Spring)
    curl -X POST \
     - H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' \
     - H 'person-id: 9d75d85e-f7bc-4d22-a93b-60c04881193d' \
     - H 'document-verification-id: 9d75d85e-f7bc-4d22-a93b-60c04881193d' \
     - H 'customer-reference: 9d75d86e-f7bc-4d22-a93b-59c04881193f' \
     - H 'Content-Type: multipart/form-data' \
        -F 'image: {image}' \
    "https://api.gbgplc.com/verify/facematch/v1/selfie"
    
    var data = new FormData();
    data.append("image", "{image}");
    var xhr = new XMLHttpRequest();
    xhr.addEventListener('readystatechange', function () {
        if (this.readyState === this.DONE) {
            console.log(this.responseText);
        }
    });
    xhr.open('Post', 'https://api.gbgplc.com/verify/facematch/v1/selfie');
    xhr.setRequestHeader('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c');
    xhr.setRequestHeader('person-id', '9d75d85e-f7bc-4d22-a93b-60c04881193d');
    xhr.setRequestHeader('document-verification-id', '9d75d85e-f7bc-4d22-a93b-60c04881193d');
    xhr.setRequestHeader('customer-reference', '9d75d86e-f7bc-4d22-a93b-59c04881193f');
    xhr.setRequestHeader('Content-Type', 'multipart/form-data');
    xhr.send(data);
    
    var client = new HttpClient();
    var message = new HttpRequestMessage(HttpMethod.Post, "https://api.gbgplc.com/verify/facematch/v1/selfie");
    message.Headers.Add("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c");
    message.Headers.Add("person-id", "9d75d85e-f7bc-4d22-a93b-60c04881193d");
    message.Headers.Add("document-verification-id", "9d75d85e-f7bc-4d22-a93b-60c04881193d");
    message.Headers.Add("customer-reference", "9d75d86e-f7bc-4d22-a93b-59c04881193f");
    var formContent = new MultipartFormDataContent("Upload----" + DateTime.Now.ToString(CultureInfo.InvariantCulture));
    var file = System.IO.File.ReadAllBytes("/path/to/your/image.jpg");
    var content = new ByteArrayContent(file);
    content.Headers.Add("Content-Type", "image/jpeg");
    formContent.Add(content, "file", "image.jpeg");
    message.Content = formContent;
    var response = await client.SendAsync(message);
    var responseString = await response.Content.ReadAsStringAsync();
    Console.WriteLine(responseString);
    
    $url = 'https://api.gbgplc.com/verify/facematch/v1/selfie';
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $data = array(
        'file' => new \CurlFile('@/path/to/your/image.jpg', 'image/jpeg', 'image.jpg')
    );
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array(     
        'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c',
        'person-id: 9d75d85e-f7bc-4d22-a93b-60c04881193d',
        'document-verification-id: 9d75d85e-f7bc-4d22-a93b-60c04881193d',
        'customer-reference: 9d75d86e-f7bc-4d22-a93b-59c04881193f',
        'content-type: multipart/form-data')
    );
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $response = curl_exec($ch);
    if (curl_errno($ch)) {
        echo 'Error:' . curl_error($ch);
    }
    $json = json_decode($response, true);
    curl_close($ch);
    print_r($json);
    
    HttpHeaders headers = new HttpHeaders();
    headers.set("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c");
    headers.set("person-id", "9d75d85e-f7bc-4d22-a93b-60c04881193d");
    headers.set("document-verification-id", "9d75d85e-f7bc-4d22-a93b-60c04881193d");
    headers.set("customer-reference", "9d75d86e-f7bc-4d22-a93b-59c04881193f");
    MultiValueMap<String, String> body = new LinkedMultiValueMap<String, String>();
    body.add("image","{image}");
    HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<>(body, headers);
    String host = "https://api.gbgplc.com/verify/facematch/v1/selfie";
    //restTemplate should be autowired via constructor of this class
    ResponseEntity<String> response = restTemplate.postForEntity(host, request, String.class);
    if (200 == response.getStatusCodeValue()){
        //DO STUFF
    }
    

    Remember! Each of the marked variables should be replaced with your credentials or your chosen options.