Skip to main content
POST
/
api
/
agents
/
triggers
Create agent trigger
curl --request POST \
  --url https://app.dacard.ai/api/agents/triggers \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "conditionType": "schedule",
  "conditionConfig": {
    "cron": "<string>",
    "threshold": 123,
    "dropPercent": 123,
    "signalTypes": [
      "<string>"
    ]
  },
  "actionConfig": {
    "autoRun": true,
    "notifySlack": true
  },
  "enabled": true
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Body

application/json
agentId
string<uuid>
required
name
string
required

Display name for this trigger

conditionType
enum<string>
required
Available options:
schedule,
score_threshold,
score_drop,
new_integration_signal,
manual
conditionConfig
object
required

Condition-specific configuration

actionConfig
object

What to do when the trigger fires

enabled
boolean
default:true

Response

Trigger created

data
object