> Toden documentation. For the full index fetch /llms.txt. Every page is available as Markdown by appending .md to its URL. Every endpoint is under /api/v1. Identity verification and Risk Intelligence are separate contracts there with different error shapes; /api/kyc and /api/identity are older prefixes that still answer the same. Never invent an endpoint, field or enum value: read the API reference page for the operation first.

## SDKs 4.4.0, the person's country, a Toden voice by default, and cut-off documents

Your app or hosted link can now say which country a person is from on a workflow that offers several, and the liveness instructions are spoken by default in a Toden voice from the person's own country. A document photographed with part of it cut off is now asked for again, and fails the verification if it is submitted anyway.

### Added

* **The person's country.** On a workflow that offers several countries, the SDKs' `country` is now the person's country: the country picker opens on it, listed first. `lockCountry` uses it with no picker. A country the workflow does not offer is ignored. A hosted link takes the same choice as `?country=GH`, with `&lockCountry=1` to remove the picker, and the choice follows the person to their phone when they continue there.
* **The person's country on a session.** [Create session](/user-verification/server-api/create-session) takes `country`, and the console's **New verification session** dialog has a Country field. The hosted page opens on that country, exactly as the SDKs' `country` does. The dialog can also take the person's email, passed into their verification as the SDKs' `userData.email` is.
* **A Toden voice from the person's own country.** The liveness instructions are spoken by a Toden voice chosen for each person: one from the country of the document being verified (a Nigerian hears a Nigerian voice, a Kenyan a Kenyan one), else a neighbouring country's (a Tanzanian hears a Kenyan voice, from Toden's own short list), else the workflow's own voice, else an American voice. One person keeps one voice for the session. In the workflow builder, **Match the applicant's country** chooses any voice (the default), a female or a male voice, or off, and **Neighbouring voices** can be switched off. The same choice is `voiceGuidance.localVoice` (`any`, `female`, `male`, `off`) and `voiceGuidance.localVoiceNeighbours` in the SDKs. No extra charge.

### Changed

* **The device's voice is no longer the default.** A workflow with no voice chosen used to speak with the device's own voice. With the 4.4.0 SDKs it now speaks with a Toden voice as above. Choose **Device voice** in the builder, or pass `voiceGuidance: { voice: 'device' }`, to keep the device's voice. New workflows start on the automatic voice rather than on Tolani.
* **A document cut off by its photo fails.** When a document runs off the photo, the verification now fails with the reason `document_cut_off`, and the SDKs ask for a retake with no "Continue anyway". A face or barcode the capture check could not read can still be continued past.
* **Sharper document photos.** The SDKs keep the document photo at up to 2600 pixels and compress it once, so a card's barcode can be read from it more often, and no photo of a side is taken until its recording has run about two seconds, long enough for Toden to compare the two.
* **Bigger country rows** in the SDKs' country picker, easier to tap.

### What you need to do

Nothing, unless you want to keep the device's voice: then choose **Device voice** on the workflow's Presence Intelligence step and publish. To use the person's country, pass `country` (and `lockCountry`, to skip the picker) from your app, or add `?country=` to a hosted link. The country and voice changes need the 4.4.0 SDKs; older SDKs keep the picker as it was and speak with the device's voice, or the workflow's chosen voice from 4.3.0.

### SDKs 4.4.0

`@toden/react`, `@toden/react-native` and `toden_flutter` 4.4.0 carry the person's country, the voice chosen for each person, the retake with no way past a cut-off document, sharper document photos and the bigger country rows. React Native also fixes a sheet that showed only its backdrop when reopened straight after closing. Flutter on iPhone still takes a 1080p document photo; Android takes 1440 by 2560.

## SDKs 4.3.0, head directions and Toden voices

New workflows ask the applicant to turn their head and look up or down, in an order Toden picks for each attempt, and speak the instructions in one of Toden's own voices. Workflows you already have keep the gestures and voice they use today.

### Added

* **Head directions**, a choice of gestures on the Presence Intelligence step (`livenessGestureSet`: `directions` or `classic`) for 3D Active Motion and Dual Check. With `directions` the applicant turns their head left or right and looks up or down; each direction is said, written and shown on screen, the line round the camera window lights the side to turn to and turns it green when it is done, and going the wrong way never fails the check. New workflows start on `directions`; a workflow without the setting keeps the classic gestures (nod, turn, blink and smile).
* **How many directions**, `livenessDirectionCount`: 2, 3 or 4 per check, 3 unless set. Every check includes at least one head turn, which is what lets the recording show a real head rather than a flat picture. Fewer is quicker; more is harder to fake.
* **Toden picks the directions.** Each attempt asks `POST /api/v1/liveness/directions` for its directions and their order (a fresh set per attempt), and the SDK names them in its liveness claim. When the verification is processed, Toden checks the capture asked for exactly those, in that order, at the workflow's count, and records the result with the liveness check. For now it is recorded only and decides nothing.
* **Toden voices.** A workflow can have the liveness instructions spoken by one of 24 Toden voices (`voiceGuidance.voice`, for example `lyra`) rather than the device's own speech. New workflows use Tolani unless your organisation picks another. No extra charge.

### Changed

* **"Good."** is said after each gesture, in place of "Great!", and the line before the back of a card reads "Good. Now flip your card over to scan the back."
* **Turning a card over.** Between the front and back of a two-sided ID the camera keeps running, and the sample document in the frame turns over where it stands; the back's sample stays in the frame for the back scan.
* **A lighter blur** round the face window, so the room stays readable.

### What you need to do

Nothing for workflows you already have. To try head directions, choose Head directions on a workflow's Presence Intelligence step and publish. Head directions and Toden voices need the 4.3.0 SDKs; older SDKs ask the classic gestures and use the device's voice.

### SDKs 4.3.0

`@toden/react`, `@toden/react-native` and `toden_flutter` 4.3.0 carry head directions, Toden voices, the redrawn gesture face and the card turning over in the frame. On the web, the selfie review also shows the picture as the camera took it, and on a full-screen desktop camera the face window grows with the screen. Each package's changelog lists every change.