Sign Up

Webhooks

POST
/webhooks/organizations/{organizationId}/app-portal-access

Authorization

headerAuthorizationBearer <token>

API Key access

Path Parameters

organizationId*string

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

App Portal access generated successfully

application/json
  1. response
token*string

The authentication token for the Svix consumer app portal

url*string

The URL to the webhook app portal

curl -X POST 'http://localhost:3000/webhooks/organizations/string/app-portal-access'
{  "url": "https://app.svix.com/app_1234567890",  "token": "appsk_..."}
GET
/webhooks/organizations/{organizationId}/initialization-status

Authorization

headerAuthorizationBearer <token>

API Key access

Path Parameters

organizationId*string

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

Webhook initialization status

application/json
  1. response
organizationId*string

Organization ID

svixApplicationId*|

The ID of the Svix application

lastError*|

The error reason for the last initialization attempt

retryCount*number

The number of times the initialization has been attempted

createdAt*string

When the webhook initialization was created

updatedAt*string

When the webhook initialization was last updated

curl -X GET 'http://localhost:3000/webhooks/organizations/string/initialization-status'
{  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "createdAt": "2023-01-01T00:00:00.000Z",  "lastError": "Failed to create Svix application",  "retryCount": 3,  "svixApplicationId": "app_1234567890",  "updatedAt": "2023-01-01T00:00:00.000Z"}
POST
/webhooks/organizations/{organizationId}/initialize

Authorization

headerAuthorizationBearer <token>

API Key access

Path Parameters

organizationId*string

Organization ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

Webhooks initialized successfully

application/json
  1. response
organizationId*string

Organization ID

svixApplicationId*|

The ID of the Svix application

lastError*|

The error reason for the last initialization attempt

retryCount*number

The number of times the initialization has been attempted

createdAt*string

When the webhook initialization was created

updatedAt*string

When the webhook initialization was last updated

curl -X POST 'http://localhost:3000/webhooks/organizations/string/initialize'
{  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "createdAt": "2023-01-01T00:00:00.000Z",  "lastError": "Failed to create Svix application",  "retryCount": 3,  "svixApplicationId": "app_1234567890",  "updatedAt": "2023-01-01T00:00:00.000Z"}
POST
/webhooks/organizations/{organizationId}/refresh-endpoints

Authorization

headerAuthorizationBearer <token>

API Key access

Path Parameters

organizationId*string

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

Endpoint flag refreshed

curl -X POST 'http://localhost:3000/webhooks/organizations/string/refresh-endpoints'
Empty