curl 'https://verification.didit.me/v3/sessions/delete/JOB_ID/' \
-H 'x-api-key: YOUR_API_KEY'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.sessions.retrieve_deletion_job(
"11111111-2222-3333-4444-555555555555",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.sessions.retrieveDeletionJob("11111111-2222-3333-4444-555555555555");
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Sessions.RetrieveDeletionJob(ctx, "11111111-2222-3333-4444-555555555555")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.sessions().retrieveDeletionJob("11111111-2222-3333-4444-555555555555");
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->sessions->retrieveDeletionJob('11111111-2222-3333-4444-555555555555');
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.sessions.retrieve_deletion_job("11111111-2222-3333-4444-555555555555")
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Sessions.RetrieveDeletionJobAsync("11111111-2222-3333-4444-555555555555");
Console.WriteLine(JsonSerializer.Serialize(result));{
"job_id": "5b8f2c1e-7d3a-4f6b-9e2c-1a0d8f7e6c5b",
"status": "PROCESSING",
"total": 250,
"processed": 100,
"outcomes": {
"deleted": 82,
"none": 18,
"retained_with_user": 0,
"ineligible_no_vendor_user": 0,
"failed_retryable": 0,
"already_deleted": 0
},
"deleted_child_verifications": 0,
"error": null,
"created_at": "2026-10-09T10:15:00Z",
"completed_at": null
}Get Session Deletion Job API
Poll the status and outcome counts of a bulk session deletion that Batch Delete Sessions answered with 202 because more than 20 sessions matched.
curl 'https://verification.didit.me/v3/sessions/delete/JOB_ID/' \
-H 'x-api-key: YOUR_API_KEY'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.sessions.retrieve_deletion_job(
"11111111-2222-3333-4444-555555555555",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.sessions.retrieveDeletionJob("11111111-2222-3333-4444-555555555555");
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Sessions.RetrieveDeletionJob(ctx, "11111111-2222-3333-4444-555555555555")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.sessions().retrieveDeletionJob("11111111-2222-3333-4444-555555555555");
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->sessions->retrieveDeletionJob('11111111-2222-3333-4444-555555555555');
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.sessions.retrieve_deletion_job("11111111-2222-3333-4444-555555555555")
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Sessions.RetrieveDeletionJobAsync("11111111-2222-3333-4444-555555555555");
Console.WriteLine(JsonSerializer.Serialize(result));{
"job_id": "5b8f2c1e-7d3a-4f6b-9e2c-1a0d8f7e6c5b",
"status": "PROCESSING",
"total": 250,
"processed": 100,
"outcomes": {
"deleted": 82,
"none": 18,
"retained_with_user": 0,
"ineligible_no_vendor_user": 0,
"failed_retryable": 0,
"already_deleted": 0
},
"deleted_child_verifications": 0,
"error": null,
"created_at": "2026-10-09T10:15:00Z",
"completed_at": null
}Overview
Returns a bulk session deletion started by Batch Delete Sessions: its status, how many sessions it has processed, and how many ended in each outcome. When more than 20 KYC sessions match a batch delete, selected bysession_numbers or with delete_all, the request returns 202 with a PENDING job and the sessions are deleted in the background. Poll this endpoint every few seconds until status is COMPLETED or FAILED.
Each session the job deletes is deleted exactly as by Delete Session: the session, every verification attempt it holds, and all of its stored files are deleted, and its media URLs stop resolving. Deletion is permanent and irreversible.
The job reports counts only. It never lists which sessions it deleted.
Job status
status | Meaning |
|---|---|
PENDING | Accepted, not started yet. |
PROCESSING | Deleting; processed and outcomes are updating. |
COMPLETED | Every selected session is accounted for in outcomes. |
FAILED | The job stopped early and error says why. The sessions it had not reached are still in place: repeat the deletion request to delete them. |
delete_all job deletes only the sessions created before the request. Sessions started while it runs are not deleted.
Outcome counts
outcomes key | Meaning |
|---|---|
deleted | Sessions deleted together with their face embedding. |
none | Sessions deleted that had no face embedding. |
retained_with_user | Sessions deleted while one image-free biometric template was retained for their User, as the request or the application policy asked. See Delete Session. |
ineligible_no_vendor_user | Retention was requested but the session had no linked User. The session and its face embedding were deleted. |
failed_retryable | Sessions reported as not deleted. The job retries a group it could not delete by itself instead of counting it here. |
already_deleted | Selected sessions that were already deleted, for example by another request, when the job reached them. |
deleted_child_verifications counts the verifications that deleted business verifications created and that were deleted with them. It is always 0 for a job started by Batch Delete Sessions, which deletes KYC sessions only.
Permissions
Any active API key of the application can call this endpoint. A job is only visible to the application that created it; any otherjob_id returns 404.
Related
Authorizations
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
Path Parameters
Response
The job.
A bulk session deletion running in the background: progress and counts per outcome, never which sessions it deleted.