webhooks > polling
Create Polling Webhook
Changed onCreates a subscription the agent polls for events, and returns the token that reads it. Each organization, pod, and inbox holds at most 10 polling webhooks; a repeat create with the same client_id re-issues the token of the existing one instead of counting against that limit.
CLI:
agentmail webhooks polling create --client-id my-agent --event-types message.received
post/v0/webhooks/polling
Request
- Base URLhttps://api.agentmail.to
- URLhttps://api.agentmail.to/v0/webhooks/polling
- AuthHTTP bearer
Request body
Response
Response with status 200
Changes
- info
endpoint added
- info