All URIs are relative to https://api.carbon.ai
Method | HTTP request | Description |
---|---|---|
addWebhookUrlAddWebhookPost | POST /add_webhook | Add Webhook Url |
deleteWebhookUrlDeleteWebhookWebhookIdDelete | DELETE /delete_webhook/{webhook_id} | Delete Webhook Url |
webhookUrlsWebhooksPost | POST /webhooks | Webhook Urls |
Webhook addWebhookUrlAddWebhookPost(authorization, addWebhookProps)
Add Webhook Url
import CarbonJsSdk from 'carbon-js-sdk';
let apiInstance = new CarbonJsSdk.WebhooksApi();
let authorization = "authorization_example"; // String |
let addWebhookProps = new CarbonJsSdk.AddWebhookProps(); // AddWebhookProps |
apiInstance.addWebhookUrlAddWebhookPost(authorization, addWebhookProps, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
addWebhookProps | AddWebhookProps |
No authorization required
- Content-Type: application/json
- Accept: application/json
GenericSuccessResponse deleteWebhookUrlDeleteWebhookWebhookIdDelete(webhookId, authorization)
Delete Webhook Url
import CarbonJsSdk from 'carbon-js-sdk';
let apiInstance = new CarbonJsSdk.WebhooksApi();
let webhookId = 56; // Number |
let authorization = "authorization_example"; // String |
apiInstance.deleteWebhookUrlDeleteWebhookWebhookIdDelete(webhookId, authorization, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
webhookId | Number | ||
authorization | String |
No authorization required
- Content-Type: Not defined
- Accept: application/json
WebhookQueryResponse webhookUrlsWebhooksPost(authorization, webhookQueryInput)
Webhook Urls
import CarbonJsSdk from 'carbon-js-sdk';
let apiInstance = new CarbonJsSdk.WebhooksApi();
let authorization = "authorization_example"; // String |
let webhookQueryInput = new CarbonJsSdk.WebhookQueryInput(); // WebhookQueryInput |
apiInstance.webhookUrlsWebhooksPost(authorization, webhookQueryInput, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | ||
webhookQueryInput | WebhookQueryInput |
No authorization required
- Content-Type: application/json
- Accept: application/json