Skip to content

Get a rule​

GET
/triggers/{id}

Authorizations​

APIKey

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

Type
API Key (header: CP-X-API-KEY)

Responses​

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"
  
  
  
}
  
  
}
  
]
}

Playground​

Authorization

Samples​