- create_svix_app - Create a Svix app
- delete_svix_app - Delete a Svix app
- generate_svix_auth_url - Create a Svix Dashboard URL
Create a Svix app and associate it with the current instance
require 'clerk_sdk_ruby'
Models = ::Clerk::Models
s = ::Clerk::OpenAPIClient.new(
bearer_auth: '<YOUR_BEARER_TOKEN_HERE>'
)
res = s.webhooks.create_svix_app
unless res.svix_url.nil?
# handle response
endCrystalline::Nilable.new(Models::Operations::CreateSvixAppResponse)
| Error Type | Status Code | Content Type |
|---|---|---|
| Models::Errors::ClerkErrors | 400 | application/json |
| Errors::APIError | 4XX, 5XX | */* |
Delete a Svix app and disassociate it from the current instance
require 'clerk_sdk_ruby'
Models = ::Clerk::Models
s = ::Clerk::OpenAPIClient.new(
bearer_auth: '<YOUR_BEARER_TOKEN_HERE>'
)
res = s.webhooks.delete_svix_app
if res.status_code == 200
# handle response
endCrystalline::Nilable.new(Models::Operations::DeleteSvixAppResponse)
| Error Type | Status Code | Content Type |
|---|---|---|
| Models::Errors::ClerkErrors | 400 | application/json |
| Errors::APIError | 4XX, 5XX | */* |
Generate a new URL for accessing the Svix's management dashboard for that particular instance
require 'clerk_sdk_ruby'
Models = ::Clerk::Models
s = ::Clerk::OpenAPIClient.new(
bearer_auth: '<YOUR_BEARER_TOKEN_HERE>'
)
res = s.webhooks.generate_svix_auth_url
unless res.svix_url.nil?
# handle response
endCrystalline::Nilable.new(Models::Operations::GenerateSvixAuthURLResponse)
| Error Type | Status Code | Content Type |
|---|---|---|
| Models::Errors::ClerkErrors | 400 | application/json |
| Errors::APIError | 4XX, 5XX | */* |