Create List Entry
curl --request POST \
--url https://identity.contra.id/v1/lists/{uuid}/entriesimport requests
url = "https://identity.contra.id/v1/lists/{uuid}/entries"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/lists/{uuid}/entries', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/lists/{uuid}/entries")
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
Create List Entry
Add a document number, phone, email, or face hash to a list.
POST
/
v1
/
lists
/
{uuid}
/
entries
Create List Entry
curl --request POST \
--url https://identity.contra.id/v1/lists/{uuid}/entriesimport requests
url = "https://identity.contra.id/v1/lists/{uuid}/entries"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/lists/{uuid}/entries', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/lists/{uuid}/entries")
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_bodycurl -X POST https://identity.contra.id/v1/lists/$UUID/entries \
-H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \
-d '{
"entry_type": "document",
"value": "PASSPORT:GB:AB123456",
"reason": "fraud · chargeback",
"session_id": "sess_b3f1c2a4"
}'
| Body | Type | Required | Description |
|---|---|---|---|
entry_type | enum | yes | document · phone · email · face. |
value | string | conditional | Required for non-face entries. |
image | base64 | conditional | Required when entry_type=face (see Upload Face). |
session_id | string | recommended | Link back to the source session for audit. |
reason | string | no | Audited. |
Response · 201
{
"uuid": "ent_a1b2…",
"entry_type": "document",
"list": "lst_internal_block",
"added_at": 1748566800
}
⌘I