/webhooksCreate
Creates a webhook attached to the specific event and provides the notification url.
Signature. If your application has a webhook signing secret (generated, regenerated or removed by the team Owner in the Dashboard, under Applications → Configure → Webhooks), every delivery carries an X-Pluggy-Signature: t=<unix timestamp in seconds>,v1=<lowercase hex> header, set by Pluggy. v1 is the HMAC-SHA256 of <t>.<raw request body>, keyed with the full secret (whsec_ plus 64 hex characters, prefix included). To verify, compute it over the raw body before any JSON parsing, compare it to v1 in constant time, and reject a t more than 5 minutes away from your clock; every attempt, retries included, is signed again with a fresh t. Applications without a secret receive deliveries without the header, as before. A change to the secret takes a few seconds to take effect: right after regenerating, a delivery can still be signed with the previous secret (accept both for a while), and right after removing it, a delivery already on its way can arrive unsigned. See Webhook security.
Managing webhooks with an API key is opt-in: it is disabled by default and must be enabled for your team. Contact support if you want access, or manage webhooks in the Dashboard (Applications → Configure → Webhooks).
Request Body
requiredExpects the following webhooks parameters: event: One of the event types that are supported. url: An https url that will receive the POST of the event. The host must be a publicly resolvable domain — IP literals, localhost, *.localhost, *.local, *.internal, and hostnames that resolve to a private/loopback/link-local/reserved range are rejected. headers: optional key-value pairs to send with the POST of the event.
Public https url that will receive the POST of the event. It must use the default port (443), can't include a username or password, can't be longer than 2048 characters, and its host must be a domain name (not an IP address, localhost or an internal name) that resolves only to public IP addresses.
Event the webhook subscribes to. Use all to receive every event for the client. Events are grouped by topic:
item/ – Lifecycle of an item (a connection to a financial institution).
item/created: a new item was created.item/updated: the item finished an execution with new data.item/error: the execution finished with an error (see the payload'serrorfield).item/deleted: the item was deleted.item/waiting_user_input: the item needs additional credentials/MFA from the end user.item/waiting_user_action: the item needs the end user to perform an action on the institution side.item/login_succeeded: the credentials were accepted by the institution (data may still be syncing).
connector/ – Connector-level events.
connector/status_updated: a connector's health status changed (ONLINE/OFFLINE/UNSTABLE).
transactions/ – Account transaction lifecycle.
transactions/created/transactions/updated/transactions/deleted: a transaction was inserted, modified or removed during an item execution.
payment_intent/ – Payment Initiation flow (single PIX).
payment_intent/created: a payment intent was created.payment_intent/completed: the payment was confirmed by the institution.payment_intent/waiting_payer_authorization: the payer still needs to authorize the payment.payment_intent/error: the payment was rejected or failed.
payment_request/ – Aggregate payment request state.
payment_request/updated: the overall status of a payment request changed.
scheduled_payment/ – Scheduled (recurring or future) payments.
scheduled_payment/created/completed/error/canceled: lifecycle of a single scheduled payment.scheduled_payment/all_created/scheduled_payment/all_completed: emitted once when every scheduled payment in a series reaches the same terminal state.
boleto/ – Boleto status updates.
boleto/updated: the boleto data was updated (e.g. paid, expired, amount changed).
automatic_pix_payment/ – Recurring PIX (PIX Automático) individual payments.
automatic_pix_payment/created: a new recurring payment was scheduled.automatic_pix_payment/completed: the recurring payment was confirmed.automatic_pix_payment/error: the recurring payment failed.automatic_pix_payment/canceled: the recurring payment was canceled (by user, expiration or revoked consent).
smart_transfer_preauthorization/ – Smart Transfer pre-authorization (consent setup).
smart_transfer_preauthorization/completed: the pre-authorization was accepted.smart_transfer_preauthorization/error: the pre-authorization failed.
smart_transfer_payment/ – Smart Transfer individual payments executed under an active pre-authorization.
smart_transfer_payment/completed: the transfer was successful.smart_transfer_payment/error: the transfer failed.
HTTP headers that will be included in the webhook notifications (useful for things like authorization). A header named X-Pluggy-Signature here does not set or override the signature header Pluggy adds.
Example
{
"url": "string",
"event": "all",
"headers": null
}Responses
A webhook subscription. Each delivery is an HTTP POST of the event to url, with the custom headers and, when the application has a webhook signing secret, the X-Pluggy-Signature header (see Webhook security).
UUID identifier for the entity
Url to be notified of item changes
Event the webhook subscribes to. Use all to receive every event for the client. Events are grouped by topic:
item/ – Lifecycle of an item (a connection to a financial institution).
item/created: a new item was created.item/updated: the item finished an execution with new data.item/error: the execution finished with an error (see the payload'serrorfield).item/deleted: the item was deleted.item/waiting_user_input: the item needs additional credentials/MFA from the end user.item/waiting_user_action: the item needs the end user to perform an action on the institution side.item/login_succeeded: the credentials were accepted by the institution (data may still be syncing).
connector/ – Connector-level events.
connector/status_updated: a connector's health status changed (ONLINE/OFFLINE/UNSTABLE).
transactions/ – Account transaction lifecycle.
transactions/created/transactions/updated/transactions/deleted: a transaction was inserted, modified or removed during an item execution.
payment_intent/ – Payment Initiation flow (single PIX).
payment_intent/created: a payment intent was created.payment_intent/completed: the payment was confirmed by the institution.payment_intent/waiting_payer_authorization: the payer still needs to authorize the payment.payment_intent/error: the payment was rejected or failed.
payment_request/ – Aggregate payment request state.
payment_request/updated: the overall status of a payment request changed.
scheduled_payment/ – Scheduled (recurring or future) payments.
scheduled_payment/created/completed/error/canceled: lifecycle of a single scheduled payment.scheduled_payment/all_created/scheduled_payment/all_completed: emitted once when every scheduled payment in a series reaches the same terminal state.
boleto/ – Boleto status updates.
boleto/updated: the boleto data was updated (e.g. paid, expired, amount changed).
automatic_pix_payment/ – Recurring PIX (PIX Automático) individual payments.
automatic_pix_payment/created: a new recurring payment was scheduled.automatic_pix_payment/completed: the recurring payment was confirmed.automatic_pix_payment/error: the recurring payment failed.automatic_pix_payment/canceled: the recurring payment was canceled (by user, expiration or revoked consent).
smart_transfer_preauthorization/ – Smart Transfer pre-authorization (consent setup).
smart_transfer_preauthorization/completed: the pre-authorization was accepted.smart_transfer_preauthorization/error: the pre-authorization failed.
smart_transfer_payment/ – Smart Transfer individual payments executed under an active pre-authorization.
smart_transfer_payment/completed: the transfer was successful.smart_transfer_payment/error: the transfer failed.
Date when the webhook was disabled
Date when it was created
Date of the last update
Custom headers sent with each webhook delivery. Always present; an empty object when none are configured. A header named X-Pluggy-Signature here does not set or override the signature header Pluggy adds. Header values are only returned to teams with webhook API management enabled; otherwise each value is masked as ****.
Example response
{
"id": "string",
"url": "string",
"event": "all",
"disabledAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"headers": {
"<key>": "string"
}
}curl -X POST \
'https://api.pluggy.ai/webhooks' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY' \
-d '{ "url": "string", "event": "all", "headers": null }'{
"id": "string",
"url": "string",
"event": "all",
"disabledAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"headers": {
"<key>": "string"
}
}