Create 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.
Body
One-call setup for a webhook trigger: register the source's signature key and get back the ready-to-paste forward webhook URL.
The agent the webhook drives.
Signature-lookup key: the repo full_name (github) or api_app_id (slack) that the forward ingress matches the incoming webhook against.
Subpath the agent's own route handles, e.g. 'github-pr/'. Appended to /agents/forward/name/{agent_name}/ to form the webhook URL.
Webhook source whose signature is verified (github or slack).
internal, external, github, slack Signing secret. For GitHub, omit to generate one, or provide an existing webhook secret. For Slack, this is required and must be the Slack app's Signing Secret.
Optional public agentex base URL for the returned webhook_url; defaults to the AGENTEX_PUBLIC_URL env var.
Response
Successful Response
The created agent API key id.
The agent the webhook drives.
Webhook source (github or slack).
internal, external, github, slack Signature-lookup key (repo full_name / api_app_id).
The signing secret — shown once; paste into the source's webhook config.
The forward path to POST webhooks to.
Full webhook URL to paste into the source (None if no base URL configured).

