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

The name of the action

Example:

"email on pricing asset change"

triggers
object[]
required
Minimum array length: 1
destinations
object[]
required
Minimum array length: 1

Response

Successful operation

actionId
string
required

The unique identifier of the created action