# Get CDK Details

### Basic Information

**Interface Description:** Obtain CDK details through the API

**Interface URL:** [**https://api.thordata.com/api/cdk/info**](https://api.thordata.com/api/cdk/info)

**Request Method: GET**

### Request parameters

**Headers：**

<table><thead><tr><th>Parameter name</th><th>Type</th><th width="127">Required</th><th>Describe</th></tr></thead><tbody><tr><td><code>token</code></td><td>string</td><td>Yes</td><td>Please log in to the  <a href="https://dashboard.thordata.com/account-settings"><strong>Dashboard-MENU-My Account</strong></a> to view your token parameter value</td></tr><tr><td><code>key</code></td><td>string</td><td>Yes</td><td>Please log in to the  <a href="https://dashboard.thordata.com/account-settings"><strong>Dashboard-MENU-My Account</strong></a> to view your key parameter value</td></tr></tbody></table>

**Body：**

<table><thead><tr><th>Parameter name</th><th width="175">Type</th><th width="110">Required</th><th>Describe</th></tr></thead><tbody><tr><td><code>cdk</code></td><td>string</td><td>Yes</td><td>CDKEY</td></tr></tbody></table>

### Response example

```json
{
    "code": 200,
    "data": {
        "cdk": "LCoum2cHq1XSmTGi",
        "status": 1,
        "create_time": 1748253271,
        "traffic": 2,
        "traffic_duration": 7776000,
        "use_username": "Thor123456",
        "use_time": 170000000
    },
    "msg": "ok"
}
```

{% hint style="info" %}
If the returned code value is not 200, please check the [**error code description list**](https://doc.thordata.com/interface-documentation/error-code/error-code-description) and modify it.
{% endhint %}

<table><thead><tr><th width="206">Parameter name</th><th>Type</th><th width="139">Required</th><th>Describe</th></tr></thead><tbody><tr><td><code>code</code></td><td>number</td><td>No</td><td>-</td></tr><tr><td><code>data</code></td><td>object</td><td>No</td><td>-</td></tr><tr><td><code>cdk</code></td><td>string</td><td>Yes</td><td>CDKEY</td></tr><tr><td><code>status</code></td><td>string</td><td>Yes</td><td><p>CDK usage status</p><p>1: Unused</p><p>2: Used</p><p>3: Revoked</p></td></tr><tr><td><code>create_time</code></td><td>string</td><td>Yes</td><td>Time when you create CDK</td></tr><tr><td><code>traffic</code></td><td>string</td><td>Yes</td><td>Traffic in the CDK</td></tr><tr><td><code>traffic_duration</code></td><td>string</td><td>Yes</td><td>CDK valid duration</td></tr><tr><td><code>use_username</code></td><td>string</td><td>Yes</td><td>User usage username</td></tr><tr><td><code>use_time</code></td><td>string</td><td>Yes</td><td>User usage time</td></tr><tr><td><code>msg</code></td><td>string</td><td>No</td><td>-</td></tr></tbody></table>
