(integrations->webhooks)
- getSupportStatus - Get webhook support status for provider
Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value
declare(strict_types=1);
require 'vendor/autoload.php';
use novu;
$sdk = novu\Novu::builder()
->setSecurity(
'YOUR_SECRET_KEY_HERE'
)
->build();
$response = $sdk->integrations->webhooks->getSupportStatus(
providerOrIntegrationId: '<id>',
idempotencyKey: '<value>'
);
if ($response->boolean !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
providerOrIntegrationId |
string | ✔️ | N/A |
idempotencyKey |
?string | ➖ | A header for idempotency purposes |
?Operations\IntegrationsControllerGetWebhookSupportStatusResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ErrorDto | 414 | application/json |
Errors\ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
Errors\ValidationErrorDto | 422 | application/json |
Errors\ErrorDto | 500 | application/json |
Errors\APIException | 4XX, 5XX | */* |