- list_event_types - List all available event types that can be subscribed to.
- list - List all webhooks configured for the account.
- create - Create a new webhook for the account.
- get - Get details of a specific webhook.
- update - Update an existing webhook.
- disable - Disable a webhook. Disabled webhooks will no longer receive events.
- ping - Send a test ping to a webhook to verify it is configured correctly.
- get_secret - Get the secret key for verifying webhook payloads.
List all available event types that can be subscribed to.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.list_event_types()
# Handle response
print(res)
operations.ListEventTypesResponse
| Error Type |
Status Code |
Content Type |
| errors.APIError |
4XX, 5XX |
*/* |
List all webhooks configured for the account.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.list()
# Handle response
print(res)
operations.ListWebhooksResponse
| Error Type |
Status Code |
Content Type |
| errors.APIError |
4XX, 5XX |
*/* |
Create a new webhook for the account.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.create(url="https://experienced-sailor.biz/", status=components.WebhookStatus.DISABLED, event_types=[], description="overdue bonnet failing")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
url |
str |
✔️ |
The URL where webhook events will be sent. |
status |
components.WebhookStatus |
✔️ |
The status of the webhook. |
event_types |
List[components.WebhookEventType] |
✔️ |
The list of event types this webhook should subscribe to. |
description |
str |
✔️ |
A description of the webhook for reference. Can be an empty string. |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
operations.CreateWebhookResponse
| Error Type |
Status Code |
Content Type |
| errors.GenericError |
400, 409 |
application/json |
| errors.CreateWebhookValidationError |
422 |
application/json |
| errors.APIError |
4XX, 5XX |
*/* |
Get details of a specific webhook.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.get(webhook_id="deeb5a05-74d4-40ad-b4be-a9265fd49428")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
webhook_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
operations.GetWebhookResponse
| Error Type |
Status Code |
Content Type |
| errors.APIError |
4XX, 5XX |
*/* |
Update an existing webhook.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.update(webhook_id="954b566e-0c37-481b-bf92-6cdbd0e47dc0", url="https://nimble-affect.name", status=components.WebhookStatus.ENABLED, event_types=[], description="hmph eyeglasses pink stylish blah")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
webhook_id |
str |
✔️ |
N/A |
url |
str |
✔️ |
The URL where webhook events will be sent. |
status |
components.WebhookStatus |
✔️ |
The status of the webhook. |
event_types |
List[components.WebhookEventType] |
✔️ |
The list of event types this webhook should subscribe to. |
description |
str |
✔️ |
A description of the webhook for reference. Can be an empty string. |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
operations.UpdateWebhookResponse
| Error Type |
Status Code |
Content Type |
| errors.GenericError |
400, 409 |
application/json |
| errors.UpdateWebhookValidationError |
422 |
application/json |
| errors.APIError |
4XX, 5XX |
*/* |
Disable a webhook. Disabled webhooks will no longer receive events.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.disable(webhook_id="c88929b3-cbb6-4144-923f-e9a5ba645708")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
webhook_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
operations.DisableWebhookResponse
| Error Type |
Status Code |
Content Type |
| errors.GenericError |
400, 409 |
application/json |
| errors.APIError |
4XX, 5XX |
*/* |
Send a test ping to a webhook to verify it is configured correctly.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.ping(webhook_id="87e0ecc6-d6c3-4eeb-99e8-6dbe9212a6a2")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
webhook_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
operations.PingWebhookResponse
| Error Type |
Status Code |
Content Type |
| errors.APIError |
4XX, 5XX |
*/* |
Get the secret key for verifying webhook payloads.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
x_moov_version="<value>",
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.webhooks.get_secret(webhook_id="1fac81d6-2d5b-4180-8765-81282a450eda")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
webhook_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
operations.GetWebhookSecretResponse
| Error Type |
Status Code |
Content Type |
| errors.APIError |
4XX, 5XX |
*/* |