Get Session From Image
curl --request POST \
--url https://api.securegate.ai/identity \
--header 'x-api-key: <api-key>'import requests
url = "https://api.securegate.ai/identity"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.securegate.ai/identity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.securegate.ai/identity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.securegate.ai/identity"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.securegate.ai/identity")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.securegate.ai/identity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Identity Verification
Identify Personal
POST
/
identity
Get Session From Image
curl --request POST \
--url https://api.securegate.ai/identity \
--header 'x-api-key: <api-key>'import requests
url = "https://api.securegate.ai/identity"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.securegate.ai/identity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.securegate.ai/identity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.securegate.ai/identity"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.securegate.ai/identity")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.securegate.ai/identity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}This endpoint is the core of Securegate’s security system. It uses facial recognition to verify a person’s identity at an event by matching their face to registered attendees.
What it does:
Important: This endpoint is the cornerstone of Securegate’s security system, providing powerful identity verification capabilities that go beyond simple authentication.
- Takes an image of a person trying to access your event
- Uses facial recognition to match them against registered attendees
- Returns detailed verification information including KYC (Know Your Customer) data
- Helps ensure only authorized people can access secure locations
- At check-in points for secure events
- When someone needs to access a restricted area
- For continuous verification of identity during an event
- To implement biometric access control at facilities
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
event_id | string | Yes | The unique identifier of the event |
image_url | string | Yes | URL to the image to be used for identification |
Response
The API returns detailed session information for the identified person including user data, authentication status, KYC details, and session metadata:{
"userInfo": {
"email": "johndoe@example.com",
"userId": "usr_abc123xyz456",
"name": "John Doe",
"phone": "5551234567",
"countryCode": "+1"
},
"authentication": [
{
"conditions": [],
"_id": "auth_789xyz123abc",
"data": {
"stepId": "authentication",
"actionId": "facialRecognition",
"status": "completed",
"data": {
"selfieImage": "https://example.com/storage/selfie-image.png",
"blobVideoUrl": "https://example.com/storage/verification-video.webm"
},
"stepStartTime": "2023-05-10T14:30:00Z",
"stepEndTime": "2023-05-10T14:32:00Z"
},
"parentIds": [],
"stepId": "authentication"
}
],
"kyc": [
{
"conditions": [],
"_id": "kyc_456abc789xyz",
"data": {
"kyc": {
"document": {
"frontImage": {
"value": "https://example.com/storage/document-front.png",
"verified": false
},
"idType": {
"value": "drivers-license",
"verified": true
},
"idNumber": {
"value": "DL1234567",
"verified": true
},
"dateOfExpiry": {
"value": "2028-05-28",
"verified": true
}
},
"basicInfo": {
"firstName": {
"value": "JOHN",
"verified": true
},
"lastName": {
"value": "DOE",
"verified": true
},
"dateOfBirth": {
"value": "1985-07-15",
"verified": true
},
"address": {
"value": "123 Main Street",
"verified": true
},
"city": {
"value": "Anytown",
"verified": true
},
"zip": {
"value": "12345",
"verified": true
},
"country": {
"value": "USA",
"verified": true
},
"sex": {
"value": "male",
"data": "Male"
}
}
},
"status": "completed",
"provider": "IDENTITY_PROVIDER"
},
"parentIds": ["auth_789xyz123abc"],
"stepId": "kyc"
}
],
"status": "completed",
"qrId": "qr_101112131415",
"activities": [
{
"type": "logs",
"userName": "Automated Compliance Agent",
"id": "act_20212223242526",
"metadata": {
"time": 1683730000000,
"data": "completed KYC verification",
"to": "completed",
"from": "processing",
"stepId": "kyc"
}
}
],
"metadata": {
"deviceInfo": {
"name": "John Doe",
"email": "johndoe@example.com",
"type": "desktop"
},
"geoLocation": {
"latitude": 37.7749,
"longitude": -122.4194
},
"sessionMetadata": {
"userAddress": {
"country_code": "US",
"city": "San Francisco",
"region": "California",
"country": "United States",
"display_name": "123 Market St, San Francisco, CA 94105, USA"
},
"ipAddress": "192.0.2.1",
"systemData": {
"browser": {
"name": "Chrome",
"version": "112.0.0.0"
},
"os": {
"name": "Windows",
"version": "11"
}
}
}
},
"visitedOrder": [
"auth_789xyz123abc",
"kyc_456abc789xyz"
]
}
Response Fields
| Field | Description |
|---|---|
userInfo | Basic user details including name, email, phone, etc. |
authentication | Authentication process details including facial recognition data |
kyc | Know Your Customer information with document and personal verification details |
status | Overall status of the identity verification process |
qrId | Unique QR code identifier associated with this session |
activities | Log of actions taken during the verification process |
metadata | Additional context information including device, location, and system details |
visitedOrder | Sequence of verification steps completed |
