Skip to main content
POST
/
v0
/
action
Create a new action
curl --request POST \
  --url https://{hostname}.gable.ai/v0/action \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "email on pricing asset change",
  "triggers": [
    {
      "triggerType": "source",
      "triggerValues": [
        "<string>"
      ]
    }
  ],
  "destinations": [
    {
      "destinationType": "slack",
      "slackChannelIds": [
        "<string>"
      ]
    }
  ]
}'
{
  "actionId": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
name
string
required
Example:
triggers
object[]
required
Minimum length: 1
  • Option 1
  • Option 2
  • Option 3
  • Option 4
destinations
object[]
required
Minimum length: 1
  • Option 1
  • Option 2
  • Option 3

Response

actionId
string
required