Create Webhook Trigger
POST/agent_api_keys/webhook-trigger
Wire a webhook trigger in one call.
Registers the source’s signature-verification key (github/slack) for the agent and returns the ready-to-paste forward webhook URL plus the signing secret (shown once). The webhook then flows through the existing /agents/forward ingress, which verifies the signature against this key. Bundles the existing key-create + URL composition so a UI (or a curl) can set up a trigger without two steps.
Create Webhook Trigger
curl http://localhost:5003/agent_api_keys/webhook-trigger \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $AGENTEX_SDK_API_KEY" \
-d '{
"agent_name": "agent_name",
"forward_path": "forward_path",
"name": "name"
}'{
"agent_name": "agent_name",
"key_id": "key_id",
"name": "name",
"secret": "secret",
"source": "internal",
"webhook_path": "webhook_path",
"webhook_url": "webhook_url"
}Returns Examples
{
"agent_name": "agent_name",
"key_id": "key_id",
"name": "name",
"secret": "secret",
"source": "internal",
"webhook_path": "webhook_path",
"webhook_url": "webhook_url"
}