Skip to main content
Get ProcessGET

Retrieve a Human Token process by its identifier — after the user returns from the Human Token Journey, or to query an API Only result again.

Markdown

Endpoint​

EnvironmentURL
ProductionGET https://humantoken.unico.app/client/v1/process/{processId}

Request​

Headers
HeaderValue
x-unico-accesskey<your_access_key> (see Authentication)
Path parameters
ParameterTypeRequiredDescription
processIdstring (UUID)yesProcess identifier returned by Create Process.

Example​

curl -X GET https://humantoken.unico.app/client/v1/process/$PROCESS_ID \
-H "x-unico-accesskey: $UNICO_ACCESS_KEY"

Responses​

200 OK

The response has the same format as Create Process. The shape of data depends on the flow used when the process was created.

Standard flows (api+humantoken, api+liveness+humantoken, humantoken):

{
"id": "6ed74799-4c2f-4023-b43f-a73cf7c847b2",
"state": "PROCESS_STATE_FINISHED",
"data": {
"humanToken": {
"value": "3f9a1c7e5b2d4086a1e3c5f7092b4d6e8a0c2e4f6183a5c7e9b1d3f5072a4c6e",
"status": "validated"
}
}
}

Revalidation flows (api+liveness+humantoken+revalidation, humantoken+revalidation):

{
"id": "cb0472c0-6dbc-46c6-b830-2be7edc35424",
"state": "PROCESS_STATE_FINISHED",
"data": {
"humanTokenMatch": "true"
}
}
FieldTypeDescription
idstring (UUID)Process identifier.
statestringProcess state — see state values.
data.​humanToken.​valuestringStandard flows only. Stable, opaque identifier of the face (up to 100 characters). The same person always resolves to the same value.
data.​humanTokenMatchstringRevalidation flows only. "true" if the selfie matches the referenced humanToken, "false" otherwise.
state values
ValueMeaning
PROCESS_STATE_UNSPECIFIEDState not set.
PROCESS_STATE_CREATEDThe process was created and still accepts new sessions. data is {}.
PROCESS_STATE_FINISHEDThe process was finished and no longer accepts new sessions. For standard flows, data.humanToken is present when a Human Token was generated; for revalidation flows, data.humanTokenMatch indicates whether the selfie matched the referenced token. Otherwise data is {}.
PROCESS_STATE_FAILEDThe process failed. data is {}.
PROCESS_STATE_CANCELEDThe process was canceled. data is {}.
PROCESS_STATE_AWAITING_FOR_DOCUMENTThe process is waiting for an identification document. data is {}.
warning

Always check that data.humanToken.value is not empty before using it.

Error Codes​

CodeMessageDescription
3process id is invalidWhen the process ID is invalid.

What's next​