ModelSell Docs
ManagementToken Management

获取指定令牌

按 ID 获取指定 API 令牌。

GET
/api/token/{id}

按 ID 获取指定 API 令牌。

Authorization

AuthorizationBearer <token>

使用 Authorization Bearer API Key 进行鉴权。

In: header

Path Parameters

id*integer

资源 ID。

Response Body

application/json

application/json

curl -X GET "https://example.com/api/token/1"
{
  "success": true,
  "message": "string",
  "data": {
    "id": 0,
    "name": "string",
    "key": "string",
    "status": 0,
    "remain_quota": 0,
    "used_quota": 0,
    "expired_time": 0,
    "created_time": 0
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}