List, create, test or delete webhooks
manage_webhooksManage the key's webhook subscriptions (/v1/webhooks). action:'list' is read-only. 'create' REGISTERS a URL that Delilah will POST to on the chosen events — it changes the account, so it requires confirm:true and the user's explicit go-ahead. 'test' queues a sample delivery to an existing subscription. 'delete' removes one (confirm:true). Events: bill_introduced, status_change, vote_recorded, text_updated, passed, vetoed, signed, amendment_added. Optional filters: states (postal codes), subjects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| events | No | create: at least one event type. | |
| states | No | create: only fire for these jurisdictions. | |
| confirm | No | Required true for create and delete. | |
| subjects | No | create: only fire for these subjects. | |
| webhook_id | No | test/delete: the subscription id from list. | |
| webhook_url | No | create: HTTPS URL to deliver to. |