HydraCore
API by router

Triggers

List Triggers

GET
/v1/triggers
AuthorizationBearer <token>

In: header

Query Parameters

trigger_type?Trigger Type

Filter: 'schedule' or 'event'

limit?Limit
Default50
Range1 <= value <= 200
offset?Offset
Default0
Range0 <= value

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X GET "https://loading/v1/triggers?trigger_type=string&limit=50&offset=0" \  -H "X-Api-Key: string"
{
  "total": 0,
  "triggers": [
    {
      "actions": [],
      "created_at": "string",
      "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
      "description": "string",
      "event": "string",
      "id": "string",
      "is_active": true,
      "last_triggered_at": "string",
      "name": "string",
      "schedule": {},
      "source": "string",
      "trigger_count": 0,
      "trigger_type": "string"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Create Trigger

POST
/v1/triggers
AuthorizationBearer <token>

In: header

Header Parameters

X-Api-Key?X-Api-Key
action_config?Action Config

Empty Object

action_typeAction Type

notify|send_webhook|run_workflow|log_event|require_approval

conditions?Conditions
cron?Cron
customer_id?Customer Id
description?Description
event?Event
interval_seconds?Interval Seconds
nameName
Length1 <= length <= 200
schedule_type?Schedule Type

'cron' or 'interval'

timezone?Timezone
Default"UTC"
trigger_typeTrigger Type

'schedule' or 'event'

Response Body

curl -X POST "https://loading/v1/triggers" \  -H "X-Api-Key: string" \  -H "Content-Type: application/json" \  -d '{    "action_type": "string",    "name": "string",    "trigger_type": "string"  }'
{
  "actions": [],
  "created_at": "string",
  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  "description": "string",
  "event": "string",
  "id": "string",
  "is_active": true,
  "last_triggered_at": "string",
  "name": "string",
  "schedule": {},
  "source": "string",
  "trigger_count": 0,
  "trigger_type": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Patch Trigger

PATCH
/v1/triggers/{trigger_id}
AuthorizationBearer <token>

In: header

Path Parameters

trigger_idTrigger Id

Header Parameters

X-Api-Key?X-Api-Key
description?Description
is_active?Is Active
name?Name

Response Body

curl -X PATCH "https://loading/v1/triggers/string" \  -H "X-Api-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "actions": [],
  "created_at": "string",
  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  "description": "string",
  "event": "string",
  "id": "string",
  "is_active": true,
  "last_triggered_at": "string",
  "name": "string",
  "schedule": {},
  "source": "string",
  "trigger_count": 0,
  "trigger_type": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Delete Trigger

DELETE
/v1/triggers/{trigger_id}
AuthorizationBearer <token>

In: header

Path Parameters

trigger_idTrigger Id

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X DELETE "https://loading/v1/triggers/string" \  -H "X-Api-Key: string"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}