> This page is for Internet banking (beta).

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.api.corpx.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.api.corpx.com/_mcp/server.

# Create a standalone identity verification

POST https://client.api.corpx.com/v1/identity-verifications
Content-Type: application/json

Creates a standalone CPF identity check and returns the link that must
be opened by the person being verified.

This route requires a **master M2M** (`client_credentials`) credential,
`X-Tenant-Id`, the `identity_verification.manage` scope and the
`identity_verification` feature enabled for the tenant. User sessions
and delegated child credentials are rejected.

`callbackUri` must be an **exact match** for a URI registered for the
tenant. Prefix matches, wildcards, case normalization and adding or
removing query parameters are not accepted.

### Capture methods

`method` chooses how the person is captured:

* `link` (default): CorpX returns a `verificationLink` that opens the
  provider's hosted page (Unico or DracmaTrust, per `provider`).
* `facetec_sdk`: your app embeds the **FaceTec SDK v10**, opens the
  camera itself and sends each capture to
  `POST /v1/identity-verifications/{id}/facetec/process`. Requires
  `provider: dracma_trust`, the tenant feature
  `identity_verification_facetec_sdk` and the SDK keys configured by
  CorpX; otherwise `403 facetec_sdk_not_enabled`. The `201` returns
  the `facetec` block (session token + SDK keys) and no
  `verificationLink`.

### The three modes (`referenceMatch`, `facetec_sdk` only)

| `referenceMatch`   | What is proven                                              | Compared against                                         | Quota kind         |
| ------------------ | ----------------------------------------------------------- | -------------------------------------------------------- | ------------------ |
| `none`             | A live person is in front of the camera (3D liveness / PAD) | nobody                                                   | `liveness`         |
| `dracma` (default) | Liveness **and** the face belongs to the CPF                | DracmaTrust's reference base for the CPF (1:1, 3D:2D)    | `face_match_cpf`   |
| `image`            | Liveness **and** the face matches a photo you send          | `referenceImage` sent in `/facetec/process` (1:1, 3D:2D) | `face_match_image` |

An `APPROVED` with `referenceMatch: none` only proves that a live
person completed the capture — it does **not** prove who they are.
Read `checks.faceMatch.result` (`not_performed`) and treat it as a
step-up for an already-authenticated session, never as onboarding.
When a match mode is requested but not yet available at the provider,
the create responds `422 facetec_match_unavailable`; the API never
silently downgrades to liveness-only.

Glossary: **1:1** compares one capture against one reference (this
API); **1:N** searches a capture in a gallery (not offered);
**3D:3D** compares two FaceTec 3D FaceMaps; **3D:2D** compares a 3D
FaceMap against a 2D photo (CPF base or `referenceImage`); **FAR /
FRR** are the false-accept and false-reject rates of the matcher;
**PAD** is presentation-attack detection (the liveness check).

Recommendation: `password_reset` / `second_factor_reset` → `dracma`
or `image` (prove identity); `high_value_transaction` /
`sensitive_action` inside an authenticated session → `none` is
acceptable when the person was already identified at login;
`link` remains the right choice when you do not control the device.

### Quota per kind

The monthly quota is counted **per kind** (`link_unico`,
`link_dracma`, `liveness`, `face_match_image`, `face_match_cpf`),
per tenant, per BRT calendar month. Link kinds default to **10**; SDK
kinds default to **0** (blocked until CorpX enables them —
`403 identity_verification_kind_not_enabled`). Every `201` consumes
one slot of its kind, including verifications that later fail,
expire or are never consumed; slots are never refunded. A closed
quota returns HTTP `429` with
`identity_verification_monthly_limit_exceeded` and `details.kind`.
This is distinct from the short-window `rate_limited` error, which
also uses HTTP `429` and is shared by all kinds. The
`X-RateLimit-*` headers describe the kind of the verification created.

Do not send `Idempotency-Key`: every POST deliberately opens a new
proof and a `201` always consumes one monthly quota slot.

Reference: https://docs.api.corpx.com/ib/referencia/identity-verification/create-identity-verification

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Headers

