inboxes > webhooks > polling
Create Polling Webhook
Changed onCreate a polling webhook scoped to this inbox and return the token that reads it.
CLI:
agentmail inboxes webhooks polling create --inbox-id <inbox_id> --client-id my-agent --event-types message.received
post/v0/inboxes/{inbox_id}/webhooks/polling
Request
- Base URLhttps://api.agentmail.to
- URLhttps://api.agentmail.to/v0/inboxes/{inbox_id}/webhooks/polling
- AuthHTTP bearer
Path parameters
inbox_idstring required
The ID of the inbox.
Request body
Response
Response with status 200
Changes
- info
endpoint added
- info