ModelSell 文档
管理接口令牌管理

删除令牌

按 ID 删除指定 API 令牌。

DELETE
/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 DELETE "https://example.com/api/token/1"
{
  "success": true,
  "message": "string",
  "data": null
}
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}