---
title: Human Token Journey
description: 如何使用 humantoken 和 humantoken+revalidation 流程：创建请求返回什么、您必须保存什么，以及如何读取结果。
canonical: https://developer.unico.io/zh-CN/human-plugin/integrations/human-token-journey
locale: zh-CN
generated_by: markdown-export
---

# Human Token Journey

由用户在采集 Journey 中自拍的流程。

`humantoken` 和 `humantoken+revalidation` 让用户在采集 Journey 中拍摄自拍照，可在托管页面或 SDK 中完成。请在创建请求中发送 `callbackUri`，重新验证时还需发送 `references`。请参阅[流程](/zh-CN/human-plugin/api-reference/create-process#flows)。

前端部分请参阅适用于您所在平台的采集指南：[Web](/zh-CN/human-plugin/integrations/web)、[Android](/zh-CN/human-plugin/integrations/android)、[iOS](/zh-CN/human-plugin/integrations/ios)、[Ionic](/zh-CN/human-plugin/integrations/ionic)、[React Native](/zh-CN/human-plugin/integrations/react-native) 或 [Flutter](/zh-CN/human-plugin/integrations/flutter)。

## 时序

```mermaid
sequenceDiagram
  participant B as Your back-end
  participant H as Human Plugin
  participant P as Person
  B->>H: POST /v1/processes (humantoken, callbackUri)
  H-->>B: 201, PROCESS_STATE_CREATED, token + link
  B->>P: send link or SDK token
  P->>P: takes the selfie
  P-->>B: returns to callbackUri
  B->>H: GET /v1/processes/{id}
  H-->>B: 200, Human Token + intelligence
```

## 需要保存的内容

`token` 和 `link` **仅**出现在创建响应中。Human Plugin 不会存储它们，之后的 `GET` 也不会返回它们。请在同一个请求周期内将它们传给前端，或自行存储。

## 如何读取结果

返回到您的 `callbackUri` 只表示采集已结束，并不说明结果如何。用户返回后，请调用 `GET /v1/processes/{id}`：一旦有结果，它就会返回，其中包含 Human Token（重新验证时为 `humanTokenMatch`）以及此人的[智能信息](/zh-CN/human-plugin/get-started/intelligence)。

如果用户一直没有返回，流程会保持在 `PROCESS_STATE_CREATED`，直到采集产生结果。