Hooks
Register new hooks
Register a new hook with the Python SDK.
POST
Register new hooks
Use
blnk.hooks.create to register a webhook that Blnk calls before or after a transaction.
Call the method
blnk.hooks.create
| Field | Type | Description |
|---|---|---|
name | str | Descriptive name for the hook. |
url | str | Endpoint URL Blnk calls when the hook runs. |
type | str | PRE_TRANSACTION or POST_TRANSACTION. |
active | bool | Whether the hook is enabled. |
timeout | number | Maximum time in seconds allowed for the hook to execute. |
retry_count | number | Maximum number of retry attempts if the hook fails. |
Related docs
How webhooks work
Hook types, payloads, and execution.
Register new hooks
HTTP request and response schema.