For AI agents: the complete documentation index is at https://www.daytona.com/llms.txt. Append .md to any docs page URL to get it as Markdown.

Sign Up
Skip to Content

Unknown

An image was created

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.image.created payload.

application/json
  1. body

The v2.image.created webhook payload.

image*

The image.

occurred_at*string

When the image was created on the platform, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order an image's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the image.

Formatuuid
project_id*string

The ID of the project that owns the image.

Formatuuid
timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.image.created.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.image.created

The v2.image.created webhook payload.

Request Body
application/json
{  "image": {    "class": "string",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "name": "string",    "origin": "registry",    "region_id": "string",    "status": "pending"  },  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

An image was deleted

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.image.deleted payload.

application/json
  1. body

The v2.image.deleted webhook payload.

image*

The image as it was when it was deleted.

occurred_at*string

When the image was deleted, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order an image's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owned the image.

Formatuuid
project_id*string

The ID of the project that owned the image.

Formatuuid
timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.image.deleted.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.image.deleted

The v2.image.deleted webhook payload.

Request Body
application/json
{  "image": {    "class": "string",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "name": "string",    "origin": "registry",    "region_id": "string",    "status": "pending"  },  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

An image changed status

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.image.status_changed payload.

application/json
  1. body

The v2.image.status_changed webhook payload.

from_status*ImageStatus

The status before the change.

Value in"pending""building""ready""failed"
image*

The image, with its status after the change.

occurred_at*string

When the status changed, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order an image's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the image.

Formatuuid
project_id*string

The ID of the project that owns the image.

Formatuuid
timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.image.status_changed.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.image.status_changed

The v2.image.status_changed webhook payload.

Request Body
application/json
{  "from_status": "pending",  "image": {    "class": "string",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "name": "string",    "origin": "registry",    "region_id": "string",    "status": "pending"  },  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

A sandbox was created

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.sandbox.created payload.

application/json
  1. body

The v2.sandbox.created webhook payload.

occurred_at*string

When the sandbox was created on the platform, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a sandbox's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the sandbox.

Formatuuid
project_id*string

The ID of the project that owns the sandbox.

Formatuuid
sandbox*

The sandbox.

timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.sandbox.created.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.sandbox.created

The v2.sandbox.created webhook payload.

Request Body
application/json
{  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "sandbox": {    "class": "linux",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "labels": {      "property1": "string",      "property2": "string"    },    "name": "string",    "region_id": "string",    "status": "queued"  },  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

A sandbox changed status

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.sandbox.status_changed payload.

application/json
  1. body

The v2.sandbox.status_changed webhook payload.

from_status*SandboxStatus

The status before the change.

Value in"queued""pending""assigned""booting""running""pausing""paused""stopping""stopped""deleting""deleted""failed""lost"
occurred_at*string

When the status changed, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a sandbox's events by this field. Two steps of one change can, rarely, carry the same value.

Formatdate-time
organization_id*string

The ID of the organization that owns the sandbox.

Formatuuid
project_id*string

The ID of the project that owns the sandbox.

Formatuuid
sandbox*

The sandbox, with its status after the change.

timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.sandbox.status_changed.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.sandbox.status_changed

The v2.sandbox.status_changed webhook payload.

Request Body
application/json
{  "from_status": "queued",  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "sandbox": {    "class": "linux",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "labels": {      "property1": "string",      "property2": "string"    },    "name": "string",    "region_id": "string",    "status": "queued"  },  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

A snapshot was created

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.snapshot.created payload.

application/json
  1. body

The v2.snapshot.created webhook payload.

occurred_at*string

When the snapshot was created on the platform, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a snapshot's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the snapshot.

Formatuuid
project_id*string

The ID of the project that owns the snapshot.

Formatuuid
snapshot*

The snapshot.

timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.snapshot.created.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.snapshot.created

The v2.snapshot.created webhook payload.

Request Body
application/json
{  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "snapshot": {    "class": "linux",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "kind": "full",    "name": "string",    "region_id": "string",    "status": "pending"  },  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

A snapshot was deleted

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.snapshot.deleted payload.

application/json
  1. body

The v2.snapshot.deleted webhook payload.

occurred_at*string

When the snapshot was deleted, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a snapshot's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owned the snapshot.

Formatuuid
project_id*string

The ID of the project that owned the snapshot.

Formatuuid
snapshot*

The snapshot as it was when it was deleted.

timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.snapshot.deleted.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.snapshot.deleted

The v2.snapshot.deleted webhook payload.

Request Body
application/json
{  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "snapshot": {    "class": "linux",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "kind": "full",    "name": "string",    "region_id": "string",    "status": "pending"  },  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.snapshot.status_changed payload.

application/json
  1. body

The v2.snapshot.status_changed webhook payload.

from_status*SnapshotStatus

The status before the change.

Value in"pending""building""ready""failed"
occurred_at*string

When the status changed, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a snapshot's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the snapshot.

Formatuuid
project_id*string

The ID of the project that owns the snapshot.

Formatuuid
snapshot*

The snapshot, with its status after the change.

timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.snapshot.status_changed.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.snapshot.status_changed

The v2.snapshot.status_changed webhook payload.

Request Body
application/json
{  "from_status": "pending",  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "snapshot": {    "class": "linux",    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "kind": "full",    "name": "string",    "region_id": "string",    "status": "pending"  },  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created"}

A volume was created

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.volume.created payload.

application/json
  1. body

The v2.volume.created webhook payload.

occurred_at*string

When the volume was created on the platform, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a volume's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the volume.

Formatuuid
project_id*string

The ID of the project that owns the volume.

Formatuuid
timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.volume.created.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"
volume*

The volume.

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.volume.created

The v2.volume.created webhook payload.

Request Body
application/json
{  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created",  "volume": {    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "name": "string",    "status": "ready",    "type": "disk"  }}

A volume changed status

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.volume.status_changed payload.

application/json
  1. body

The v2.volume.status_changed webhook payload.

from_status*VolumeStatus

The status before the change.

Value in"ready""deleting""deleted""error"
occurred_at*string

When the status changed, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a volume's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the volume.

Formatuuid
project_id*string

The ID of the project that owns the volume.

Formatuuid
timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.volume.status_changed.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"
volume*

The volume, with its status after the change. A deleted volume has the status deleted.

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.volume.status_changed

The v2.volume.status_changed webhook payload.

Request Body
application/json
{  "from_status": "ready",  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created",  "volume": {    "created_at": "2019-08-24T14:15:22Z",    "id": "string",    "name": "string",    "status": "ready",    "type": "disk"  }}

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.wallet.depleted payload. Sent when the wallet balance has run out and the organization is being suspended: the same decision as the depleted-balance email.

application/json
  1. body

The v2.wallet.depleted webhook payload.

occurred_at*string

When the platform found the wallet depleted and requested the organization's suspension, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a wallet's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the wallet.

Formatuuid
timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.wallet.depleted.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"
wallet*

The wallet.

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.wallet.depleted

The v2.wallet.depleted webhook payload.

Request Body
application/json
{  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created",  "wallet": {    "balance_cents": 0,    "currency": "string",    "free_credits_balance_cents": 0,    "paid_credits_balance_cents": 0  }}

Sent as an HTTP POST with a JSON body to each of the organization's webhook endpoints that subscribes to this event type. Every delivery carries three headers: svix-id, the message ID, which stays the same when a delivery is retried; svix-timestamp, the send time in seconds since the Unix epoch; and svix-signature, the signature. To verify a delivery, pass the raw request body, before parsing it, and the three headers to a Svix webhook verification library, with the endpoint's signing secret (whsec_...) from the dashboard's Webhooks page. Reject a delivery whose signature does not verify or whose timestamp is more than five minutes from the current time. Deduplicate deliveries on svix-id. Deliveries are not ordered; order the events of one resource (a sandbox, volume, image, snapshot, or the wallet) by their occurred_at.

Request Body

The v2.wallet.low_balance payload. Sent when the wallet's free and paid credits, after the month's unbilled usage, are at or below the organization's low-balance notification threshold: the same decision as the low-balance email. wallet.balance_cents leaves that usage out and can be above threshold_cents.

application/json
  1. body

The v2.wallet.low_balance webhook payload.

currency*string

The lowercase ISO 4217 currency code of the threshold.

occurred_at*string

When the platform found the balance at or below the threshold, as an RFC 3339 timestamp in UTC with microsecond precision. Deliveries are not ordered; order a wallet's events by this field.

Formatdate-time
organization_id*string

The ID of the organization that owns the wallet.

Formatuuid
threshold_cents*integer

The organization's low-balance notification threshold in cents. The event is sent when the wallet's promotional plus purchased credit balance is at or below it.

Formatint64
timestamp*string

When the webhook was sent, as an RFC 3339 timestamp in UTC.

Formatdate-time
type*WebhookEventType

The event type, v2.wallet.low_balance.

Value in"v2.sandbox.created""v2.sandbox.status_changed""v2.volume.created""v2.volume.status_changed""v2.image.created""v2.image.status_changed""v2.image.deleted""v2.snapshot.created""v2.snapshot.status_changed""v2.snapshot.deleted""v2.wallet.low_balance""v2.wallet.depleted"
wallet*

The wallet.

Response Body

The delivery was received. Any 2xx status acknowledges it; any other status, or no answer, is retried.

Example Requests
POST/v2.wallet.low_balance

The v2.wallet.low_balance webhook payload.

Request Body
application/json
{  "currency": "string",  "occurred_at": "2019-08-24T14:15:22Z",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "threshold_cents": 0,  "timestamp": "2019-08-24T14:15:22Z",  "type": "v2.sandbox.created",  "wallet": {    "balance_cents": 0,    "currency": "string",    "free_credits_balance_cents": 0,    "paid_credits_balance_cents": 0  }}