# Third-party approval task overview

The approval business provides an open capability to obtain the status of third-party approval tasks for querying approval task data under specified approval instances, users, or statuses.

## Field description

Name | Type | Description
---|---|---
approval_codes | string[] | Third-party approval definition codes, used to specify retrieving data only under these definitions. Retrieval methods:<br>- Calling [Create a Third-Party Approval Definition](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/external_approval/create) returns the approval definition code.<br>- Log in to the approval management backend and obtain it in the URL of the specified approval definition. See [What is Approval Code](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/overview-of-approval-resources#8151e0ae) for specific operations.<br>**Example value**: ["E78F1022-A166-447C-8320-E151DA90D70F"]<br>**Data validation rules**:<br>- Maximum length: `20`
instance_ids | string[] | Third-party approval instance IDs, used to specify retrieving data only under these instances, up to a maximum of 20.<br>**Note**: The third-party approval instance ID is the custom instance ID (instance_id) when calling [Synchronize Third-Party Approval Instance](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/external_instance/create) and [Check Third-Party Approval Instance](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/external_instance/check).<br>**Example value**: ["oa_159160304"]
user_ids | string[] | Approver user IDs, used to specify retrieving data only for these users. See [How to Obtain User ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id) for retrieval methods.<br>**Example value**: ["112321"]
status | string | Approval task status, used to specify retrieving data under this status.<br>**Example value**: "PENDING"<br>**Optional values are**:<br>- PENDING：Pending<br>- APPROVED：Approval process completed, result is approved<br>- REJECTED：Approval process completed, result is rejected<br>- TRANSFERRED：Task transferred<br>- DONE：Task passed but not operated by the approver. The approver cannot see this task. To view it, you can copy it to the approver.

## Data example

```json
{
    "approval_codes": [
        "E78F1022-A166-447C-8320-E151DA90D70F"
    ],
    "instance_ids": [
        "oa_159160304"
    ],
    "user_ids": [
        "112321"
    ],
    "status": "PENDING"
}
```