To add or update a webhook for a pre-existing Item
, submit a POST
request to /item/webhook/update
with the new or updated webhook:
curl -X POST https://sandbox.plaid.com/item/webhook/update \
-H 'content-type: application/json' \
-d '{
"client_id": String,
"secret": String,
"access_token": String,
"webhook": "https://plaid.com/updated/hook"
}'
Plaid sends a WEBHOOK_UPDATE_ACKNOWLEDGED
webhook when you successfully update an Item
’s webhook.
Example WEBHOOK_UPDATE_ACKNOWLEDGED
webhook:
{
"webhook_type": "ITEM",
"webhook_code": "WEBHOOK_UPDATE_ACKNOWLEDGED",
"item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
"error": null,
"new_webhook": https://plaid.com/example/webhook"
}