---
title: "Validate Saudi National ID & Iqama API"
slug: validate-saudi-national-id
url: https://apyhub.com/odelyo/service/validate-saudi-national-id
provider: Odelyo
categories: [Verification Kit]
tags: [saudi-id, iqama, identity-validation, kyc]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Validate Saudi National ID & Iqama API

Saudi ID validation API: check a National ID or Iqama number by format and checksum. Get valid, the ID type and problem codes as JSON. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/odelyo/validate-saudi-national-id/saudi-ids` | What it does Validates a Saudi ID or Iqama number provided in the request body and returns the vali… | 10 |

## Endpoint reference

### Saudi ID and Iqama

`POST https://api.eu.apyhub.com/odelyo/validate-saudi-national-id/saudi-ids` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `value` | body | string | yes |  |

#### Quickstart

Validate a single value by sending it in a JSON body.

```bash
curl -X POST "https://api.eu.apyhub.com/odelyo/validate-saudi-national-id/saudi-ids" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"value":"1000000008"}'
```

#### What you'll get back

Returns a JSON object with `data` (the validation result) and `meta` (request id and version). Below is the real response for the request above.

```json
{
  "data": {
    "valid": true,
    "input": "1000000008",
    "normalized": "1000000008",
    "problems": [],
    "type": "citizen",
    "id_type": "citizen",
    "document": "National ID"
  },
  "meta": {
    "request_id": "req_415f5ebc93e84b40",
    "version": "v1"
  }
}
```

## About

## What it does

The Saudi ID validation API checks a Saudi National ID or Iqama number. Send the number in `value` and get back `valid`, the cleaned-up number and the reasons when it fails.

The check runs on the number itself. It must have 10 digits and start with 1 (citizen, National ID) or 2 (resident, Iqama). The last digit must pass the official checksum. Spaces, dashes and Arabic-Indic digits are cleaned up first, so ١٠٠٠٠٠٠٠٠٨ works.

A valid result also tells you the holder type. `id_type` is `citizen` or `resident`, and `document` is `National ID` or `Iqama (residence permit)`. Failed checks list codes in `problems`, such as `must_be_10_digits`, `must_start_with_1_or_2` or `checksum_failed`.

Teams use the Saudi ID validation API in KYC and onboarding forms. It also helps with Iqama checks in HR systems and data cleanup.

This is a format and checksum check. It catches typos and made-up numbers but does not confirm that the ID is registered with the Saudi government.

To check many IDs at once, use the [Batch Validate MENA IDs API](https://apyhub.com/odelyo/service/mena-id-and-data-validation-api). For the next KYC step, screen names with the [Sanctions Screening API](https://apyhub.com/martin10291/service/sanctions-list-screening).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/odelyo/service/validate-saudi-national-id
