Upload Face
curl --request POST \
--url https://identity.contra.id/v1/lists/{uuid}/entries/faceimport requests
url = "https://identity.contra.id/v1/lists/{uuid}/entries/face"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/lists/{uuid}/entries/face', 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://identity.contra.id/v1/lists/{uuid}/entries/face",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://identity.contra.id/v1/lists/{uuid}/entries/face"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://identity.contra.id/v1/lists/{uuid}/entries/face")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/lists/{uuid}/entries/face")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyLists
Upload Face
Add a face image to a face list — the biometric template is hashed and stored irreversibly.
POST
/
v1
/
lists
/
{uuid}
/
entries
/
face
Upload Face
curl --request POST \
--url https://identity.contra.id/v1/lists/{uuid}/entries/faceimport requests
url = "https://identity.contra.id/v1/lists/{uuid}/entries/face"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/lists/{uuid}/entries/face', 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://identity.contra.id/v1/lists/{uuid}/entries/face",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://identity.contra.id/v1/lists/{uuid}/entries/face"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://identity.contra.id/v1/lists/{uuid}/entries/face")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/lists/{uuid}/entries/face")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyFace uploads are a separate endpoint because the request includes binary data and the storage path is biometric-template-hashed.
Request
curl -X POST https://identity.contra.id/v1/lists/$UUID/entries/face \
-H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \
-d '{
"image": "data:image/jpeg;base64,/9j/4AAQ…",
"reason": "duplicate account fraud",
"session_id":"sess_b3f1c2a4"
}'
Response · 201
{
"uuid": "ent_face_a1b2…",
"fingerprint": "sha256:abc123…",
"raw_image_stored": false,
"added_at": 1748566800
}
Contra stores only the irreversible biometric template hash, never the raw image. Matching is via cosine similarity against the template; the original photo cannot be reconstructed.
⌘I