跳转到主要内容
获取项目信息
curl --request GET \
  --url https://api.example.com/api/v1/projects/{project_id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "status": true,
  "expires_at": 123,
  "created_at": 123,
  "statistics": {
    "total_codes": 123,
    "used_codes": 123,
    "unused_codes": 123,
    "disabled_codes": 123,
    "expired_codes": 123
  }
}
获取指定项目的详细信息,包含项目名称、描述、状态、有效期及激活码统计(总数、已用、未用、已禁用、已过期)。路径中的 project_id 必须与当前 API Key 绑定的项目一致。

授权

X-API-Key
string
header
必填

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

路径参数

project_id
string
必填

项目 ID(32 位 UUID,无连字符)

响应

项目信息

id
string
name
string
description
string
status
boolean
expires_at
integer | null
created_at
integer
statistics
object