# Get talent ID by mobile or email

Get talent ID by mobile phone number or email.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/hire/v1/talents/batch_get_id
HTTP Method | POST
Rate Limit | [1000 per minute、50 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.**<br>Enable any scope from the list | Obtain talent information(hire:talent:readonly)<br>Update talent information(hire:talent)
Required field scopes | **Notice**：The response body of the API contains the following sensitive fields, and they will be returned only after corresponding scopes are added. If you do not need the fields, it is not recommended that you request the scopes.<br>获取人才入职状态(hire:talent_onboard_status:readonly)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Request body

Parameter | Type | Required | Description
---|---|---|---
mobile_code | string | No | Mobile phone country code, default value: 86, that is, the Chinese mainland<br>**Example value**: "86"
mobile_number_list | string\[\] | No | The mobile phone number and area code all use the value of the mobile_code parameter, up to 100<br>**Example value**: ["182900291190"]
email_list | string\[\] | No | Mailbox information list, up to 100<br>**Example value**: ["foo@bytedance.com"]
identification_type | int | No | identification type<br>**Example value**: 1
identification_number_list | string\[\] | No | identification number<br>**Example value**: ["130xxxxxxx"]

### Request body example
```json
{
    "mobile_code": "86",
    "mobile_number_list": [
        "182900291190"
    ],
    "email_list": [
        "foo@bytedance.com"
    ],
    "identification_type": 1,
    "identification_number_list": [
        "130xxxxxxx"
    ]
}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-
talent_list | talent_batch_info\[\] | Talent Information List
talent_id | string | Talent ID
mobile_code | string | Mobile phone country code
mobile_number | string | Mobile phone number
email | string | Email
identification_type | int | Document type, please refer to the recruitment enumeration constant IdentificationType enumeration definition
identification_number | string | ID-card number
is_onboarded | boolean | Talent onboard status<br>**Optional values are**:<br>- false：Onboarded<br>- true：Overboard<br>**Required field scopes**:<br>获取人才入职状态(hire:talent_onboard_status:readonly)

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "talent_list": [
            {
                "talent_id": "6891560630172518670",
                "mobile_code": "86",
                "mobile_number": "182900291190",
                "email": "foo@bytedance.com",
                "identification_type": 1,
                "identification_number": "130xxxxxxxxx",
                "is_onboarded": true
            }
        ]
    }
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
200 | 1002001 | System error | Check if the imported parameters are valid
400 | 1002009 | Mobile is not valid | Check mobile is valid