- `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing.
- `X-Request-Timestamp` (string, required) — Unix seconds. Required on the signed host; tolerance is 300s either way (`403 request_timestamp_skew`).
- `X-Content-SHA256` (string, required) — Lowercase hex SHA-256 of the body. An empty body hashes the empty string, so the header is always present. Mismatch returns `400 body_hash_mismatch`.
- `X-Request-Signature` (string, required) — Detached JWS (`<protected>..<signature>`, ES256 or PS256) over `METHOD\nPATH?QUERY\nTIMESTAMP\nIDEMPOTENCY_KEY_OR_EMPTY\nX_CONTENT_SHA256`.

### Body (application/json)

This endpoint expects an IdentityVerificationCreateRequest.

- `document` (string, required) — CPF with exactly 11 digits and no punctuation.
- `purpose` (enum, required) — Sensitive journey that this proof is allowed to authorize.
  - Allowed values: `password_reset`, `second_factor_reset`, `high_value_transaction`, `sensitive_action`
- `referenceId` (string, required) — Caller-owned identifier for the journey being authorized. It must be repeated exactly when consuming.
- `callbackUri` (string, required) — Exact tenant-registered URI to which the browser returns after the identity journey.
- `displayMessage` (string, optional) — Optional one-line plain text shown to the person. HTML, Markdown, links and controls are rejected. Maximum 240 characters.
- `ttlMinutes` (integer, optional, default: 30) — Lifetime of the pending verification link, in minutes.
- `consumeTtlMinutes` (integer, optional, default: 10) — Time after approval during which the result may be consumed, in minutes.
- `provider` (enum, optional) — Identity provider. Omitted = the tenant's configured hosted provider. `facetec_sdk` requires `dracma_trust`.
  - Allowed values: `unico`, `dracma_trust`
- `method` (enum, optional, default: link) — How the person is captured. `link` (default) opens the provider's hosted page via `verificationLink`; `facetec_sdk` means your app embeds the FaceTec SDK v10 and sends captures to `/facetec/process`.
  - Allowed values: `link`, `facetec_sdk`
- `referenceMatch` (enum, optional, default: dracma) — Only for `method: facetec_sdk`. `none` = liveness only (proves a live person, not who they are); `dracma` (default) = liveness + 1:1 face match against DracmaTrust's reference for the CPF; `image` = liveness + 1:1 face match against the `referenceImage` you send in `/facetec/process`.
  - Allowed values: `none`, `dracma`, `image`

## Response

### 201

Verification created. This response consumes one monthly quota slot of its kind.

- `verificationId` (string, required) — Identifier used by all subsequent identity verification endpoints.
- `status` (enum, required) — A new verification always starts as `PENDING`.
  - Allowed values: `PENDING`
- `provider` (enum, required)
  - Allowed values: `unico`, `dracma_trust`
- `method` (enum, required, default: link) — How the person is captured. `link` (default) opens the provider's hosted page via `verificationLink`; `facetec_sdk` means your app embeds the FaceTec SDK v10 and sends captures to `/facetec/process`.
  - Allowed values: `link`, `facetec_sdk`
- `expiresAt` (datetime, required) — RFC 3339 instant at which the pending verification expires.
- `purpose` (enum, optional) — Sensitive journey that this proof is allowed to authorize.
  - Allowed values: `password_reset`, `second_factor_reset`, `high_value_transaction`, `sensitive_action`
- `referenceId` (string, optional)
- `document` (string, optional)
- `referenceMatch` (enum, optional, default: dracma) — Only for `method: facetec_sdk`. `none` = liveness only (proves a live person, not who they are); `dracma` (default) = liveness + 1:1 face match against DracmaTrust's reference for the CPF; `image` = liveness + 1:1 face match against the `referenceImage` you send in `/facetec/process`.
  - Allowed values: `none`, `dracma`, `image`
- `verificationLink` (string, optional) — Link to open for the person who owns the CPF. Only for `method: link`.
- `facetec` (IdentityVerificationFaceTecSDK, optional) — FaceTec Browser SDK v10 bootstrap for `method: facetec_sdk`. `deviceKeyIdentifier` is not a secret (it is embedded in the app) and is the only value the SDK takes at `initializeWithSessionRequest`. The session token stays on your backend: the SDK v10 does not accept it. Echo it as `sessionId` on each `/facetec/process`. It lives 10 minutes.
- `attemptsRemaining` (integer, optional) — Failed captures still allowed (starts at 3). Only for `method: facetec_sdk`.
- `checks` (IdentityVerificationChecks, optional) — Per-capability result, read separately from the aggregate `status`. `faceMatch.result` is `not_performed` when `referenceMatch` is `none`: an `APPROVED` in that mode only proves liveness.

## Errors

### 400 Bad Request Error

Invalid input. Stable codes include `invalid_payload`, `invalid_document`, `invalid_purpose`, `invalid_reference_id`, `invalid_display_message`, `invalid_callback_uri`, `invalid_verification_ttl`, `invalid_consume_ttl`, `invalid_provider`, `invalid_method` and `invalid_reference_match`.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 401 Unauthorized Error

Authentication failed or token missing.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 403 Forbidden Error

Feature disabled, missing `identity_verification.manage`, caller is not a master M2M credential, `method: facetec_sdk` not enabled for the tenant (`facetec_sdk_not_enabled`), or the quota kind is not contracted (`identity_verification_kind_not_enabled`, with `details.kind`).

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 422 Unprocessable Entity Error

`facetec_match_unavailable` — the requested `referenceMatch` (`dracma` or `image`) is not available at the provider yet. Use `referenceMatch: none` or wait. The API never downgrades silently.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 429 Too Many Requests Error

Two independent controls return this status: - `identity_verification_monthly_limit_exceeded` — the tenant has used the monthly quota of this kind (`details.kind`) in the current BRT calendar month. Do not retry until the next month. - `rate_limited` — a short-window traffic limit was exceeded. This does not mean the monthly quota is exhausted.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 500 Internal Server Error

Unexpected server error.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 502 Bad Gateway Error

The provider returned an error while opening the FaceTec session (`provider_error`).

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 503 Service Unavailable Error

Provider or durable workflow temporarily unavailable (`provider_unavailable`, `facetec_unavailable`, `workflow_unavailable`).

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

## Types

### IdentityVerificationFaceTecSDK

FaceTec Browser SDK v10 bootstrap for `method: facetec_sdk`. `deviceKeyIdentifier` is not a secret (it is embedded in the app) and is the only value the SDK takes at `initializeWithSessionRequest`. The session token stays on your backend: the SDK v10 does not accept it. Echo it as `sessionId` on each `/facetec/process`. It lives 10 minutes.

- `sessionToken` (string, required) — Provider session token. Keep it on your backend and send it as `sessionId` on `/facetec/process`. The Browser SDK v10 does not take a session token.
- `sessionTokenExpiresAt` (datetime, required) — Instant after which the provider rejects the token (`facetec_session_expired`). Renew at `/facetec/session`.
- `deviceKeyIdentifier` (string, required) — FaceTec Device Key Identifier. Pass it to `FaceTecSDK.initializeWithSessionRequest`.

### IdentityVerificationChecks

Per-capability result, read separately from the aggregate `status`. `faceMatch.result` is `not_performed` when `referenceMatch` is `none`: an `APPROVED` in that mode only proves liveness.

- `liveness` (enum, required) — 3D liveness (presentation-attack detection) result.
  - Allowed values: `pending`, `passed`, `failed`
- `faceMatch` (IdentityVerificationChecksFaceMatch, required)

### ErrorResponsePartner

Raw error from the settlement bank, when the failure came from it. Diagnostic only.

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional) — Field the partner pointed at, when any.

### IdentityVerificationChecksFaceMatch

- `result` (enum, required) — 1:1 face match result against the chosen reference.
  - Allowed values: `pending`, `passed`, `failed`, `not_performed`
- `reference` (enum, optional) — Reference used. Omitted when `result` is `not_performed`.
  - Allowed values: `dracma`, `image`

## Examples

### method=link (hosted page)

**Response**

```json
{
  "verificationId": "idv_01J8Y7C8D9E0F1G2H3J4",
  "status": "PENDING",
  "provider": "unico",
  "method": "link",
  "expiresAt": "2026-09-24T14:30:00Z",
  "purpose": "password_reset",
  "referenceId": "usr_01J8Y6N7M8P9Q0R1S2T3",
  "document": "12345678909",
  "verificationLink": "https://tenant.api.corpx.com/v1/identity-verifications/verify#capability-redacted"
}
```

**SDK Code**

```python method=link (hosted page)
import requests

