(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
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$response = $sdk->webhooks->createSvixApp(
);
if ($response->svixURL !== null) {
// handle response
}
?Operations\CreateSvixAppResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors62 | 400 | application/json |
Errors\SDKException | 4XX, 5XX | */* |
Delete a Svix app and disassociate it from the current instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$response = $sdk->webhooks->deleteSvixApp(
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\DeleteSvixAppResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors63 | 400 | application/json |
Errors\SDKException | 4XX, 5XX | */* |
Generate a new url for accessing the Svix's management dashboard for that particular instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$response = $sdk->webhooks->generateSvixAuthURL(
);
if ($response->svixURL !== null) {
// handle response
}
?Operations\GenerateSvixAuthURLResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors63 | 400 | application/json |
Errors\SDKException | 4XX, 5XX | */* |