Switch a feature module on or off
curl --request PUT \
--url https://api.uk.veridox.ai/organisations/features/modules/{moduleKey} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"mode": "on"
}'import requests
url = "https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}"
payload = { "mode": "on" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: 'on'})
};
fetch('https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}', 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.uk.veridox.ai/organisations/features/modules/{moduleKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'mode' => 'on'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}"
payload := strings.NewReader("{\n \"mode\": \"on\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"on\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"on\"\n}"
response = http.request(request)
puts response.read_body{
"modules": [
{
"module_key": "identity_verification",
"kind": "analysis",
"pricing": "credits",
"managed_by": "organisation",
"default_mode": "off",
"mode": "on",
"offers_trial": false,
"updated_at": "2026-11-11T10:40:00.000Z"
}
]
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}Organisation
Switch Feature Module
Switch one of your organisation’s feature modules off, on or into trial.
PUT
/
organisations
/
features
/
modules
/
{moduleKey}
Switch a feature module on or off
curl --request PUT \
--url https://api.uk.veridox.ai/organisations/features/modules/{moduleKey} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"mode": "on"
}'import requests
url = "https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}"
payload = { "mode": "on" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: 'on'})
};
fetch('https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}', 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.uk.veridox.ai/organisations/features/modules/{moduleKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'mode' => 'on'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}"
payload := strings.NewReader("{\n \"mode\": \"on\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"on\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uk.veridox.ai/organisations/features/modules/{moduleKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"on\"\n}"
response = http.request(request)
puts response.read_body{
"modules": [
{
"module_key": "identity_verification",
"kind": "analysis",
"pricing": "credits",
"managed_by": "organisation",
"default_mode": "off",
"mode": "on",
"offers_trial": false,
"updated_at": "2026-11-11T10:40:00.000Z"
}
]
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}{
"error_code": "request.cases.file.missing-risk-score",
"error_message": "User tried to perform an invalid operation on a file without a risk score.",
"error_details": {
"field": "email_address"
}
}Sets the mode of one feature module for your organisation: send
{ "mode": "off" }, { "mode": "on" } or, where the module offers it, { "mode": "trial" }. The response returns every module, as List Feature Modules does.
Permission
Requiresorganisation_settings:write, which the Owner role holds by default. A caller without it receives 403.
What Changes
- Only modules you manage. A module with
managed_byset toveridoxis rejected with400andrequest.organisations.feature-module.staff-switched. Contact Veridox to change it. - Trial only where offered.
trialruns the module without changing results. It is accepted only whereoffers_trialistrue; otherwise the API returns400withrequest.organisations.feature-module.trial-not-offered. - Analysis modules apply from the next analysis. A module with
kindset toanalysischanges the checks run on documents analysed after the switch. A module withkindset toappapplies straight away. - Credits. Switching on a module with
pricingset tocredits, such asidentity_verificationorverification_checks, charges credits for each analysis that uses it. - Changes are audited. Each change is recorded in the audit log as
feature_modules.updated, with the module key and the previous and new modes. A request that does not change the mode adds no entry.
Best Practices
- Send only
mode. A body with a missing or invalidmode, or any other field, is rejected with400. - An unknown module key returns
404withrequest.organisations.feature-module.not-found. Take keys from List Feature Modules.
Related
- List Feature Modules reads every module’s mode.
- Feature Modules explains kinds, pricing and modes.
Body
application/json
Was this page helpful?
⌘I