---
agentTools:
  projectIndex: https://docs.metamap.com/llms.txt
---

# Send Inputs

Use this API to send documents, selfies, videos, or other identifying information

Use this POST request to send the user's identifiers (for example, images of document - front/back, selfie image, liveness video) for validation.

This API supports uploads for the following merits:

* [Document Verification](https://docs.metamap.com/docs/document-verification)
* [Biometric Verification](https://docs.metamap.com/docs/biometrics)
* [Custom Document](https://docs.metamap.com/docs/custom-document)
* [Custom Input](https://docs.metamap.com/docs/custom-input)
* [Bank Account Statement](https://docs.metamap.com/docs/bank-account-data)

<br />

# File Requirements

## Image Files

Image files (such as document photos and selfies) must have at minimum resolution of 600x600 pixels with a maximum file size of 50MB. The following is a list of supported image file formats:

* `*.jpg`
* `*.jpeg`
* `*.png`
* `*.pdf` — exclusive to custom documents & Bank Account Statements

## Video Files

* MP4
* WebM
* QuickTime (`*.mov`)
* 3GP (`*.3gpp`)
* X-Matroska (`_.mkv`,`_.mk3d`, `_.mka`, `_.mks` )

***

## Document Handling

> 📘 One-Sided Document Handling
>
> The API can handle both one- and two-sided documents.
>
> * If a user only sends the front of a one-sided document, MetaMap will immediately start the verification process
> * If a user only sends the front of a document that may have one or two sides, MetaMap will wait 10 minutes for the image of the document back before starting the verification process with only the front.
> * You can use the [Skip Verification Upload Wait Time](https://docs.metamap.com/v1.3/reference/skip-verification-upload) API for documents that may have one or two sides to skip the 10 minute wait time.
>
> For a list of countries whose documents have one side, two sides, or one or two sides, [go here](https://docs.google.com/spreadsheets/d/1lU15rR7cLWLh9lX-yobUNk9E_tFg7cCVzmgYutnfmrg/edit?gid=0#gid=0).

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "➡️",
  "id": "652e955c23085a002d2bf033",
  "link": "https://docs.metamap.com/v1.4/recipes/verify-a-users-document-skip-the-document-back",
  "slug": "verify-a-users-document-skip-the-document-back",
  "title": "Verify a user's document (skip the document back)"
}
[/block]

<br />

## Request Body Requirements

* The body parameters should be in type form.
* The JSON inputs must match the flow configuration order on your MetaMap Dashboard for both documents and biometric requirements or you will not be able to send this request.
  * The merits that use the Send User Identifiers API use the following order of precedence in every metamap:
    1. Document Verification
    2. Biometric Verification
    3. Custom Document
    4. Bank Account Data
  * The first document of the first merit must have a group number starting at 0. Additional documents must be assigned separate incremental group numbers in order of appearance in the metamap.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "📝",
  "id": "652e955c23085a002d2bf035",
  "link": "https://docs.metamap.com/v1.4/recipes/upload-a-national-id-and-a-custom-document",
  "slug": "upload-a-national-id-and-a-custom-document",
  "title": "Upload a National ID and a Custom Document"
}
[/block]

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "📜",
  "id": "652e955c23085a002d2bf034",
  "link": "https://docs.metamap.com/v1.4/recipes/upload-a-custom-document",
  "slug": "upload-a-custom-document",
  "title": "Upload a Custom Document"
}
[/block]

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "🏦",
  "id": "652e955c23085a002d2bf037",
  "link": "https://docs.metamap.com/v1.4/recipes/upload-a-bank-account-statement",
  "slug": "upload-a-bank-account-statement",
  "title": "Upload a Bank Account Statement"
}
[/block]

<br />

# Example Requests

The following are example requests to upload documents and images.

```curl Driving License, Passport, Proof of Residency, Selfie
curl --location --request POST 'https://api.getmati.com/v2/identities/{identity}/send-input' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer <access_token>' \
--form 'inputs=[
  {
    "inputType": "document-photo",
    "group": 0,
    "data": {
      "type": "driving-license",
      "country": "MX",
      "page": "front",
      "filename": "MX_NI_FRONT.jpg"
    }
  },
  {
    "inputType": "document-photo",
    "group": 0,
    "data": {
      "type": "driving-license",
      "country": "MX",
      "page": "back",
      "filename": "MX_NI_BACK.jpg"
    }
  },
    {
    "inputType": "document-photo",
    "group": 1,
    "data": {
      "type": "passport",
      "country": "MX",
      "page": "front",
      "filename": "MX_PASSPORT.jpg"
    }
   {
    "inputType": "document-photo",
    "group": 2,
    "data": {
      "type": "proof-of-residency",
      "country": "MX",
      "page": "front",
      "filename": "proof-of-residence.png"
    }
  },
  {
    "inputType": "selfie-photo",
    "data": {
      "type": "selfie-photo",
      "filename": "selfie-photo.jpg"
    }
  }
]' \
--form 'document=@/C:/PATH_TO_FILE/MX_NI_FRONT.jpg' \
--form 'document=@/C:/PATH_TO_FILE/MX_NI_BACK.jpg' \
--form 'document=@/C:/PATH_TO_FILE/MX_PASSPORT.jpg' \
--form 'document=@/C:/PATH_TO_FILE/proof-of-residence.png' \
--form 'selfie=@/C:/PATH_TO_FILE/selfie-photo.jpg'
```
```Text National ID
curl --location --request POST 'https://api.getmati.com/v2/identities/{identity}/send-input' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer <access_token>' \
--form 'inputs=[ 
    {"inputType":"document-photo","group":0, 
        "data":{
           "type":"national-id",
           "country":"BR",
           "region":"",
           "page":"front",
           "filename":"43_front.jpg"
           }
        }, 
    {"inputType":"document-photo","group":0, 
        "data":{
           "type":"national-id",
           "country":"BR",
           "region":"",
           "page":"back",
           "filename":"44_back.jpg"
           }
        } 
    ]' 
--form 'document=@/C:/PATH_TO_FILE/43_front.jpg' 
--form 'document=@/C:/PATH_TO_FILE/44_back.jpg'
```
```Text National ID, Selfie Video
curl --location --request POST 'https://api.getmati.com/v2/identities/{identity}/send-input' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer <access_token>' \
--form 'inputs=[
  {
    "inputType": "document-photo",
    "group": 0,
    "data": {
      "type": "national-id",
      "country": "US",
      "region" : "CA",
      "page": "front",
      "filename": "US_CA_DL_FRONT.jpg"
    }
  },
  {
    "inputType": "document-photo",
    "group": 0,
    "data": {
      "type": "national-id",
      "country": "US",
      "region" : "CA",
      "page": "back",
      "filename": "US_CA_DL_BACK.jpg"
    }
  },
   {
    "inputType": "selfie-video",
    "data": {
      "filename": "Liveness_video.mp4"
    }
  }
]' \
--form 'document=@/C:/PATH_TO_FILE/US_CA_DL_FRONT.jpg' \
--form 'document=@/C:/PATH_TO_FILE/US_CA_DL_BACK.jpg' \
--form 'video=@/C:/PATH_TO_FILE/Liveness_video.mp4'
```
```Text Custom Document: Birth Certificate
curl --location --request POST 'https://api.getmati.com/v2/identities/{identity}/send-input' \
--header 'Content-Type: x-www-form-urlencoded' \
--header 'Authorization: Bearer <access_token>' \
--form 'inputs=[
  {
  "inputType":"custom-document-photo",
  "group":0,
  "data":{
    "type":"custom-birth-certificate",
    "page":"front",
    "filename":"birth_front.jpg"
    }
  },
  {
  "inputType":"custom-document-photo",
  "group":0,
  "data":{
    "type":"custom-birth-certificate",
    "page":"back",
    "filename":"birth_back.jpg"
    }
  }
]' \
--form 'custom-document=@/C:/PATH_TO_FILE/birth_front.jpg' \
--form 'custom-document=@/C:/PATH_TO_FILE/birth_back.jpg' \
  
  
```
```Text Supported and Custom Documents: National ID, Custom Document
curl --location --request POST 'https://api.getmati.com/v2/identities/{identity}/send-input' \
--header 'Authorization: Bearer <access_token>' \
--form 'document=@"/<PATH>/co-nid-front.png"' \
--form 'document=@"/<PATH>/co-nid-back.png"' \
--form 'inputs=[
    {
    "inputType":"document-photo",
    "group":0,
    "data":
        {
        "type":"national-id",
        "country":"CO",
        "page":"front",
        "filename":"co-nid-front.png"
        }
    },
    {
    "inputType":"document-photo",
    "group":0,
    "data":
        {
        "type":"national-id",
        "country":"CO",
        "page":"back",
        "filename":"co-nid-back.png"
        }
    },
    {
    "inputType":"custom-document-photo",
    "group":1,
    "data":
        {
        "type":"custom-dummy-doc",
        "page":"multi","filename":"dummy-doc.pdf"
        }
    }
]' \
--form 'custom-document=@"/<PATH>/dummy-doc.pdf"'
```
```Text Custom fields
curl --location --request POST 'https://api.getmati.com/v2/identities/{{identity}}/send-input' 
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer {{access_token}}' \
--form 'inputs="[
{
  "inputType": "custom-fields",
  "data": {
    "fields": [
      {
        "atomicFieldParams": {
         "mapping": {       // mapping is required on only for fields which have system mapping
            "country": "BR",// 2 letter ISO code of the country
            "key": "cpf"    // key of the mapping system field
          },
          "type": "text",   // type of the field: text/date/select/checkbox
          "value": "111111111-111"  // sent value
        },
        "name": "Document_ID",
        "type": "atomic"    // constant
      },
      {
        "atomicFieldParams": {
          "mapping": {      // mapping is required on only for fields which have system mapping
            "country": "AA",
            "key": "fullName"
          },
          "type": "text",   // type of the field
          "value": "John Doe"  // sent value
        },
        "name": "fullname", // Name of the custom input field
        "type": "atomic"    // constant
      }
    ],
    "country": "BR"
  }
}
]"
```
```Text Bank Account Statement
curl --location --request POST 'https://api.getmati.com/v2/identities/{{identity}}/send-input' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer {{access_token}}' \
--form 'inputs="[
   {
     "inputType":"financial-information-bank-statement-parsing-request",
      "data":{
         "type":"bank-document",
         "country":"MX",
         "institutionId":"{bank_id}",
         "password":"MALC710206TX1",
         "filename":"{bank-statement1}.pdf"
      }
   },
   {
      "inputType":"financial-information-bank-statement-parsing-request",
      "data":{
         "type":"bank-document",
         "country":"MX",
         "institutionId":"{bank_id}",
         "filename":"{bank-statement2}.pdf"
      }
   }
]"' \
--form 'bank-document=@"/{PATH}/{bank-statement1}.pdf"' \
--form 'bank-document=@"/{PATH}/{bank-statement2}.pdf"' \
```

<br />

# Error Codes

<br />

API errors can be one of three types:

* `IntegrationError`: There's an error in integrating of API, such as the input does not match the Dashboard configuration
* `ValidationError`: Provided data does not pass validation. User should upload another photo or video file.
* `SystemError`: Errors related to the server infrastructure.

The `201` responses occur after all uploads have completed and one or more data points has failed validation.

The following table lists the error codes

[block:parameters]
{
  "data": {
    "h-0": "Error Code",
    "h-1": "Description",
    "0-0": "`media.notFound`",
    "0-1": "File name in descriptor does not match with name of file being sent",
    "1-0": "`documentPhoto.badText`",
    "1-1": "Document field validation failed",
    "2-0": "`documentPhoto.blurryText`",
    "2-1": "Document photo is too blurry",
    "3-0": "`documentPhoto.smallImageSize`",
    "3-1": "Document photo resolution is too low",
    "4-0": "`documentPhoto.unexpectedData`",
    "4-1": "Unexpected error in document reading",
    "5-0": "`documentPhoto.noText`",
    "5-1": "Document photo has no text",
    "6-0": "`documentPhoto.noFace`",
    "6-1": "Document photo has no face (for validation steps that require a face)",
    "7-0": "`documentPhoto.grayscaleImage`",
    "7-1": "Document photo is in grayscale",
    "8-0": "`documentPhoto.screenPhoto`",
    "8-1": "Document photo is a screen shot. User must upload a different photo",
    "9-0": "`documentPhoto.noDocument`",
    "9-1": "Document photo does not match a known document template",
    "10-0": "`documentPhoto.missingFields`",
    "10-1": "Document photo is missing some required fields",
    "11-0": "`documentPhoto.wrongFormat`",
    "11-1": "Some required fields from the document use an invalid format",
    "12-0": "`documentPhoto.noMrz`",
    "12-1": "Document photo has no Machine-Readable Zone (MRZ, for validation steps that require one)",
    "13-0": "`documentPhoto.badMrz`",
    "13-1": "Document photo has corrupted Machine-Readable Zone  \n(MRZ, for validation steps that require one)",
    "14-0": "`documentPhoto.noPdf417`",
    "14-1": "Document photo has no PDF417 barcode (for validation steps that require one)",
    "15-0": "`documentPhoto.badPdf417`",
    "15-1": "Document photo has corrupted PDF417 barcode (for validation steps that require one)",
    "16-0": "`documentPhoto.typeMismatch`",
    "16-1": "Document type claimed by user and document type detected from photo are different",
    "17-0": "`documentPhoto.countryMismatch`",
    "17-1": "Document country claimed by user and document country detected from document photo are different",
    "18-0": "`documentPhoto.croppedDocument`",
    "18-1": "Document boundaries are not completely visible in the photo",
    "19-0": "`voiceVideo.conversionFailed`",
    "19-1": "Video conversion failed",
    "20-0": "`documentPhoto.sideMismatch`",
    "20-1": "Document's claimed side (front or back) does not match with the submitted side",
    "21-0": "`documentPhoto.occludedDocument`",
    "21-1": "Make sure your document is fully seen without any obstructions like hand or objects",
    "22-0": "`documentPhoto.similarImages`",
    "22-1": "Make sure the front side or the back side of the document is not being sent twice",
    "23-0": "`documentPhoto.FirstInputNotProcessed`",
    "23-1": "If the first input fails validation, the second is rejected until the first is successfully re-uploaded.",
    "24-0": "`voiceVideo.multipleFaces`",
    "24-1": "Multiple simultaneous faces are detected in the video",
    "25-0": "`voiceVideo.noFace`",
    "25-1": "No faces detected in the video",
    "26-0": "`bankDocument.passwordRequired`",
    "26-1": "The bank statement is password-protected. Please provide the password to open and read the file.",
    "27-0": "`bankDocument.passwordFailed`",
    "27-1": "The bank statement is password-protected. Please provide the correct password to read the file.",
    "28-0": "`bankDocument.badFileName`",
    "28-1": "Bank-document file name differs from input file name.",
    "29-0": "`bankDocument.invalidMetadata`",
    "29-1": "Please upload the original bank statement. Altered files will not be accepted.",
    "30-0": "`bankDocument.statementNotSupported`",
    "30-1": "The bank statement template is unsupported. Contact MetaMap support for help.",
    "31-0": "`CustomDocumentPhoto.multiPageInputError`",
    "31-1": "The file sent as Custom Document has multiple pages, when in the Flow Settings, multiple pages document is not supported.",
    "32-0": "`selfiePhoto.maskDetected`",
    "32-1": "The user was wearing a mask during the biometric validation",
    "33-0": "`selfiePhoto.closedEyes`",
    "33-1": "The user had their eyes closed during the biometric validation",
    "34-0": "`selfiePhoto.noFace`",
    "34-1": "No face was found during the biometric validation",
    "35-0": "`selfiePhoto.multipleFaces`",
    "35-1": "Multiple faces were found during the biometric validation",
    "36-0": "`selfiePhoto.sunGlasses`",
    "36-1": "The user was wearing lenses during the biometric validation",
    "37-0": "`selfiePhoto.validationError`",
    "37-1": "The selfie was not properly taken"
  },
  "cols": 2,
  "rows": 38,
  "align": [
    "left",
    "left"
  ]
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Post Identities",
    "version": "1.4"
  },
  "servers": [
    {
      "url": "https://api.prod.metamap.com/v2/identities"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{identity}/send-input": {
      "post": {
        "summary": "Send Inputs",
        "description": "Use this API to send documents, selfies, videos, or other identifying information",
        "operationId": "send-inputs",
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "description": "The identity is in the successful response to a Verification Creation request",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "multipart/form-data"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "inputs": {
                    "type": "object",
                    "required": [
                      "inputType"
                    ],
                    "properties": {
                      "inputType": {
                        "type": "string",
                        "description": "User input type"
                      },
                      "group": {
                        "type": "integer",
                        "description": "Index of verificationSteps with given inputType in merchant configurations. Each document must have a unique group number, starting from 0. MetaMap-supported documents must precede custom documents.",
                        "format": "int32"
                      },
                      "data": {
                        "type": "object",
                        "required": [
                          "filename"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "For a MetaMap-supported document, the type of document, (driving-license, national-id, passport, proof-of-residency). For a selfie, selfie-photo. For a liveness video, selfie-video For a custom document, use the webhook label name you defined when you added the Custom Document merit to your metamap"
                          },
                          "country": {
                            "type": "string",
                            "description": "Country code. Used only for MetaMap-supported documents to specify the document's country of issue. Omit this parameter for custom documents. Uses ISO 2 codes."
                          },
                          "region": {
                            "type": "string",
                            "description": "Used only to verify users in the United States. For non-US users, leave blank (example, \"\"). Refers to the user's state of residency (for example, \"AL\" for \"Alabama\"). Uses the US Postal Service state abbreviations"
                          },
                          "page": {
                            "type": "string",
                            "description": "The document's page side.  1-sided documents require only the front 2-sided documents can be uploaded as two separate files (front and back) 2-sided Custom documents can be uploaded as 2 separate image files (front and back) or as a single *.pdf file (multi) Custom documents with >2 sides must upload a single *.pdf file (multi)"
                          },
                          "filename": {
                            "type": "string",
                            "description": "The name of the file being uploaded."
                          }
                        }
                      }
                    }
                  },
                  "document": {
                    "type": "string",
                    "description": "MetaMap-supported documents only. Location of file to upload.",
                    "format": "binary"
                  },
                  "custom-document": {
                    "type": "string",
                    "description": "Custom documents only. Location of file to upload.",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Successful Response, Fully Validated": {
                    "value": "[\n    {\n        \"data\": {\n            \"inputType\": \"selfie-photo\",\n            \"type\": \"selfie-photo\",\n            \"filename\": \"selfie.png\"\n        },\n        \"result\": true\n    },\n    {\n        \"data\": {\n            \"inputType\": \"document-photo\",\n            \"type\": \"national-id\",\n            \"country\": \"MX\",\n            \"page\": \"front\",\n            \"filename\": \"INE-front.jpg\"\n        },\n        \"result\": true\n    },\n    {\n        \"data\": {\n            \"inputType\": \"document-photo\",\n            \"type\": \"national-id\",\n            \"country\": \"MX\",\n            \"page\": \"back\",\n            \"filename\": \"INE-back.jpg\"\n        },\n        \"result\": true\n    }\n]"
                  },
                  "Successful Response, Partial Validation": {
                    "value": "[\n    {\n        \"data\": {\n            \"inputType\": \"selfie-photo\",\n            \"type\": \"selfie-photo\",\n            \"filename\": \"selfie.png\"\n        },\n        \"error\": {\n            \"type\": \"ValidationError\",\n            \"code\": \"selfiePhoto.noFace\"\n        }\n    },\n    {\n        \"data\": {\n            \"inputType\": \"document-photo\",\n            \"type\": \"national-id\",\n            \"country\": \"MX\",\n            \"page\": \"front\",\n            \"filename\": \"INE-front.jpg\"\n        },\n        \"result\": true\n    },\n    {\n        \"data\": {\n            \"inputType\": \"document-photo\",\n            \"type\": \"national-id\",\n            \"country\": \"MX\",\n            \"page\": \"back\",\n            \"filename\": \"INE-back.jpg\"\n        },\n        \"result\": true\n    }\n]"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Successful Response, Fully Validated",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "data": {
                            "type": "object",
                            "properties": {
                              "inputType": {
                                "type": "string",
                                "example": "selfie-photo"
                              },
                              "type": {
                                "type": "string",
                                "example": "selfie-photo"
                              },
                              "filename": {
                                "type": "string",
                                "example": "selfie.png"
                              }
                            }
                          },
                          "result": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          }
                        }
                      }
                    },
                    {
                      "title": "Successful Response, Partial Validation",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "data": {
                            "type": "object",
                            "properties": {
                              "inputType": {
                                "type": "string",
                                "example": "selfie-photo"
                              },
                              "type": {
                                "type": "string",
                                "example": "selfie-photo"
                              },
                              "filename": {
                                "type": "string",
                                "example": "selfie.png"
                              }
                            }
                          },
                          "error": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "example": "ValidationError"
                              },
                              "code": {
                                "type": "string",
                                "example": "selfiePhoto.noFace"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Error In The Input Parameters": {
                    "value": "{\n  \"code\": 400,\n  \"message\": \"No input strategy found for document-photo\"\n}"
                  },
                  "Bad Input Structure": {
                    "value": "{\n  \"code\": 400,\n  \"message\": \"Invalid structure of request body\",\n  \"name\": \"MoleculerError\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Error In The Input Parameters",
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "message": {
                          "type": "string",
                          "example": "No input strategy found for document-photo"
                        }
                      }
                    },
                    {
                      "title": "Bad Input Structure",
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid structure of request body"
                        },
                        "name": {
                          "type": "string",
                          "example": "MoleculerError"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request POST 'https://api.getmati.com/v2/identities/{{identity}}/send-input' \\\n--header 'Content-Type: multipart/form-data' \\\n--header 'Authorization: Bearer {{access_token}}' \\\n--form 'inputs=[\n  {\n    \"inputType\": \"document-photo\",\n    \"group\": 0,\n    \"data\": {\n      \"type\": \"driving-license\",\n      \"country\": \"MX\",\n      \"page\": \"front\",\n      \"filename\": \"MX_NI_FRONT.jpg\"\n    }\n  },\n  {\n    \"inputType\": \"document-photo\",\n    \"group\": 0,\n    \"data\": {\n      \"type\": \"driving-license\",\n      \"country\": \"MX\",\n      \"page\": \"back\",\n      \"filename\": \"MX_NI_BACK.jpg\"\n    }\n  },\n    {\n    \"inputType\": \"document-photo\",\n    \"group\": 1,\n    \"data\": {\n      \"type\": \"passport\",\n      \"country\": \"MX\",\n      \"page\": \"front\",\n      \"filename\": \"MX_PASSPORT.jpg\"\n    }\n   {\n    \"inputType\": \"document-photo\",\n    \"group\": 2,\n    \"data\": {\n      \"type\": \"proof-of-residency\",\n      \"country\": \"MX\",\n      \"page\": \"front\",\n      \"filename\": \"proof-of-residence.png\"\n    }\n  },\n  {\n    \"inputType\": \"selfie-photo\",\n    \"data\": {\n      \"type\": \"selfie-photo\",\n      \"filename\": \"selfie-photo.jpg\"\n    }\n  }\n]' \\\n--form 'document=@/C:/PATH_TO_FILE/MX_NI_FRONT.jpg' \\\n--form 'document=@/C:/PATH_TO_FILE/MX_NI_BACK.jpg' \\\n--form 'document=@/C:/PATH_TO_FILE/MX_PASSPORT.jpg' \\\n--form 'document=@/C:/PATH_TO_FILE/proof-of-residence.png' \\\n--form 'selfie=@/C:/PATH_TO_FILE/selfie-photo.jpg'",
              "name": "Driving License + Passport + Proof of Residency + Selfie"
            },
            {
              "language": "curl",
              "code": "curl --location --request POST 'https://api.getmati.com/v2/identities/{{_id}}/send-input' \\\n--header 'Content-Type: multipart/form-data' \\\n--header 'Authorization: Bearer {{access_token}}' \\\n--form 'inputs=[ \n    {\"inputType\":\"document-photo\",\"group\":0, \n        \"data\":{\"type\":\"national-id\",\"country\":\"BR\",\"region\":\"\",\"page\":\"front\",\"filename\":\"43_front.jpg\"}}, \n    {\"inputType\":\"document-photo\",\"group\":0, \n        \"data\":{\"type\":\"national-id\",\"country\":\"BR\",\"region\":\"\",\"page\":\"back\",\"filename\":\"44_back.jpg\"}} \n    ]' \n--form 'document=@/C:/PATH_TO_FILE/43_front.jpg' \n--form 'document=@/C:/PATH_TO_FILE/44_back.jpg'",
              "name": "National ID"
            },
            {
              "language": "curl",
              "code": "curl --location --request POST 'https://api.getmati.com/v2/identities/{{_id}}/send-input' \\\n--header 'Content-Type: multipart/form-data' \\\n--header 'Authorization: Bearer {{access_token}}' \\\n--form 'inputs=[\n  {\n    \"inputType\": \"document-photo\",\n    \"group\": 0,\n    \"data\": {\n      \"type\": \"national-id\",\n      \"country\": \"US\",\n      \"region\" : \"CA\",\n      \"page\": \"front\",\n      \"filename\": \"US_CA_DL_FRONT.jpg\"\n    }\n  },\n  {\n    \"inputType\": \"document-photo\",\n    \"group\": 0,\n    \"data\": {\n      \"type\": \"national-id\",\n      \"country\": \"US\",\n      \"region\" : \"CA\",\n      \"page\": \"back\",\n      \"filename\": \"US_CA_DL_BACK.jpg\"\n    }\n  },\n   {\n    \"inputType\": \"selfie-video\",\n    \"data\": {\n      \"filename\": \"Liveness_video.mp4\"\n    }\n  }\n]' \\\n--form 'document=@/C:/PATH_TO_FILE/US_CA_DL_FRONT.jpg' \\\n--form 'document=@/C:/PATH_TO_FILE/US_CA_DL_BACK.jpg' \\\n--form 'video=@/C:/PATH_TO_FILE/Liveness_video.mp4'",
              "name": "National ID + Selfie Video"
            },
            {
              "language": "curl",
              "code": "curl --location --request POST 'https://api.getmati.com/v2/identities/{id}/send-input' \\\n--header 'Content-Type: x-www-form-urlencoded' \\\n--header 'Authorization: Bearer {{access_token}}' \\\n--form 'inputs=[\n  {\n  \"inputType\":\"custom-document-photo\",\n  \"group\":0,\n  \"data\":{\n    \"type\":\"custom-birth-certificate\",\n    \"page\":\"front\",\n    \"filename\":\"birth_front.jpg\"\n    }\n  },\n  {\n  \"inputType\":\"custom-document-photo\",\n  \"group\":0,\n  \"data\":{\n    \"type\":\"custom-birth-certificate\",\n    \"page\":\"back\",\n    \"filename\":\"birth_back.jpg\"\n    }\n  }\n]' \\\n--form 'custom-document=@/C:/PATH_TO_FILE/birth_front.jpg' \\\n--form 'custom-document=@/C:/PATH_TO_FILE/birth_back.jpg' \\\n  \n  ",
              "name": "Custom Document - Birth Certificate"
            },
            {
              "language": "curl",
              "code": "curl --location --request POST 'https://api.getmati.com/v2/identities/{id}/send-input' \\\n--header 'Authorization: Bearer {{TOKEN}}' \\\n--form 'document=@\"/<PATH>/co-nid-front.png\"' \\\n--form 'document=@\"/<PATH>/co-nid-back.png\"' \\\n--form 'inputs=[\n    {\n    \"inputType\":\"document-photo\",\n    \"group\":0,\n    \"data\":\n        {\n        \"type\":\"national-id\",\n        \"country\":\"CO\",\n        \"page\":\"front\",\n        \"filename\":\"co-nid-front.png\"\n        }\n    },\n    {\n    \"inputType\":\"document-photo\",\n    \"group\":0,\n    \"data\":\n        {\n        \"type\":\"national-id\",\n        \"country\":\"CO\",\n        \"page\":\"back\",\n        \"filename\":\"co-nid-back.png\"\n        }\n    },\n    {\n    \"inputType\":\"custom-document-photo\",\n    \"group\":1,\n    \"data\":\n        {\n        \"type\":\"custom-dummy-doc\",\n        \"page\":\"multi\",\"filename\":\"dummy-doc.pdf\"\n        }\n    }\n]' \\\n--form 'custom-document=@\"/<PATH>/dummy-doc.pdf\"'",
              "name": "National ID + Custom Document"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "652e955c23085a002d2bf03a:669123ff74e10c00485b306a"
}
```