Skip to content
RDCpassRDCpassMinistère de l’Économie NumériqueMinistère de l’Économie Numérique
API reference : Age Verification
On this page

Age Verification

Confirm that a person has reached a minimum age, using the date of birth held by the RDCPASS national digital identity instead of a self-declared birthday or a checkbox. Send an RDCPASS ID or an identity document number and the age threshold you must enforce; RDCPASS answers whether the person is above or below that threshold, and nothing else. Every call requires the authentication stack described in Authentication.

POST /v1/age/verificationsage_verificationPar vérification

At a glance

  • Endpoints: POST /v1/age/verifications (single) and POST /v1/age/verifications/batches (batch).
  • Input: an identifier — rdcpass_id or a document type (passport, ceni, driving_licence, national_id) — and a threshold in whole years (default 18).
  • Output: result (above_threshold, below_threshold or not_found), and nothing else.
  • No identity data: neither the age, the date of birth nor basic KYC is returned.
  • Declared purpose is always age_restricted_access.
  • Single, batch, synchronous and asynchronous modes; async results arrive on the age_verification.completed webhook.

This service returns no identity data

Age Verification never returns the age, the date of birth, basic KYC or any other scope — even if your organization subscribes to them and your application has selected them. The request takes no scopes or document_delivery field. If you need identity data, use KYC Validation instead.

How it works

  1. Your customer gives you an identifier — They enter their RDCPASS ID or a document number when they sign up, at checkout or at your counter.
  2. You set the minimum age — Your system submits the identifier with the age threshold that applies to your activity, such as 18.
  3. RDCPASS checks the certified date of birth — We match the identifier to a certified identity and work out the person’s age on the day of the check.
  4. You get the answer — Over or under your threshold, with nothing more disclosed. Or the identity is not found.
  • You set the threshold, for example 18+
  • The answer, with nothing more disclosed
  • Check one customer, or up to 10,000 in a batch

How the check works

RDCPASS resolves the identifier to a certified RDCPASS account, computes the person’s age in whole years from their registered date of birth on the date of the request, and compares it with threshold. The result is above_threshold when the age is greater than or equal to threshold, below_threshold otherwise. A person who turns 18 today is above_threshold for a threshold of 18. The age itself is never returned.

Only above_threshold is a pass

Grant access only when result is above_threshold. A not_found result must be treated as a failed check — ask the person to register with RDCPASS or to use another identifier.

Request body

Plaintext JSON shape, before encryption.

cURL

# Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
curl https://api.rdcpass.cd/v1/age/verifications \
  -X POST \
  -H "X-RDCPASS-Key-Id: key_live_8f2a1c0e9b" \
  -H "X-RDCPASS-Timestamp: 1735689600" \
  -H "X-RDCPASS-Nonce: 7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73" \
  -H "X-RDCPASS-IV: Zt4Kp1Qw8Rm3Xv6N" \
  -H "X-RDCPASS-Signature: 1d6f2a...b48e" \
  -H "Content-Type: application/json" \
  -d '{
    "identifier": { "type": "rdcpass_id", "value": "COD-2103-0214-4937" },
    "threshold": 18,
    "purpose": "age_restricted_access",
    "reference": "player-KIN-55012"
  }'

Node.js

// Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
const body = {
  identifier: { type: 'rdcpass_id', value: 'COD-2103-0214-4937' },
  threshold: 18,
  purpose: 'age_restricted_access',
  reference: 'player-KIN-55012',
}

const res = await fetch('https://api.rdcpass.cd/v1/age/verifications', {
  method: 'POST',
  headers: {
    'X-RDCPASS-Key-Id': 'key_live_8f2a1c0e9b',
    'X-RDCPASS-Timestamp': '1735689600',
    'X-RDCPASS-Nonce': '7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73',
    'X-RDCPASS-IV': 'Zt4Kp1Qw8Rm3Xv6N',
    'X-RDCPASS-Signature': '1d6f2a...b48e',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
})

const result = await res.json()
const allowed = result.result === 'above_threshold'
console.log(allowed) // true

Python

import requests

# Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
body = {
    "identifier": {"type": "rdcpass_id", "value": "COD-2103-0214-4937"},
    "threshold": 18,
    "purpose": "age_restricted_access",
    "reference": "player-KIN-55012",
}

response = requests.post(
    "https://api.rdcpass.cd/v1/age/verifications",
    headers={
        "X-RDCPASS-Key-Id": "key_live_8f2a1c0e9b",
        "X-RDCPASS-Timestamp": "1735689600",
        "X-RDCPASS-Nonce": "7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73",
        "X-RDCPASS-IV": "Zt4Kp1Qw8Rm3Xv6N",
        "X-RDCPASS-Signature": "1d6f2a...b48e",
        "Content-Type": "application/json",
    },
    json=body,
)

result = response.json()
allowed = result["result"] == "above_threshold"
print(allowed)  # True

Go

package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/http"
)

