Add Identity
curl --request POST \
--url https://api.deepidv.com/v1/igaming/self-exclusion/identityimport requests
url = "https://api.deepidv.com/v1/igaming/self-exclusion/identity"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.deepidv.com/v1/igaming/self-exclusion/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.deepidv.com/v1/igaming/self-exclusion/identity",
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://api.deepidv.com/v1/igaming/self-exclusion/identity"
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://api.deepidv.com/v1/igaming/self-exclusion/identity")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepidv.com/v1/igaming/self-exclusion/identity")
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_body{
"excluded": [
{ "document_number": "P1234567", "status": "added" }
]
}
iGaming Self-Exclusion & Management
Add Identity
Add one or more document numbers to the self-exclusion registry
POST
/
v1
/
igaming
/
self-exclusion
/
identity
Add Identity
curl --request POST \
--url https://api.deepidv.com/v1/igaming/self-exclusion/identityimport requests
url = "https://api.deepidv.com/v1/igaming/self-exclusion/identity"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.deepidv.com/v1/igaming/self-exclusion/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.deepidv.com/v1/igaming/self-exclusion/identity",
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://api.deepidv.com/v1/igaming/self-exclusion/identity"
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://api.deepidv.com/v1/igaming/self-exclusion/identity")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepidv.com/v1/igaming/self-exclusion/identity")
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_body{
"excluded": [
{ "document_number": "P1234567", "status": "added" }
]
}
POST /v1/igaming/self-exclusion/identity
Request
Headers
| Header | Required | Description |
|---|---|---|
x-api-key | Yes | Your API key |
Content-Type | Yes | application/json |
Body parameters
Provide one ofdocument_number or document_numbers. Field names are snake_case only — there are no camelCase aliases.
| Parameter | Type | Required | Description |
|---|---|---|---|
document_number | string | One of document_number / document_numbers | A single document number to exclude |
document_numbers | string[] | One of document_number / document_numbers | A non-empty array of document numbers to exclude |
reason | string | No | Free-text reason for the exclusion |
first_name | string | No | Applicant’s first name, stored alongside the entry |
last_name | string | No | Applicant’s last name, stored alongside the entry |
Example request
curl -X POST https://api.deepidv.com/v1/igaming/self-exclusion/identity \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"document_numbers": ["P1234567"],
"reason": "self-requested exclusion"
}'
const response = await fetch(
"https://api.deepidv.com/v1/igaming/self-exclusion/identity",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
},
body: JSON.stringify({
document_numbers: ["P1234567"],
reason: "self-requested exclusion",
}),
}
);
const data = await response.json();
import requests
response = requests.post(
"https://api.deepidv.com/v1/igaming/self-exclusion/identity",
headers={
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
},
json={
"document_numbers": ["P1234567"],
"reason": "self-requested exclusion",
},
)
Response
200 — Success
| Field | Type | Description |
|---|---|---|
excluded | array | One entry per number in the request, in request order |
excluded[].document_number | string | The normalized document number |
excluded[].status | string | added, already_excluded, or invalid |
added means the number was newly registered. already_excluded means it
was already present — writes are idempotent, so this is not an error.
invalid means the value could not be used as a document number.Error responses
| Status | Description |
|---|---|
400 Bad Request | Neither document_number nor document_numbers was provided, or document_numbers was an empty array |
401 Unauthorized | Invalid or revoked API key |
403 Forbidden | x-api-key header missing |
500 Internal Server Error | Unexpected server error |
{
"excluded": [
{ "document_number": "P1234567", "status": "added" }
]
}