Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 3.09 KB

File metadata and controls

108 lines (72 loc) · 3.09 KB

Webhooks

Overview

Available Operations

create_svix_app

Create a Svix app and associate it with the current instance

Example Usage

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
end

Response

Crystalline::Nilable.new(Models::Operations::CreateSvixAppResponse)

Errors

Error Type Status Code Content Type
Models::Errors::ClerkErrors 400 application/json
Errors::APIError 4XX, 5XX */*

delete_svix_app

Delete a Svix app and disassociate it from the current instance

Example Usage

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
end

Response

Crystalline::Nilable.new(Models::Operations::DeleteSvixAppResponse)

Errors

Error Type Status Code Content Type
Models::Errors::ClerkErrors 400 application/json
Errors::APIError 4XX, 5XX */*

generate_svix_auth_url

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

Example Usage

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
end

Response

Crystalline::Nilable.new(Models::Operations::GenerateSvixAuthURLResponse)

Errors

Error Type Status Code Content Type
Models::Errors::ClerkErrors 400 application/json
Errors::APIError 4XX, 5XX */*