func main() {
	// Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
	body, _ := json.Marshal(map[string]any{
		"identifier": map[string]string{"type": "rdcpass_id", "value": "COD-2103-0214-4937"},
		"threshold":  18,
		"purpose":    "age_restricted_access",
		"reference":  "player-KIN-55012",
	})

	req, _ := http.NewRequest("POST", "https://api.rdcpass.cd/v1/age/verifications", bytes.NewBuffer(body))
	req.Header.Set("X-RDCPASS-Key-Id", "key_live_8f2a1c0e9b")
	req.Header.Set("X-RDCPASS-Timestamp", "1735689600")
	req.Header.Set("X-RDCPASS-Nonce", "7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73")
	req.Header.Set("X-RDCPASS-IV", "Zt4Kp1Qw8Rm3Xv6N")
	req.Header.Set("X-RDCPASS-Signature", "1d6f2a...b48e")
	req.Header.Set("Content-Type", "application/json")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	var result struct {
		Result string `json:"result"`
	}
	if err := json.NewDecoder(resp.Body).Decode(&result); err != nil {
		panic(err)
	}
	allowed := result.Result == "above_threshold"
	fmt.Println(allowed) // true
}

Java

import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class VerifyAge {
    public static void main(String[] args) throws Exception {
        // Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
        String body = """
            {
              "identifier": { "type": "rdcpass_id", "value": "COD-2103-0214-4937" },
              "threshold": 18,
              "purpose": "age_restricted_access",
              "reference": "player-KIN-55012"
            }""";

        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://api.rdcpass.cd/v1/age/verifications"))
            .header("X-RDCPASS-Key-Id", "key_live_8f2a1c0e9b")
            .header("X-RDCPASS-Timestamp", "1735689600")
            .header("X-RDCPASS-Nonce", "7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73")
            .header("X-RDCPASS-IV", "Zt4Kp1Qw8Rm3Xv6N")
            .header("X-RDCPASS-Signature", "1d6f2a...b48e")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(body))
            .build();

        HttpResponse<String> response = HttpClient.newHttpClient()
            .send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}

Rust

use serde_json::json;

#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
    // Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
    let body = json!({
        "identifier": { "type": "rdcpass_id", "value": "COD-2103-0214-4937" },
        "threshold": 18,
        "purpose": "age_restricted_access",
        "reference": "player-KIN-55012"
    });

    let result: serde_json::Value = reqwest::Client::new()
        .post("https://api.rdcpass.cd/v1/age/verifications")
        .header("X-RDCPASS-Key-Id", "key_live_8f2a1c0e9b")
        .header("X-RDCPASS-Timestamp", "1735689600")
        .header("X-RDCPASS-Nonce", "7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73")
        .header("X-RDCPASS-IV", "Zt4Kp1Qw8Rm3Xv6N")
        .header("X-RDCPASS-Signature", "1d6f2a...b48e")
        .json(&body)
        .send()
        .await?
        .json()
        .await?;

    let allowed = result["result"] == "above_threshold";
    println!("{allowed}"); // true
    Ok(())
}

PHP

<?php

// Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
$body = json_encode([
    'identifier' => ['type' => 'rdcpass_id', 'value' => 'COD-2103-0214-4937'],
    'threshold' => 18,
    'purpose' => 'age_restricted_access',
    'reference' => 'player-KIN-55012',
]);

