cURL
curl -X DELETE 'https://verification.didit.me/v3/workflows/a1b2c3d4-5678-90ab-cdef-111111111111/' \
-H 'x-api-key: YOUR_API_KEY'import requests
resp = requests.delete(
f"https://verification.didit.me/v3/workflows/{settings_uuid}/",
headers={"x-api-key": "YOUR_API_KEY"},
timeout=10,
)
resp.raise_for_status() # raises on 4xx/5xx; 204 is successconst res = await fetch(`https://verification.didit.me/v3/workflows/${settingsUuid}/`, {
method: "DELETE",
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
if (res.status !== 204) throw new Error(`Didit ${res.status}`);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/workflows/{settings_uuid}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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://verification.didit.me/v3/workflows/{settings_uuid}/"
req, _ := http.NewRequest("DELETE", 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.delete("https://verification.didit.me/v3/workflows/{settings_uuid}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/workflows/{settings_uuid}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "You do not have permission to perform this action."
}{
"detail": "Not found."
}Workflows
Delete Workflow
Permanently delete one workflow version (hard delete, no undo). Existing sessions keep their verification results but their workflow reference is cleared; other versions in the same workflow_id group are not deleted.
DELETE
/
v3
/
workflows
/
{settings_uuid}
/
cURL
curl -X DELETE 'https://verification.didit.me/v3/workflows/a1b2c3d4-5678-90ab-cdef-111111111111/' \
-H 'x-api-key: YOUR_API_KEY'import requests
resp = requests.delete(
f"https://verification.didit.me/v3/workflows/{settings_uuid}/",
headers={"x-api-key": "YOUR_API_KEY"},
timeout=10,
)
resp.raise_for_status() # raises on 4xx/5xx; 204 is successconst res = await fetch(`https://verification.didit.me/v3/workflows/${settingsUuid}/`, {
method: "DELETE",
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
if (res.status !== 204) throw new Error(`Didit ${res.status}`);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/workflows/{settings_uuid}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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://verification.didit.me/v3/workflows/{settings_uuid}/"
req, _ := http.NewRequest("DELETE", 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.delete("https://verification.didit.me/v3/workflows/{settings_uuid}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/workflows/{settings_uuid}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "You do not have permission to perform this action."
}{
"detail": "Not found."
}⌘I