跳到正文

列出规则​

GET
/triggers

Only rules belonging to the authenticated Owner. Ordered by created_at descending then id. Unknown query parameters are rejected; no symbol filter.

授权​

APIKey

Remote cp-auth key with automation scope; never pass it in the URL. /healthz and CORS preflight are anonymous.

类型
API Key (header: CP-X-API-KEY)

参数​

查询参数

source_type

Exact source type.

类型
string
action_type

Match rules containing at least one action of this type.

类型
string
status

Deleted rules are never listed.

类型
string
有效值
"active""paused""error"
limit

Values outside 1..200, or malformed values, use 50.

类型
integer
默认
50
offset

Negative or malformed values use 0; values are capped at 2147483647.

类型
integer
默认
0

响应​

Success

application/json
JSON
[
  
{
  
  
"source": {
  
  
  
"type": "price",
  
  
  
"config": {
  
  
  
  
"symbol": "string",
  
  
  
  
"operator": "string",
  
  
  
  
"threshold": "string",
  
  
  
  
"currency": "USD"
  
  
  
}
  
  
},
  
  
"queries": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"type": "price",
  
  
  
  
"config": {
  
  
  
  
  
"symbol": "string",
  
  
  
  
  
"currency": "USD"
  
  
  
  
}
  
  
  
}
  
  
],
  
  
"filters": null,
  
  
"cooldown_minutes": 0,
  
  
"note": "",
  
  
"id": "string",
  
  
"revision": 0,
  
  
"status": "string",
  
  
"last_fired_at": "string",
  
  
"created_at": "string",
  
  
"updated_at": "string",
  
  
"actions": [
  
  
  
{
  
  
  
  
"type": "webhook",
  
  
  
  
"config": {
  
  
  
  
  
"url": "string"
  
  
  
  
}
  
  
  
}
  
  
]
  
}
]

试验场​

授权
变量
键
值

示例​