$ch = curl_init('https://api.rdcpass.cd/v1/age/verifications');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_HTTPHEADER => [
        'X-RDCPASS-Key-Id: key_live_8f2a1c0e9b',
        'X-RDCPASS-Timestamp: 1735689600',
        'X-RDCPASS-Nonce: 7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73',
        'X-RDCPASS-IV: Zt4Kp1Qw8Rm3Xv6N',
        'X-RDCPASS-Signature: 1d6f2a...b48e',
        'Content-Type: application/json',
    ],
    CURLOPT_RETURNTRANSFER => true,
]);

$response = curl_exec($ch);
curl_close($ch);

$result = json_decode($response, true);
$allowed = $result['result'] === 'above_threshold';
var_dump($allowed); // bool(true)

C#

using System.Net.Http.Json;
using System.Text.Json;

var client = new HttpClient();

// Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.rdcpass.cd/v1/age/verifications")
{
    Content = JsonContent.Create(new
    {
        identifier = new { type = "rdcpass_id", value = "COD-2103-0214-4937" },
        threshold = 18,
        purpose = "age_restricted_access",
        reference = "player-KIN-55012",
    }),
};
request.Headers.Add("X-RDCPASS-Key-Id", "key_live_8f2a1c0e9b");
request.Headers.Add("X-RDCPASS-Timestamp", "1735689600");
request.Headers.Add("X-RDCPASS-Nonce", "7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73");
request.Headers.Add("X-RDCPASS-IV", "Zt4Kp1Qw8Rm3Xv6N");
request.Headers.Add("X-RDCPASS-Signature", "1d6f2a...b48e");

var response = await client.SendAsync(request);
var result = await response.Content.ReadFromJsonAsync<JsonElement>();
var allowed = result.GetProperty("result").GetString() == "above_threshold";
Console.WriteLine(allowed); // True

Contract to be confirmed by the API team.

FieldTypeRequiredDescription
identifierobjectYesThe person to check, { "type", "value" }. type is rdcpass_id (e.g. COD-2103-0214-4937) or a document type: passport (e.g. OB1234567), ceni (voter card, e.g. 1234567890123), driving_licence or national_id.
thresholdintegerNoMinimum age in whole years, from 1 to 120. Default 18.
purposestring enumYesAlways age_restricted_access, which must be declared for your application in the console.
referencestringIn batchesYour own identifier for this check, echoed back in the response and webhooks. Optional for single calls, required for every batch item.
Request body — by RDCPASS ID (plaintext, before encryption)
{
  "identifier": { "type": "rdcpass_id", "value": "COD-2103-0214-4937" },
  "threshold": 18,
  "purpose": "age_restricted_access",
  "reference": "player-KIN-55012"
}
Request body — by CENI card number, threshold 21 (plaintext, before encryption)
{
  "identifier": { "type": "ceni", "value": "1234567890123" },
  "threshold": 21,
  "purpose": "age_restricted_access",
  "reference": "order-LUB-2026-00931"
}

Response body

A successful call returns 200 OK. above_threshold, below_threshold and not_found are all successful calls, not errors.

FieldTypeDescription
idstringUnique identifier of the check, prefixed age_.
objectstringAlways age_verification.
livemodebooleantrue in production, false in the test environment.
referencestring | nullThe reference you sent, or null.
statusstring enumAlways completed for synchronous calls. Async and batch items can be failed.
resultstring enumabove_threshold, below_threshold or not_found. See the table below.
thresholdintegerThe threshold applied to this check.
identifierobjectThe identifier you sent.
purposestringThe purpose you declared (age_restricted_access).
created_atstringWhen the check was performed (ISO 8601, UTC).
resultMeaningData returned
above_thresholdA certified RDCPASS account exists for the identifier and the person has reached threshold.None beyond the result.
below_thresholdA certified RDCPASS account exists for the identifier and the person has not reached threshold.None beyond the result.
not_foundNo certified RDCPASS account matches the identifier.None.

Keep only what you need

