跳转到主要内容
POST
/
calendar
/
list
查询服务日历列表
curl --request POST \
  --url 'https://api.flashcat.cloud/calendar/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "kind": "personal"
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "items": [
      {
        "account_id": 2451002751131,
        "team_id": 2477033058131,
        "cal_id": "cal.eh9gvPtWeH3xXgKeVSRxRg",
        "cal_name": "Stock Exchange Calendar",
        "description": "A stock market trading calendar example",
        "timezone": "Asia/Shanghai",
        "kind": "personal",
        "workdays": [
          0,
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "created_at": 1702455630,
        "updated_at": 1775529526,
        "creator_id": 2476444212131,
        "updated_by": 3790925372131,
        "status": "enabled"
      },
      {
        "account_id": 2451002751131,
        "team_id": 0,
        "cal_id": "cal.VZYkchxJhGELSF4jzkUAud",
        "cal_name": "HK Stock Exchange Calendar",
        "description": "Hong Kong Stock Exchange trading days calendar",
        "timezone": "Asia/Shanghai",
        "kind": "personal",
        "extra_cal_ids": [
          "zh-cn.china.official"
        ],
        "created_at": 1702968470,
        "updated_at": 1775188967,
        "creator_id": 2451002751131,
        "updated_by": 3790925372131,
        "status": "enabled"
      }
    ],
    "total": 8
  }
}

限制说明

项目说明
速率限制每个账户 1,000 次/分钟50 次/秒
权限要求无 —— 持有有效的 app_key 即可调用

授权

app_key
string
query
必填

在 Flashduty 控制台 账户 → APP Key 中签发的 app_key。调用任何公开 API 时都必须携带。它等同于所属账户的身份凭证,请妥善保管。

请求体

application/json

日历列表请求。kind 用于按类型过滤;no_locale 在查询公共节假日日历时关闭 locale 过滤。

kind
enum<string>

日历类型过滤条件,为空时默认 personal。

可用选项:
region.official.holiday,
personal
no_locale
boolean

查询公共节假日日历时关闭 locale 过滤。

响应

成功

成功响应结构。2xx 响应中 request_id 标识本次调用(同时出现在 Flashcat-Request-Id 响应头中),data 为接口业务 payload。失败响应使用不同结构,参见 ErrorResponse

request_id
string
必填

本次请求的唯一 ID,也会在 Flashcat-Request-Id 响应头中返回。反馈问题时请一并附上。

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object
必填

日历列表响应。