---
title: Emirates ID
slug: api-marketplace/emirates-id
description: Learn how to use an OCR-powered API to extract crucial information from Emirates ID cards. Log in and pass the access token as the authorization header, then input the direct URL of the front image of the ID. Explore this document for code examples, respo
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API is used to extract important details from the Emirates ID card using OCR technology.&#x20;

The API extracts personal information including DOB, name, gender, first name and last name. It also extracts information related to nationality, national ID-number and card number of the Emirates ID holder.

![EmiratesID](https://api.archbee.com/api/optimize/w0YdjmC6Uxu0AJ6sPj9OT/DbGypZ5mI2kLGWQryjIGy_image.png "Emirates ID Front and Back Side with MRZ")

## How to call the API

You will need to **[login](https://docs.signzy.com/sandboxapis)** before sending  request. You are required to pass the access token received from the login call, as authorization header in the Emirates ID request.

You will need to pass your ***patronID*** as well received from the login call while calling the API.

## API Input Guidelines

Emirates ID reading system accepts direct URL of the front and back image of Emirates ID.
It detects and extracts the content of the Emirates ID Card from the MRZ region of the back side of the Emirates ID and gives out response for fields mentioned in the "***result**" section in "**Responses***".

The file size limit for the API is **10MB** for each input URL given to the API endpoint.
The endpoint also supports all sorts of image data types including jpg, jpeg, png, jfif, jif, pdf and tiff URL files.

### Sample Request

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/:patronId/foreignidentitiesextractions",
  "name": "Emirates ID extraction",
  "method": "POST",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "patronId",
        "type": "string",
        "children": [],
        "description": ""
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Content-Type",
        "type": "string",
        "children": [],
        "description": "Should always be application/json"
      },
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "Authorization Token"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "description": "Task will be emiratesId"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "files",
            "type": "string",
            "description": "Image file URL in array format"
          },
          {
            "name": "subMessageCheck",
            "kind": "optional",
            "type": "Boolean",
            "description": "Option to Add Sub-Message for Emirates ID Type"
          }
        ],
        "description": "Essential part of the API request"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "9VHjc0su_9mEkdDhuLJOV",
        "code": "{\n    \"essentials\": {\n        \"files\": [\n            \" \",\n            \" \"\n        ],\n        \"subMessageCheck\": true / false\n    },\n    \"id\": \"\",\n    \"patronId\": \" \",\n    \"task\": \"emiratesId\",\n    \"result\": {\n        \"dob\": \" \",\n        \"subMessageCheck\": \" \",\n        \"expiryDate\": \" \",\n        \"nationality\": \" \",\n        \"nationalityCode\": \"SYR\",\n        \"firstName\": \" \",\n        \"lastName\": \" \",\n        \"name\": \" \",\n        \"gender\": \" \",\n        \"idNumber\": \" \",\n        \"cardNumber\": \" \"\n    }\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "wOoSDa4ExAxxF57Sih1kv",
        "language": "400",
        "code": "// When subMessageCheck: false / undefined\n{\n    \"error\": {\n        \"statusCode\": 400,\n        \"name\": \"error\",\n        \"message\": \"Could not extract data\",\n        \"status\": 400\n    }\n}\n\n// \"files\" contain only 1 URL or no URL\n{\n    \"error\": {\n        \"statusCode\": 400,\n        \"name\": \"error\",\n        \"message\": \"\\\"files\\\" must contain 2 items\",\n        \"status\": 400\n    }\n}\n\n// When subMessageCheck: true\n// Back image is missing in \"files\" parameter\n{\n    \"error\": {\n        \"statusCode\": 400,\n        \"name\": \"error\",\n        \"message\": \"Could not extract data\",\n        \"status\": 400,\n        \"subMessage\": \"Back image is missing\"\n    }\n}\n\n// When subMessageCheck: true\n// Front image is missing in \"files\" parameter\n{\n    \"error\": {\n        \"statusCode\": 400,\n        \"name\": \"error\",\n        \"message\": \"Could not extract data\",\n        \"status\": 400,\n        \"subMessage\": \"Front image is missing\"\n    }\n}\n\n// When subMessageCheck: true\n// Both are front ID images in \"files\" parameter\n{\n    \"error\": {\n        \"statusCode\": 400,\n        \"name\": \"error\",\n        \"message\": \"Could not extract data\",\n        \"status\": 400,\n        \"subMessage\": \"Both are front ID images\"\n    }\n}\n\n// When subMessageCheck: true\n// Both are back ID images in \"files\" parameter\n{\n    \"error\": {\n        \"statusCode\": 400,\n        \"name\": \"error\",\n        \"message\": \"Could not extract data\",\n        \"status\": 400,\n        \"subMessage\": \"Both are back ID images\"\n    }\n}\n\n// When subMessageCheck: true\n// When \"files\" contain no URLs\n{\n    \"error\": {\n        \"statusCode\": 400,\n        \"name\": \"error\",\n        \"message\": \"\\\"files\\\" must contain at least 1 items\",\n        \"status\": 400\n    }\n}\n",
        "customLabel": ""
      },
      {
        "id": "CPmHDbmuXYoCXsLYZD5mT",
        "language": "403",
        "code": "{\n    \"error\": {\n        \"statusCode\": 403,\n        \"name\": \"Error\",\n        \"message\": \"Forbidden\",\n        \"status\": 403\n    }\n}",
        "customLabel": ""
      },
      {
        "id": "1iIzeUtpn1HW5ncYn4ZAj",
        "language": "422",
        "code": "{\n    \"error\": {\n        \"statusCode\": 422,\n        \"name\": \"Error\",\n        \"message\": \"Unprocessable Entity\",\n        \"status\": 422\n    }\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "9VHjc0su_9mEkdDhuLJOV"
  },
  "examples": {
    "languages": [
      {
        "id": "CwB3tQlaD0cm9gnD7k19s",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/..patronID../foreignidentitiesextractions' \\\n--header 'Accept: */*' \\\n--header 'Accept-Language: en-US,en;q=0.8' \\\n--header 'Authorization: <token>' \\\n--header 'content-type: application/json' \\\n--data-raw '{\n    \"task\": \"emiratesId\",\n    \"essentials\": {\n        \"files\": [\n            \"<Front Image Url>\",\n            \"<Back Image Url>\"\n        ],\n        \"subMessageCheck\": <Boolean>\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "dOxTiBfFfNM5MvPi9wKCO",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/..patronID../foreignidentitiesextractions' \\\n--header 'Accept: */*' \\\n--header 'Accept-Language: en-US,en;q=0.8' \\\n--header 'Authorization: <token>' \\\n--header 'content-type: application/json' \\\n--data-raw '{\n    \"task\": \"emiratesId\",\n    \"essentials\": {\n        \"files\": [\n            \"<image file Url> \"\n        ],\n        \"subMessageCheck\": <Boolean>\n    }\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "dOxTiBfFfNM5MvPi9wKCO"
  },
  "description": "This API extracts data from the emirate Id",
  "currentNewParameter": {
    "label": "Path Parameter",
    "value": "pathParameters"
  },
  "autoGeneratedAnchorSlug": "emirates-id-extraction",
  "legacyHash": "yHdx6ETf6muW_fb3tsO4P"
}
```
:::

### Response Parameter

| PARAMETERS                 | DESCRIPTION                                                                |
| -------------------------- | -------------------------------------------------------------------------- |
| id                         | Unique id of the response                                                  |
| patronId                   | Unique id of the user generated from login call                            |
| task                       | emiratesId                                                                 |
| essentials.files           | URLs containing emirates ID front and back side                            |
| essentials.subMessageCheck | Toggle to Include Sub-Message Indicating<br />Emirates ID Type in Response |
| result.dob                 | Date of Birth of the Id holder                                             |
| result.expiryDate          | Date of Expiry of the Emirates ID                                          |
| result.nationality         | Nationality of the individual                                              |
| result.nationalityCode     | Country code of the nationality of the individual                          |
| result.firstName           | First Name of the individual                                               |
| result.lastName            | Last Name of the individual                                                |
| result.name                | Name of the individual                                                     |
| result.gender              | Gender of the individual                                                   |
| result.idNumber            | ID number of the individual's Id                                           |
| result.cardNumber          | Number on the card of the individual                                       |

### Error Codes

| Status Code | DESCRIPTION                          |
| ----------- | ------------------------------------ |
| 200         | Successful Processing of the Request |
| 400         | Bad Request / Could not extract data |
| 403         | Forbidden / No permission            |
| 422         | Unprocessable Entity                 |

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](mailto\:help@signzy.com).
:::