The response holds no personal data. To prove the check, store its id, result and threshold with your own reference.
200 OK — above_threshold (after decryption)
{
  "id": "age_5f1b8c3d27",
  "object": "age_verification",
  "livemode": true,
  "reference": "player-KIN-55012",
  "status": "completed",
  "result": "above_threshold",
  "threshold": 18,
  "identifier": { "type": "rdcpass_id", "value": "COD-2103-0214-4937" },
  "purpose": "age_restricted_access",
  "created_at": "2026-09-26T10:15:02Z"
}
200 OK — below_threshold (after decryption)
{
  "id": "age_2e9d4a7c80",
  "object": "age_verification",
  "livemode": true,
  "reference": "player-GOM-10877",
  "status": "completed",
  "result": "below_threshold",
  "threshold": 18,
  "identifier": { "type": "rdcpass_id", "value": "COD-0910-7734-2051" },
  "purpose": "age_restricted_access",
  "created_at": "2026-09-26T10:17:45Z"
}
200 OK — not_found (after decryption)
{
  "id": "age_9c4e1f6b32",
  "object": "age_verification",
  "livemode": true,
  "reference": "player-KIN-55013",
  "status": "completed",
  "result": "not_found",
  "threshold": 18,
  "identifier": { "type": "rdcpass_id", "value": "COD-4417-0092-6618" },
  "purpose": "age_restricted_access",
  "created_at": "2026-09-26T10:18:10Z"
}

Request modes

Age Verification supports all four request modes. Add Prefer: respond-async to run asynchronously and Idempotency-Key to retry safely. Details in Single, batch & async.

Synchronous (default)Asynchronous (Prefer: respond-async)
Single — POST /v1/age/verifications200 with the result.202 with a job; result via the age_verification.completed webhook or GET /v1/jobs/{job_id}.
Batch — POST /v1/age/verifications/batches200 with all results, up to 50 items.202 with a batch, up to 10,000 items; results via webhook or GET /v1/batches/{batch_id}/results.

Batch example

Typical for re-checking an existing player or subscriber base. Batch-level purpose and threshold apply to every item unless an item overrides them. Each item returns its own result; an invalid item fails on its own without failing the batch.

Synchronous batch (up to 50 items)
curl https://api.rdcpass.cd/v1/age/verifications/batches \
  -X POST \
  -H "X-RDCPASS-Key-Id: key_live_8f2a1c0e9b" \
  -H "X-RDCPASS-Timestamp: 1735689600" \
  -H "X-RDCPASS-Nonce: 7a3c9e1b-5d2f-4b86-a0e4-1c8f6d2b9a73" \
  -H "X-RDCPASS-IV: Zt4Kp1Qw8Rm3Xv6N" \
  -H "X-RDCPASS-Signature: 1d6f2a...b48e" \
  -H "Idempotency-Key: 3f8a1d6c-92e4-4b07-8c5a-e1d9b2f7a604" \
  -H "Content-Type: application/json" \
  --data-binary @batch.json   # Plaintext body shown for readability - encrypt and sign it as described in /docs/authentication before sending.
batch.json (plaintext, before encryption)
{
  "purpose": "age_restricted_access",
  "threshold": 18,
  "items": [
    { "reference": "player-KIN-55012", "identifier": { "type": "rdcpass_id", "value": "COD-2103-0214-4937" } },
    { "reference": "player-GOM-10877", "identifier": { "type": "rdcpass_id", "value": "COD-0910-7734-2051" } },
    { "reference": "player-LUB-20411", "identifier": { "type": "passport", "value": "OB1234567" } },
    { "reference": "player-KIN-55014", "identifier": { "type": "rdcpass_id", "value": "COD-21O3-0214" } }
  ]
}
200 OK (after decryption, abridged)
{
  "object": "list",
  "data": [
    {
      "reference": "player-KIN-55012",
      "status": "succeeded",
      "result": {
        "id": "age_5f1b8c3d27",
        "object": "age_verification",
        "result": "above_threshold",
        "threshold": 18
      }
    },
    {
      "reference": "player-GOM-10877",
      "status": "succeeded",
      "result": {
        "id": "age_2e9d4a7c80",
        "object": "age_verification",
        "result": "below_threshold",
        "threshold": 18
      }
    },
    {
      "reference": "player-LUB-20411",
      "status": "succeeded",
      "result": {
        "id": "age_7b3f0e2a91",
        "object": "age_verification",
        "result": "not_found",
        "threshold": 18
      }
    },
    {
      "reference": "player-KIN-55014",
      "status": "failed",
      "error": {
        "code": "invalid_identifier",
        "message": "identifier.value is not a valid rdcpass_id (expected COD-XXXX-XXXX-XXXX)."
      }
    }
  ],
  "next_cursor": null
}