url = "https://client.api.corpx.com/v1/identity-verifications"

headers = {
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript method=link (hosted page)
const url = 'https://client.api.corpx.com/v1/identity-verifications';
const options = {
  method: 'POST',
  headers: {
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go method=link (hosted page)
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://client.api.corpx.com/v1/identity-verifications"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("X-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby method=link (hosted page)
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/identity-verifications")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java method=link (hosted page)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/identity-verifications")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php method=link (hosted page)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/identity-verifications', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp method=link (hosted page)
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/identity-verifications");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift method=link (hosted page)
import Foundation

let headers = [
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/identity-verifications")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### method=facetec_sdk (app embeds the SDK)

**Response**

```json
{
  "verificationId": "idv_01J8Y7C8D9E0F1G2H3J4",
  "status": "PENDING",
  "provider": "dracma_trust",
  "method": "facetec_sdk",
  "expiresAt": "2026-09-24T14:30:00Z",
  "purpose": "password_reset",
  "referenceId": "usr_01J8Y6N7M8P9Q0R1S2T3",
  "document": "12345678909",
  "referenceMatch": "dracma",
  "facetec": {
    "sessionToken": "eyJhbGciOi...redacted",
    "sessionTokenExpiresAt": "2026-09-24T14:10:00Z",
    "deviceKeyIdentifier": "dXXXXXXXXXXXXXXXXXXXXXXX"
  },
  "attemptsRemaining": 3,
  "checks": {
    "liveness": "pending",
    "faceMatch": {
      "result": "pending",
      "reference": "dracma"
    }
  }
}
```

**SDK Code**

```python method=facetec_sdk (app embeds the SDK)
import requests

url = "https://client.api.corpx.com/v1/identity-verifications"

headers = {
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript method=facetec_sdk (app embeds the SDK)
const url = 'https://client.api.corpx.com/v1/identity-verifications';
const options = {
  method: 'POST',
  headers: {
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go method=facetec_sdk (app embeds the SDK)
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://client.api.corpx.com/v1/identity-verifications"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("X-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby method=facetec_sdk (app embeds the SDK)
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/identity-verifications")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java method=facetec_sdk (app embeds the SDK)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/identity-verifications")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php method=facetec_sdk (app embeds the SDK)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/identity-verifications', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp method=facetec_sdk (app embeds the SDK)
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/identity-verifications");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift method=facetec_sdk (app embeds the SDK)
import Foundation

let headers = [
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/identity-verifications")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Identity Verification_createIdentityVerification_example

**Request**

```json
{
  "document": "12345678909",
  "purpose": "password_reset",
  "referenceId": "usr_01J8Y6N7M8P9Q0R1S2T3",
  "callbackUri": "https://app.example.com/identity-verification/return",
  "displayMessage": "Confirme sua identidade para redefinir a senha.",
  "ttlMinutes": 30,
  "consumeTtlMinutes": 10
}
```

**Response**

```json
{
  "verificationId": "idv_01J8Y7C8D9E0F1G2H3J4",
  "status": "PENDING",
  "provider": "unico",
  "method": "link",
  "expiresAt": "2026-09-24T14:30:00Z",
  "purpose": "password_reset",
  "referenceId": "usr_01J8Y6N7M8P9Q0R1S2T3",
  "document": "12345678909",
  "verificationLink": "https://tenant.api.corpx.com/v1/identity-verifications/verify#capability-redacted"
}
```

**SDK Code**

```python Identity Verification_createIdentityVerification_example
import requests

url = "https://client.api.corpx.com/v1/identity-verifications"

payload = {
    "document": "12345678909",
    "purpose": "password_reset",
    "referenceId": "usr_01J8Y6N7M8P9Q0R1S2T3",
    "callbackUri": "https://app.example.com/identity-verification/return",
    "displayMessage": "Confirme sua identidade para redefinir a senha.",
    "ttlMinutes": 30,
    "consumeTtlMinutes": 10
}
headers = {
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Identity Verification_createIdentityVerification_example
const url = 'https://client.api.corpx.com/v1/identity-verifications';
const options = {
  method: 'POST',
  headers: {
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"document":"12345678909","purpose":"password_reset","referenceId":"usr_01J8Y6N7M8P9Q0R1S2T3","callbackUri":"https://app.example.com/identity-verification/return","displayMessage":"Confirme sua identidade para redefinir a senha.","ttlMinutes":30,"consumeTtlMinutes":10}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Identity Verification_createIdentityVerification_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://client.api.corpx.com/v1/identity-verifications"

	payload := strings.NewReader("{\n  \"document\": \"12345678909\",\n  \"purpose\": \"password_reset\",\n  \"referenceId\": \"usr_01J8Y6N7M8P9Q0R1S2T3\",\n  \"callbackUri\": \"https://app.example.com/identity-verification/return\",\n  \"displayMessage\": \"Confirme sua identidade para redefinir a senha.\",\n  \"ttlMinutes\": 30,\n  \"consumeTtlMinutes\": 10\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Identity Verification_createIdentityVerification_example
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/identity-verifications")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"document\": \"12345678909\",\n  \"purpose\": \"password_reset\",\n  \"referenceId\": \"usr_01J8Y6N7M8P9Q0R1S2T3\",\n  \"callbackUri\": \"https://app.example.com/identity-verification/return\",\n  \"displayMessage\": \"Confirme sua identidade para redefinir a senha.\",\n  \"ttlMinutes\": 30,\n  \"consumeTtlMinutes\": 10\n}"

response = http.request(request)
puts response.read_body
```

```java Identity Verification_createIdentityVerification_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/identity-verifications")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"document\": \"12345678909\",\n  \"purpose\": \"password_reset\",\n  \"referenceId\": \"usr_01J8Y6N7M8P9Q0R1S2T3\",\n  \"callbackUri\": \"https://app.example.com/identity-verification/return\",\n  \"displayMessage\": \"Confirme sua identidade para redefinir a senha.\",\n  \"ttlMinutes\": 30,\n  \"consumeTtlMinutes\": 10\n}")
  .asString();
```

```php Identity Verification_createIdentityVerification_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/identity-verifications', [
  'body' => '{
  "document": "12345678909",
  "purpose": "password_reset",
  "referenceId": "usr_01J8Y6N7M8P9Q0R1S2T3",
  "callbackUri": "https://app.example.com/identity-verification/return",
  "displayMessage": "Confirme sua identidade para redefinir a senha.",
  "ttlMinutes": 30,
  "consumeTtlMinutes": 10
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp Identity Verification_createIdentityVerification_example
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/identity-verifications");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"document\": \"12345678909\",\n  \"purpose\": \"password_reset\",\n  \"referenceId\": \"usr_01J8Y6N7M8P9Q0R1S2T3\",\n  \"callbackUri\": \"https://app.example.com/identity-verification/return\",\n  \"displayMessage\": \"Confirme sua identidade para redefinir a senha.\",\n  \"ttlMinutes\": 30,\n  \"consumeTtlMinutes\": 10\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Identity Verification_createIdentityVerification_example
import Foundation

let headers = [
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "document": "12345678909",
  "purpose": "password_reset",
  "referenceId": "usr_01J8Y6N7M8P9Q0R1S2T3",
  "callbackUri": "https://app.example.com/identity-verification/return",
  "displayMessage": "Confirme sua identidade para redefinir a senha.",
  "ttlMinutes": 30,
  "consumeTtlMinutes": 10
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/identity-verifications")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```