---
title: Emirates ID API
slug: v2-apis/emirates-id-api
description: Learn about an API that utilizes OCR technology to extract key information from an Emirates ID card. This comprehensive document includes instructions on API calls, code examples, and details on the parameters returned in the API response, such as date of
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

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

## 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.

## API Input Guidelines

Emirates ID reading system accepts direct URL of the front image of Emirates ID.

### 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"
          }
        ],
        "description": "Essential part of the API request"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "9VHjc0su_9mEkdDhuLJOV",
        "code": "{\n    \"essentials\": {\n        \"files\": [\n            \" \",\n            \" \"\n        ]\n    },\n    \"id\": \"\",\n    \"patronId\": \" \",\n    \"task\": \"emiratesId\",\n    \"result\": {\n        \"dob\": \" \",\n        \"expiryDate\": \" \",\n        \"nationality\": \" \",\n        \"nationalityCode\": \"SYR\",\n        \"firstName\": \" \",\n        \"lastName\": \" \",\n        \"name\": \" \",\n        \"gender\": \" \",\n        \"idNumber\": \" \",\n        \"cardNumber\": \" \"\n    }\n}",
        "language": "200",
        "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    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "dOxTiBfFfNM5MvPi9wKCO",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/..patronID../foreignidentitiesextractions' \\\r\n--header 'Accept: */*' \\\r\n--header 'Accept-Language: en-US,en;q=0.8' \\\r\n--header 'Authorization: <token>' \\\r\n--header 'content-type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"emiratesId\",\r\n    \"essentials\": {\r\n        \"files\": [\r\n            \"<image file Url> \"\r\n        ]\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "CwB3tQlaD0cm9gnD7k19s"
  },
  "description": "This API extracts data from the emirate Id",
  "currentNewParameter": {
    "label": "Path Parameter",
    "value": "pathParameters"
  }
}
```
:::

### 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   |
| 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              |



:::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](#).
:::

