> ## Documentation Index
> Fetch the complete documentation index at: https://docs.checkin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit an application

> Send data you collected to the API.

Use the API when you collect the documents and selfie in your own UI, or already have them. You choose the checks per request with `verificationTypes`.

## Request

`POST /api/v1/application` with `X-API-Key`.

```json application.json theme={null}
{
  "metadata": {
    "externalId": "customer-123",
    "labels": { "journey": "account-opening" }
  },
  "verificationTypes": ["data-extraction", "face-matching"],
  "application": {
    "fields": [
      { "category": "First name", "content": "Alex" },
      { "category": "Last name", "content": "Example" },
      { "category": "Date of birth", "content": "1990-01-20" }
    ],
    "documents": [
      {
        "files": [
          { "kind": "front", "uri": "data:image/jpeg;base64,..." },
          { "kind": "back", "uri": "data:image/jpeg;base64,..." }
        ]
      }
    ],
    "selfie": {
      "files": [
        { "kind": "selfie", "uri": "data:image/jpeg;base64,..." }
      ]
    }
  }
}
```

```bash theme={null}
curl --request POST "https://partner.sb.getid.dev/api/v1/application" \
  --header "X-API-Key: ${CHECKIN_API_KEY}" \
  --header "Content-Type: application/json" \
  --data-binary @application.json
```

If you authenticate with an API token, the application is linked to that token. It is accessible only with that token, a token with root access, or the API key.

## What goes in `application`

| Field | Content |
| - | - |
| `fields[]` | Profile data: `category` and `content` |
| `documents[]` | Identity documents. See [Document Check](https://docs.checkin.com/products/document-check.md#input). |
| `selfie.files[]` | Selfie media. See [Selfie and Face Match](https://docs.checkin.com/products/selfie-face-match.md#input). |
| `poa.file` | Proof of address document. See [Proof of Address](https://docs.checkin.com/products/proof-of-address.md). |
| `bank.file`, `bank.transactionDetails` | Bank statement. See [Bank Statement](https://docs.checkin.com/products/bank-statement.md). |
| `documentAnalysis.file` | Supporting document. See [Document Analysis](https://docs.checkin.com/products/document-analysis.md). |
| `cameraInfo` | Camera labels used for capture |

## Response

```json theme={null}
{ "responseCode": 200, "id": "5e62110968e3fb4d655756d1" }
```

Store the `id` and get the result by [webhook](https://docs.checkin.com/integrate/results/webhooks.md) or [API](https://docs.checkin.com/integrate/results/retrieve-results.md).

## Media

Files are sent as data URIs: `data:<mime-type>;base64,<data>`.

| Field | `kind` | Formats |
| - | - | - |
| `documents[].files[]` | `front`, `back`, `single-page` | Images, PDF |
| `selfie.files[]` | see [Selfie and Face Match](https://docs.checkin.com/products/selfie-face-match.md#input) | Images; video as WebM (VP8) or MP4 (AVC) |
| `poa.file`, `bank.file`, `documentAnalysis.file` | see the product page | Images, PDF |

### File requirements

* Maximum file size: 10 MB per file
* Recommended image resolution: 720p or higher

## Batch submission

To verify existing records in bulk, batch submission is available on request.

See [Batch submission](https://docs.checkin.com/integrate/api/batch-submission.md).

## Errors

| Status | Body |
| - | - |
| `400` | `{ "responseCode": 400, "errors": [ValidationError] }`. Each error has `keyword`, `dataPath`, `schemaPath`, `params`, `message`. |
| `401` | `{ "responseCode": 401, "errorMessage": "Unauthorized" }` |

## Next

* [API recipes](https://docs.checkin.com/integrate/api/recipes.md)
* [Batch submission](https://docs.checkin.com/integrate/api/batch-submission.md)
* [Statuses and concerns](https://docs.checkin.com/integrate/results/statuses-and-concerns.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.