Skip to content

Latest commit

 

History

History
123 lines (77 loc) · 4.81 KB

README.md

File metadata and controls

123 lines (77 loc) · 4.81 KB

Webhooks

(webhooks)

Overview

You can configure webhooks to be notified about various events that happen on your instance. https://clerk.com/docs/integration/webhooks

Available Operations

create_svix_app

Create a Svix app and associate it with the current instance

Example Usage

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)

Parameters

Parameter Type Required Description
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.SvixURL

Errors

Error Type Status Code Content Type
models.ClerkErrors 400 application/json
models.SDKError 4XX, 5XX */*

delete_svix_app

Delete a Svix app and disassociate it from the current instance

Example Usage

from clerk_backend_api import Clerk

with Clerk(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as clerk:

    clerk.webhooks.delete_svix_app()

    # Use the SDK ...

Parameters

Parameter Type Required Description
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Errors

Error Type Status Code Content Type
models.ClerkErrors 400 application/json
models.SDKError 4XX, 5XX */*

generate_svix_auth_url

Generate a new url for accessing the Svix's management dashboard for that particular instance

Example Usage

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)

Parameters

Parameter Type Required Description
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.SvixURL

Errors

Error Type Status Code Content Type
models.ClerkErrors 400 application/json
models.SDKError 4XX, 5XX */*