Skip to content

Webhooks

Create Webhook Trigger
webhooks.create_webhook_trigger(WebhookCreateWebhookTriggerParams**kwargs) -> WebhookCreateWebhookTriggerResponse
POST/agent_api_keys/webhook-trigger
ModelsExpand Collapse
class WebhookCreateWebhookTriggerResponse: …
agent_name: str

The agent the webhook drives.

key_id: str

The created agent API key id.

name: str

Signature-lookup key (repo full_name / api_app_id).

secret: str

The signing secret — shown once; paste into the source’s webhook config.

source: Literal["internal", "external", "github", "slack"]

Webhook source (github or slack).

One of the following:
"internal"
"external"
"github"
"slack"
webhook_path: str

The forward path to POST webhooks to.

webhook_url: Optional[str]

Full webhook URL to paste into the source (None if no base URL configured).