Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

9.7 KB
Raw Blame

WebhooksApi

All URIs are relative to http://localhost:3000

Method HTTP request Description
webhookControllerGetAppPortalAccess POST /webhooks/organizations/{organizationId}/app-portal-access Get Svix Consumer App Portal access for an organization
webhookControllerGetInitializationStatus GET /webhooks/organizations/{organizationId}/initialization-status Get webhook initialization status for an organization
webhookControllerGetMessageAttempts GET /webhooks/organizations/{organizationId}/messages/{messageId}/attempts Get delivery attempts for a webhook message
webhookControllerGetStatus GET /webhooks/status Get webhook service status
webhookControllerInitializeWebhooks POST /webhooks/organizations/{organizationId}/initialize Initialize webhooks for an organization
webhookControllerSendWebhook POST /webhooks/organizations/{organizationId}/send Send a webhook message to an organization

webhookControllerGetAppPortalAccess

WebhookAppPortalAccess webhookControllerGetAppPortalAccess()

Example

import {
    WebhooksApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new WebhooksApi(configuration);

let organizationId: string; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.webhookControllerGetAppPortalAccess(
    organizationId,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
organizationId [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

WebhookAppPortalAccess

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 App Portal access generated successfully -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

webhookControllerGetInitializationStatus

WebhookInitializationStatus webhookControllerGetInitializationStatus()

Example

import {
    WebhooksApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new WebhooksApi(configuration);

let organizationId: string; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.webhookControllerGetInitializationStatus(
    organizationId,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
organizationId [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

WebhookInitializationStatus

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Webhook initialization status -
404 Webhook initialization status not found -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

webhookControllerGetMessageAttempts

Array webhookControllerGetMessageAttempts()

Example

import {
    WebhooksApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new WebhooksApi(configuration);

let organizationId: string; //
let messageId: string; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.webhookControllerGetMessageAttempts(
    organizationId,
    messageId,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
organizationId [string]
messageId [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

Array

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 List of delivery attempts -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

webhookControllerGetStatus

WebhookControllerGetStatus200Response webhookControllerGetStatus()

Example

import {
    WebhooksApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new WebhooksApi(configuration);

let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.webhookControllerGetStatus(
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

WebhookControllerGetStatus200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Webhook service status -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

webhookControllerInitializeWebhooks

webhookControllerInitializeWebhooks()

Example

import {
    WebhooksApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new WebhooksApi(configuration);

let organizationId: string; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.webhookControllerInitializeWebhooks(
    organizationId,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
organizationId [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
201 Webhooks initialized successfully -
403 User does not have access to this organization -
404 Organization not found -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

webhookControllerSendWebhook

webhookControllerSendWebhook(sendWebhookDto)

Example

import {
    WebhooksApi,
    Configuration,
    SendWebhookDto
} from './api';

const configuration = new Configuration();
const apiInstance = new WebhooksApi(configuration);

let organizationId: string; //
let sendWebhookDto: SendWebhookDto; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.webhookControllerSendWebhook(
    organizationId,
    sendWebhookDto,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
sendWebhookDto SendWebhookDto
organizationId [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Webhook message sent successfully -

[Back to top] [Back to API list] [Back to Model list] [Back to README]