Asynchronous example

Send the same body with Prefer: respond-async. RDCPASS answers immediately with 202 Accepted and a job; when the check completes, the age_verification.completed event is delivered to your application’s webhook URL with the result embedded. You can also poll GET /v1/jobs/{job_id}. Asynchronous batches of up to 10,000 items return a batch object and emit batch.completed or batch.completed_with_errors. See Webhooks for signature verification.

202 Accepted
HTTP/1.1 202 Accepted
Content-Type: application/json

{
  "id": "job_6a2d9f4e1c",
  "object": "job",
  "service": "age_verification",
  "status": "pending",
  "created_at": "2026-09-26T10:15:00Z",
  "result_url": "/v1/jobs/job_6a2d9f4e1c"
}
Webhook event age_verification.completed (abridged)
{
  "id": "evt_1c7e4a9d3b2f8065",
  "type": "age_verification.completed",
  "created_at": "2026-09-26T10:15:01Z",
  "environment": "production",
  "application_id": "app_5d20e8a1c4",
  "data": {
    "object": {
      "id": "job_6a2d9f4e1c",
      "object": "job",
      "service": "age_verification",
      "status": "completed",
      "created_at": "2026-09-26T10:15:00Z",
      "result_url": "/v1/jobs/job_6a2d9f4e1c",
      "result": {
        "id": "age_5f1b8c3d27",
        "object": "age_verification",
        "reference": "player-KIN-55012",
        "status": "completed",
        "result": "above_threshold",
        "threshold": 18
      }
    }
  }
}

Billing

Each check is billed at the Age Verification base price — there is never a scope surcharge, because no additional scope applies. not_found results are billed at the base rate; requests rejected with an error are not billed. Batch items are billed individually. See Billing.

Capabilities

  • Any threshold — Enforce 13, 16, 18, 21 or any other minimum age set by law, by your regulator or by your own policy.
  • Five accepted identifiers — RDCPASS ID, passport, CENI voter card, driving licence or national ID. Customers can use the one they have on them.
  • No additional data — Additional data scopes never apply here, even if your organization subscribes to them for other services.
  • Batch re-checks — Re-check your whole player or subscriber base by sending up to 10,000 records in one request.
  • Real-time or in the background — Get the answer during sign-up. Large checks can run in the background and notify your system when they finish.
  • A record of every check — You can store each result as proof that you checked age before giving access.

Trust & privacy

Every request states its purpose, and every access is logged for audit.

Requests are signed and encrypted end to end, over mutually authenticated connections.

Production access is granted only after due diligence on both your business and your application.

Frequently asked questions

Which age threshold should I use?

Whichever applies to your activity under Congolese law, your regulator’s rules or your own policy. You set it on each check. If you do not, it defaults to 18.

Will I receive the customer’s date of birth?

No. The response holds no date of birth, no age and no name. If you need them, use KYC Validation, with its own purpose.

What happens if the customer is not found?

Treat it as a failed check. Ask the customer to register with RDCPASS, or to try another identifier such as their passport or CENI voter card.

Can I try it before going live?

Yes. The test environment is free. It returns the same fields as production, using synthetic test identities.

Pricing

Billed per verification.

No data scope applies, so there are no scope surcharges. Batch items are billed at a lower rate and background checks cost the same as instant ones. Requests rejected with an error are never billed, and the test environment is always free.

Possible results

above_thresholdOver the age thresholdBilled in production
The person has the requested age or more. Nothing else is disclosed.
below_thresholdUnder the age thresholdBilled in production
The person does not have the requested age. Nothing else is disclosed.
not_foundNot foundBase price
No identity matches. It is an answer, counted at the base price.
invalid_identifierMalformed identifierNot billed
The identifier must follow the COD-XXXX-XXXX-XXXX format.

Expected result, in test

COD-0000-0000-0001above_threshold18-year threshold
COD-0000-0000-0003above_threshold18-year threshold
COD-0000-0000-0017below_thresholdAged 17, 18-year threshold
COD-0000-0000-0404not_found
COD-0000-0000invalid_identifier

All result codes

Next steps

Esc