# Get subscription status

Get the status of the subscription based on the subscription ID

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id
HTTP Method | GET
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 | Get subscription status of document(docs:document.subscription:read)<br>View, comment, edit, and manage all files in My Space(drive:drive)<br>View, comment, and download all files in My Space(drive:drive:readonly)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `user_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer u-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"

### Path parameters

Parameter | Type | Description
---|---|---
file_token | string | file token<br>**Example value**: "doxcnxxxxxxxxxxxxxxxxxxxxxx"
subscription_id | string | Subscription ID<br>**Example value**: "1234567890987654321"

### Request body

Parameter | Type | Required | Description
---|---|---|---
file_type | string | Yes | file type<br>**Example value**: "doc"<br>**Optional values are**:<br>- doc：Docs<br>- docx：Upgraded Docs<br>- wiki：Wiki

### Request body example
```json
{"file_type":"docx"}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-
subscription_id | string | subscribe id
subscription_type | string | subscription type<br>**Optional values are**:<br>- comment_update：comment update
is_subcribe | boolean | is subscribe
file_type | string | file type<br>**Optional values are**:<br>- doc：Docs<br>- docx：Upgraded Docs<br>- wiki：Wiki

### Response body example
```json
{
    "code": 0,
    "data": {
        "file_type": "docx",
        "is_subcribe": false,
        "subscription_id": "xxxxxxxx",
        "subscription_type": "comment_update"
    },
    "msg": "success"
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
400 | 1064000 | Illegal parameter | Check parameter validity
403 | 1064030 | Permission denied | Check if there is permission for the document to be read
404 | 1064040 | Token not exist | Check whether the document can be accessed normally
500 | 1065000 | Internal Server Error | Try again, if the stability fails, please contact the oncall staff of the relevant business party

