(webhooks)
You can configure webhooks to be notified about various events that happen on your instance.
https://clerk.com/docs/integration/webhooks
Create a Svix app and associate it with the current instance
from clerk_backend_api import Clerk
with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as clerk:
res = clerk.webhooks.create_svix_app()
assert res is not None
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.SvixURL
Error Type |
Status Code |
Content Type |
models.ClerkErrors |
400 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Delete a Svix app and disassociate it from the current instance
from clerk_backend_api import Clerk
with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as clerk:
clerk.webhooks.delete_svix_app()
# Use the SDK ...
Parameter |
Type |
Required |
Description |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
Error Type |
Status Code |
Content Type |
models.ClerkErrors |
400 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Generate a new url for accessing the Svix's management dashboard for that particular instance
from clerk_backend_api import Clerk
with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as clerk:
res = clerk.webhooks.generate_svix_auth_url()
assert res is not None
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.SvixURL
Error Type |
Status Code |
Content Type |
models.ClerkErrors |
400 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |