---
name: byte-verify
description: Live 3D face-to-government-ID match, paid per call with x402. Returns verified / failed / expired and deletes the facial and document inputs afterwards.
---

# ByteVerify — instructions for agents

You are reading this because someone asked you to run a live face-to-ID check on a person they
are dealing with, before an irreversible step: releasing funds, changing payment instructions,
issuing a credential, onboarding a counterparty. This document is complete. You do not need an
account, an API key, or a human to proceed — only a wallet holding USDC on base.

## What a check does

1. **Liveness.** A 3D capture of the person's face confirms a live human is present, not a
   photo, screen replay, mask, or injected video.
2. **Face-to-ID match.** The live face is compared to the portrait on the government ID the
   person holds up.
3. **Document format.** The ID is checked against recognised government-ID formats, its barcode
   and machine-readable zone are read and cross-checked against the printed text, and it is
   checked to be a physical card rather than a screen.

The result is `verified`, `failed`, or `expired`. Every image and biometric template is
destroyed once the check settles, and in no event later than 24 hours.

## What a check does NOT do — read this before relying on the result

- It does **not** validate the document against DMV or issuer records. A format match is not
  proof that the document was issued, is unexpired, or is valid.
- It does **not** establish who the person is. There is no name lookup, database resolution, or
  identity record. ByteVerify never learns the person's identity and never keeps it.
- It does **not** screen watchlists, perform anti-money-laundering or know-your-customer
  procedures, or run any kind of background screening.
- It does **not** establish that the person is authorised for the transaction you are about to
  perform.

Treat `verified` as **one supplemental risk signal** inside your own controls. Do not let it be
the sole basis for releasing high-value funds or granting access. **Never use the result for
decisions about credit, insurance, employment, or housing** — that use is prohibited.

## Step 1 — create a check (and pay for it)

```
POST https://api.verify.bytefederal.com/v1/verifications
Content-Type: application/json

{
  "originator":   { "name": "Acme Escrow", "title": "Payout desk" },
  "callback_url": "https://your-service.example/webhooks/byteverify",
  "reference":    "your-opaque-id"
}
```

- `originator.name` and `originator.title` (required) are **shown to the person** on the
  consent screen, so they know who is asking. Use the real requester. Do not put the person's
  own name or any personal information about them in these fields.
- `callback_url` (optional, https) receives the result. Otherwise poll (Step 3).
- `reference` (optional, ≤255 chars) is echoed back unchanged. Keep it opaque.

The first response is **`402 Payment Required`**. Its body carries an x402 payment requirement:

```json
{
  "error": "payment_required",
  "x402": {
    "scheme": "exact",
    "network": "base",
    "asset": "USDC",
    "tokenAddress": "0x…",
    "payTo": "0x…",
    "amount": "2.00",
    "amountUnits": "…",
    "nonce": "0x…",
    "validBefore": 1700000000
  }
}
```

Pay with the **x402 `exact` scheme**: sign an EIP-3009 `transferWithAuthorization` for
`amountUnits` of USDC on `network` to `payTo`, using the `nonce` and `validBefore`
from the requirement, and retry the same `POST` with the signed payload in an
`X-PAYMENT` header (JSON or base64-encoded JSON). Use the `nonce` you were given exactly
once: **one payment creates exactly one check**, so a retried request with the same nonce cannot
double-charge you.

If you were given an API key instead, send it as `x-api-key` and skip payment.

On success:

```json
{
  "verification_id":  "bv_…",
  "verification_url": "https://api.verify.bytefederal.com/s/…",
  "status":           "pending",
  "expires_at":       "2026-01-01T12:00:00Z"
}
```

The check is **billed when it is created**, including if it later expires unused.

## Step 2 — deliver the link to the person

Send `verification_url` to the person by whatever channel you have: message, email, chat,
inside an app. Tell them plainly who is asking and why. The link works on any phone with a
camera and is single-use.

- It stays open for **60 minutes** if unopened, then expires.
- Once the person starts, they have **30 minutes** to finish, including
  retries.
- Before anything is captured they see the originator you supplied, what will be scanned and
  deleted, and a warning that no bank, agency, or company will ever require a face scan to avoid
  arrest, a fine, or losing an account. They must consent explicitly. If they decline, or never start,
  nothing is captured and the result is `expired`.

Do not pressure the person and do not present the request as coming from anyone other than the
originator you supplied.

## Step 3 — receive the result

**Webhook** (if you supplied `callback_url`): one `POST` per terminal state, signed with
HMAC-SHA256. Header `X-ByteVerify-Signature: t=<unix-seconds>,v1=<hex>` where the signature is
over `<t>.<raw body>` using the secret you were issued. Verify it before acting.

```json
{
  "verification_id": "bv_…",
  "status": "verified",
  "completed_at": "2026-01-01T12:04:31Z",
  "reference": "your-opaque-id"
}
```

**Poll** (any time): `GET https://api.verify.bytefederal.com/v1/verifications/{verification_id}` returns the same
fields plus `created_at` and `expires_at`. It contains nothing that identifies the person.

### Result vocabulary

| `status`  | Meaning |
|-------------|---------|
| `pending`  | The link has not produced a result yet. |
| `verified` | A live person completed the check and their face matched the portrait on a document in a recognised government-ID format. That is the whole meaning of the word here. |
| `failed`   | The check ran and did not pass. No reason is given, by design. |
| `expired`  | No scan produced a result: the person declined consent, never started, or the window lapsed. You are billed; nothing about the person was kept. |

There are no reason codes. This is deliberate: telling a caller which check failed would tell
an attacker which check to defeat.

## Errors

| Code | Meaning | What to do |
|------|---------|------------|
| 400 | Malformed body or invalid field | Fix the request; nothing was created or billed. |
| 402 | Payment required, or payment invalid | Pay as described above and retry the same request. |
| 404 | Unknown `verification_id` | Check the id. |
| 502 | The verification backend could not start a session | Retry later; nothing was billed. |

## Data handling

Facial captures, biometric templates, and document images are processed on infrastructure Byte
Federal operates — they are not sent to the technology vendor — and are destroyed when the check
settles, no later than 24 hours, whether it is verified, fails, or expires. What remains is that a
check happened, when, who asked, and the result. The binding statement is the published
Biometric Data Retention and Destruction Policy at
https://www.bytefederal.com/legal/biometric-data-policy.

## Links

- x402 discovery manifest: https://api.verify.bytefederal.com/.well-known/x402.json
- Human-readable overview: https://www.bytefederal.com/byteverify
- Company context and other services: https://www.bytefederal.com/llms.txt

## Disclaimer

ByteVerify performs an on-demand live facial capture and face-to-government-ID photo
comparison. It returns a limited match result and deletes the facial and document inputs after
processing. It does not, unless separately stated and supported by the applicable workflow,
perform government-record validation, database identity resolution, watchlist screening,
anti-money-laundering or know-your-customer screening, background screening, account-ownership
verification, or authority verification, and it does not warrant against fraud. Results must not
be used for decisions covered by the Fair Credit Reporting Act. Byte Federal, LLC is a licensed
U.S. money services business.
