Skip to content

批量获取人才ID

通过手机号、邮箱、证件号,批量查询人才ID

Warning: - 入参的手机号、邮箱、证件号至少需要传一种,否则无法查询到人才数据

  • 入参的手机号、邮箱、证件号是AND的逻辑关系。也就是当条件同时满足时才会返回人才数据。

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/hire/v1/talents/batch_get_id
HTTP MethodPOST
接口频率限制1000 次/分钟、50 次/秒
支持的应用类型custom,isv
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用 开启任一权限即可hire:talent:readonly 获取人才信息 hire:talent 更新人才信息
字段权限要求> Tip: 该接口返回体中存在下列敏感字段,仅当开启对应的权限后才会返回;如果无需获取这些字段,则不建议申请 hire:talent_onboard_status:readonly 获取人才入职状态

请求头

名称类型必填描述
Authorizationstringtenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token
Content-Typestring固定值:"application/json; charset=utf-8"

请求体

名称类型必填描述
mobile_codestring国际区号,遵守国际统一标准,请参考百度百科-国际长途电话区号。传入手机号但没传区号的情况下,默认为中国大陆区号:"86"
示例值:"86"
mobile_number_liststring\[\]手机号列表
示例值:["182900291190"]
email_liststring\[\]邮箱列表
示例值:["foo@bytedance.com"]
identification_typeint证件类型,枚举定义详见文档:枚举常量介绍 的 IdentificationType。传入证件号的情况下必须传入该参数
示例值:1
identification_number_liststring\[\]证件号列表
示例值:["510403xxxxxxxx"]

请求体示例

json
{
    "mobile_code": "86",
    "mobile_number_list": [
        "182900291190"
    ],
    "email_list": [
        "foo@bytedance.com"
    ],
    "identification_type": 1,
    "identification_number_list": [
        "510403xxxxxxxx"
    ]
}

响应

响应体

名称类型描述
codeint错误码,非 0 表示失败
msgstring错误描述
data\--
  └ talent_listtalent_batch_info\[\]人才信息列表
    └ talent_idstring人才 ID,详情请查看:获取人才信息
    └ mobile_codestring国际区号,遵守国际统一标准,请参考百度百科-国际长途电话区号,仅当入参传入mobile_number_list 时返回
    └ mobile_numberstring手机号,仅当入参传入mobile_number_list时返回
    └ emailstring邮箱,仅当入参传入email_list 时返回
    └ identification_typeint证件类型,枚举定义详见文档:枚举常量介绍 的 IdentificationType,仅当入参传入identification_number_list 时返回
    └ identification_numberstring证件号,仅当入参传入identification_number_list 时返回
    └ is_onboardedboolean是否已入职
可选值有
- false: 未入职 - true: 已入职
字段权限要求hire:talent_onboard_status:readonly 获取人才入职状态

响应体示例

json
{
    "code": 0,
    "msg": "ok",
    "data": {
        "talent_list": [
            {
                "talent_id": "6891560630172518670",
                "mobile_code": "86",
                "mobile_number": "182900291190",
                "email": "foo@bytedance.com",
                "identification_type": 1,
                "identification_number": "510403xxxxxxxx",
                "is_onboarded": true
            }
        ]
    }
}

错误码

HTTP状态码错误码描述排查建议
2001002001系统错误请根据实际报错信息定位或咨询技术支持
4001002009手机号不正确请检查入参mobile_code mobile_number_list 是否正确

内容来源:飞书开放平台 · 自动爬取整理