(Webhooks)
You can configure webhooks to be notified about various events that happen on your instance. https://clerk.com/docs/integration/webhooks
- CreateSvixApp - Create a Svix app
- DeleteSvixApp - Delete a Svix app
- GenerateSvixAuthURL - Create a Svix Dashboard URL
Create a Svix app and associate it with the current instance
using Clerk.BackendAPI;
using Clerk.BackendAPI.Models.Components;
var sdk = new ClerkBackendApi(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Webhooks.CreateSvixAppAsync();
// handle response
Error Type | Status Code | Content Type |
---|---|---|
Clerk.BackendAPI.Models.Errors.ClerkErrors | 400 | application/json |
Clerk.BackendAPI.Models.Errors.SDKError | 4XX, 5XX | */* |
Delete a Svix app and disassociate it from the current instance
using Clerk.BackendAPI;
using Clerk.BackendAPI.Models.Components;
var sdk = new ClerkBackendApi(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Webhooks.DeleteSvixAppAsync();
// handle response
Error Type | Status Code | Content Type |
---|---|---|
Clerk.BackendAPI.Models.Errors.ClerkErrors | 400 | application/json |
Clerk.BackendAPI.Models.Errors.SDKError | 4XX, 5XX | */* |
Generate a new url for accessing the Svix's management dashboard for that particular instance
using Clerk.BackendAPI;
using Clerk.BackendAPI.Models.Components;
var sdk = new ClerkBackendApi(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Webhooks.GenerateSvixAuthURLAsync();
// handle response
Error Type | Status Code | Content Type |
---|---|---|
Clerk.BackendAPI.Models.Errors.ClerkErrors | 400 | application/json |
Clerk.BackendAPI.Models.Errors.SDKError | 4XX, 5XX | */* |