Skip to content
RDCpassRDCpassMinistère de l’Économie NumériqueMinistère de l’Économie Numérique
IdentityAge Verification

Check a customer’s age against their certified date of birth

Age Verification tells you whether a person has reached the minimum age you have to enforce. The answer is based on the date of birth held in the RDCPASS national digital identity, so you do not rely on a birthday the customer typed in or a scan of their papers, and you can prove the check took place.

Two test identities at an age threshold of 18: COD-0000-0000-0001, above_threshold; COD-0000-0000-0017, below_threshold. Neither response returns the date of birth.

Why businesses choose Age Verification

  • Keep minors out, with proof

    An “I am over 18” checkbox proves nothing. This answer comes from the certified national register, and every check leaves a record.

  • Hold less personal data

    The service never returns documents, addresses or biometrics. You keep only what an age check needs.

  • Short sign-up

    Customers give an identifier they already have. Nobody has to photograph their papers and upload them.

How it works

  1. Your customer gives you an identifier

  2. You set the minimum age

  3. RDCPASS checks the certified date of birth

  4. You get the answer

Read the step-by-step flow

What you receive

Each check returns a short answer:

below_threshold

{  "result": "below_threshold",  "threshold": 18,  "identifier": {    "type": "rdcpass_id",    "value": "COD-0910-7734-2051"  },  "purpose": "age_restricted_access",  …}

not_found

{  "result": "not_found",  "threshold": 18,  "identifier": {    "type": "rdcpass_id",    "value": "COD-4417-0092-6618"  },  "purpose": "age_restricted_access",  …}

Contract to be confirmed by the API team.

Reference example
  1. The result: over your threshold, under it, or not found
  2. The threshold that was applied, for your own records

In the console

A test verification in the console log: the result, nothing else.

Metadata panel of a Age Verification test request in the console: request ID, time, application, service, mode, purpose, result, masked test identity, applied and withheld scopes.Metadata panel of a Age Verification test request in the console: request ID, time, application, service, mode, purpose, result, masked test identity, applied and withheld scopes.Metadata panel of a Age Verification test request in the console: request ID, time, application, service, mode, purpose, result, masked test identity, applied and withheld scopes.

One integration for test and production

Read the request, response and errors

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.

Trust & privacy

  1. Only the answer is returned. Documents, addresses and biometrics are never part of an age check.

  • mTLS
  • HMAC-SHA256
  • AES-256-GCM
  • Audit log
Read what the response contains

Where it’s used

Pricing

Billed per verification.

See full pricing

Start using Age Verification