Configure in the UI
Open Agents, find the agent, then click the webhook icon in the row actions. The dialog shows the endpoint and stores the webhook token.Endpoint
config.webhook object with PATCH /api/agents/<agent-id>:
What the agent receives
The webhook body is not sent to the model as an HTTP request. LAP creates a managed-agent session, then sends a normal user message to that session. For example, this payload:Zendesk example
Configure the Zendesk webhook to send JSON and use bearer token auth:202 Accepted:
202 Accepted with status set to duplicate and does not enqueue another prompt.
If a retry arrives while the first delivery is still processing, LAP returns 503 Service Unavailable with status set to processing so the sender can retry instead of creating a duplicate run.
Use the returned session_id with the sessions API or UI to inspect the run.