跳转到主要内容
查询单个激活码(按内容)
curl --request GET \
  --url https://api.example.com/api/v1/projects/{project_id}/codes/by-code/{code} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "code": "<string>",
  "status": true,
  "is_disabled": true,
  "is_expired": true,
  "expires_at": 123,
  "verified_at": 123,
  "verified_by": "<string>",
  "created_at": 123,
  "verification_logs": [
    {
      "id": "<string>",
      "verified_at": 123,
      "verified_by": "<string>",
      "ip_address": "<string>",
      "result": "<string>"
    }
  ]
}
根据激活码内容(非 ID)查询单个激活码详情。路径中的 {code} 为激活码原文,需进行 URL 编码。响应格式与 按 ID 查询 一致,包含 verification_logs

授权

X-API-Key
string
header
必填

API Key + X-Timestamp + X-Signature(HMAC-SHA256)

路径参数

project_id
string
必填
code
string
必填

激活码内容(URL 编码)

响应

激活码详情

id
string
code
string
status
boolean
is_disabled
boolean
is_expired
boolean
expires_at
integer | null
verified_at
integer | null
verified_by
string | null
created_at
integer
verification_logs
object[]