# Get CDK List

### Basic Information

**Interface Description:** Get cdk list through API

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

**Request Method:** <mark style="color:green;">GET</mark>

**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>Type</th><th width="127">Required</th><th width="235.0703125">Describe</th></tr></thead><tbody><tr><td><code>status</code></td><td>number</td><td>No</td><td><p>CDK usage status</p><p>1: unused</p><p>2: used</p><p>3: revoked</p></td></tr></tbody></table>

### Response example

```
{
    "code": 200,
    "data": [
        {
            "cdk": "uJQJFnycHOpSEw5N",
            "create_time": 1748332399,
            "status": 3,
            "traffic": 3,
            "traffic_duration": 7776000
        },
        {
            "cdk": "nozzapqOWJOCcWlX",
            "create_time": 1748332399,
            "status": 3,
            "traffic": 3,
            "traffic_duration": 7776000
        }
    ],
    "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 width="184">Type</th><th width="127">Required</th><th width="278.6484375">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>No</td><td>CDKEY</td></tr><tr><td><code>create_time</code></td><td>number</td><td>Yes</td><td>Time  when you create the CDK</td></tr><tr><td><code>status</code></td><td>number</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>traffic</code></td><td>number</td><td>Yes</td><td>Traffic in the CDK</td></tr><tr><td><code>traffic_duration</code></td><td>number</td><td>Yes</td><td>CDK valid duration</td></tr><tr><td><code>msg</code></td><td>string</td><td>No</td><td>-</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/interface-documentation/cdk/get-cdk-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
