---
title: Capture API
canonical: https://developer.unico.io/developers/sdks-and-tools/flutter/api-reference/capture-api
locale: en
generated_by: markdown-export
---

- [/](/)
- [SDKs and Tools](/developers/sdks-and-tools/overview)
- [Flutter SDK](/developers/sdks-and-tools/flutter/requirements)
- API Reference
- Capture API

# Capture API

Methods to start a session
| Method | Description |
| --- | --- |
| `openCameraSelfie({listener, webAppToken})` | Opens the selfie camera, passing the `process.webAppToken` returned by Create Process |
| `openCameraDocument({documentType, listener})` | Opens the document camera with the desired `DocumentType` |

Capture options / parameters
**`DocumentType`** — see [Enums](/developers/sdks-and-tools/flutter/api-reference/enums).

Result types and fields
**`ResultCamera`** — object returned on successful capture (selfie or document).

| Field | Type | Description |
| --- | --- | --- |
| `base64` | `String` | Captured image in Base64 |
| `encrypted` | `String` | JWT to be sent to the backend |

**`SuccessResult`** — object returned by `onSuccess` in a Unico API integration.

| Field | Type | Description |
| --- | --- | --- |
| `processId` | `String` | Process identifier used to query the validation result via the REST API |

Last updated on **Oct 22, 2026**