> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Daytona API reference

> API reference for the Daytona plugin in Corsair: every `daytona.api.*` operation with its input and output types, taken from the plugin's Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Analytics

### telemetry.getTrace

`analytics.telemetry.getTrace`

Get trace spans

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.telemetry.getTrace({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c', sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f', traceId: '4bf92f3577b34da6a3ce929d0e0e4736' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `sandboxId` | `string` | Yes | Sandbox ID |
| `traceId` | `string` | Yes | Trace ID |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   durationMs?: number | null,
>   parentSpanId?: string | null,
>   spanAttributes?: Record<string, string> | null,
>   spanId?: string | null,
>   spanName?: string | null,
>   statusCode?: string | null,
>   statusMessage?: string | null,
>   timestamp?: string | null,
>   traceId?: string | null
> }[]
> ```

***

### telemetry.logs

`analytics.telemetry.logs`

Get sandbox logs

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.telemetry.logs({
	organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c',
	sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f',
	from: '2026-11-01T00:00:00Z',
	to: '2026-11-27T00:00:00Z',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `sandboxId` | `string` | Yes | Sandbox ID |
| `from` | `string` | Yes | Start time (RFC3339) |
| `to` | `string` | Yes | End time (RFC3339) |
| `severity` | `string` | No | Comma-separated severity levels |
| `search` | `string` | No | Search text (ILIKE) |
| `limit` | `number` | No | Page size |
| `offset` | `number` | No | Offset |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   body?: string | null,
>   logAttributes?: Record<string, string> | null,
>   resourceAttributes?: Record<string, string> | null,
>   serviceName?: string | null,
>   severityNumber?: number | null,
>   severityText?: string | null,
>   spanId?: string | null,
>   timestamp?: string | null,
>   traceId?: string | null
> }[]
> ```

***

### telemetry.metrics

`analytics.telemetry.metrics`

Get sandbox metrics

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.telemetry.metrics({
	organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c',
	sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f',
	from: '2026-11-01T00:00:00Z',
	to: '2026-11-27T00:00:00Z',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `sandboxId` | `string` | Yes | Sandbox ID |
| `from` | `string` | Yes | Start time (RFC3339) |
| `to` | `string` | Yes | End time (RFC3339) |
| `metricNames` | `string` | No | Comma-separated metric names |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   metricName?: string | null,
>   timestamp?: string | null,
>   value?: number | null
> }[]
> ```

***

### telemetry.traces

`analytics.telemetry.traces`

Get sandbox traces

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.telemetry.traces({
	organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c',
	sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f',
	from: '2026-11-01T00:00:00Z',
	to: '2026-11-27T00:00:00Z',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `sandboxId` | `string` | Yes | Sandbox ID |
| `from` | `string` | Yes | Start time (RFC3339) |
| `to` | `string` | Yes | End time (RFC3339) |
| `limit` | `number` | No | Page size |
| `offset` | `number` | No | Offset |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   endTime?: string | null,
>   rootSpanName?: string | null,
>   spanCount?: number | null,
>   startTime?: string | null,
>   statusCode?: string | null,
>   totalDurationMs?: number | null,
>   traceId?: string | null
> }[]
> ```

***

### usage.aggregated

`analytics.usage.aggregated`

Get aggregated usage

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.usage.aggregated({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c', from: '2026-11-01T00:00:00Z', to: '2026-11-27T00:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `from` | `string` | Yes | Start time (RFC3339) |
| `to` | `string` | Yes | End time (RFC3339) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `firstStart` | `string \| null` | No | — |
| `lastEnd` | `string \| null` | No | — |
| `sandboxCount` | `number \| null` | No | — |
| `totalCPUSeconds` | `number \| null` | No | — |
| `totalDiskGBSeconds` | `number \| null` | No | — |
| `totalGPUSeconds` | `number \| null` | No | — |
| `totalPrice` | `number \| null` | No | — |
| `totalRAMGBSeconds` | `number \| null` | No | — |

***

### usage.bySandbox

`analytics.usage.bySandbox`

Get per-sandbox usage

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.usage.bySandbox({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c', from: '2026-11-01T00:00:00Z', to: '2026-11-27T00:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `from` | `string` | Yes | Start time (RFC3339) |
| `to` | `string` | Yes | End time (RFC3339) |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   firstStart?: string | null,
>   lastEnd?: string | null,
>   sandboxId?: string | null,
>   totalCPUSeconds?: number | null,
>   totalDiskGBSeconds?: number | null,
>   totalGPUSeconds?: number | null,
>   totalPrice?: number | null,
>   totalRAMGBSeconds?: number | null
> }[]
> ```

***

### usage.chart

`analytics.usage.chart`

Get usage chart data

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.usage.chart({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c', from: '2026-11-01T00:00:00Z', to: '2026-11-27T00:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `from` | `string` | Yes | Start time (RFC3339) |
| `to` | `string` | Yes | End time (RFC3339) |
| `region` | `string` | No | Region filter |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   cpu?: number | null,
>   cpuPrice?: number | null,
>   diskGB?: number | null,
>   diskPrice?: number | null,
>   ramGB?: number | null,
>   ramPrice?: number | null,
>   time?: string | null
> }[]
> ```

***

### usage.sandbox

`analytics.usage.sandbox`

Get sandbox usage periods

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.analytics.usage.sandbox({
	organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c',
	sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f',
	from: '2026-11-01T00:00:00Z',
	to: '2026-11-27T00:00:00Z',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `sandboxId` | `string` | Yes | Sandbox ID |
| `from` | `string` | Yes | Start time (RFC3339) |
| `to` | `string` | Yes | End time (RFC3339) |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   cpu?: number | null,
>   diskGB?: number | null,
>   endAt?: string | null,
>   gpu?: number | null,
>   price?: number | null,
>   ramGB?: number | null,
>   startAt?: string | null
> }[]
> ```

***

## Api Keys

### create

`apiKeys.create`

Create API key

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.apiKeys.create({
	name: 'my-sandbox',
	permissions: ['write:registries'],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | Yes | The name of the API key |
| `permissions` | `(write:registries \| delete:registries \| write:snapshots \| delete:snapshots \| write:sandboxes \| delete:sandboxes \| read:volumes \| write:volumes \| delete:volumes \| write:regions \| delete:regions \| read:runners \| write:runners \| delete:runners \| read:audit_logs \| manage:api_keys \| manage:secrets \| read:limits \| manage:sso \| read:billing \| manage:billing)[]` | Yes | The list of organization resource permissions explicitly assigned to the API key |
| `expiresAt` | `string \| null` | No | When the API key expires |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | `string \| null` | No | The name of the API key |
| `value` | `string \| null` | No | The API key value |
| `createdAt` | `string \| null` | No | When the API key was created |
| `permissions` | `string[] \| null` | No | The list of organization resource permissions assigned to the API key |
| `expiresAt` | `string \| null \| null` | No | When the API key expires |

***

### delete

`apiKeys.delete`

Delete API key

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.apiKeys.delete({ name: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### getCurrent

`apiKeys.getCurrent`

Get current API key's details

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.apiKeys.getCurrent({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | `string \| null` | No | The name of the API key |
| `value` | `string \| null` | No | The masked API key value |
| `createdAt` | `string \| null` | No | When the API key was created |
| `permissions` | `string[] \| null` | No | The list of organization resource permissions assigned to the API key |
| `lastUsedAt` | `string \| null \| null` | No | When the API key was last used |
| `expiresAt` | `string \| null \| null` | No | When the API key expires |
| `userId` | `string \| null` | No | The user ID of the user who created the API key |
| `organizationId` | `string \| null` | No | The organization ID associated with the API key |

***

### list

`apiKeys.list`

List API keys

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.apiKeys.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   value?: string | null,
>   createdAt?: string | null,
>   permissions?: string[] | null,
>   lastUsedAt?: string | null | null,
>   expiresAt?: string | null | null,
>   userId?: string | null,
>   organizationId?: string | null
> }[]
> ```

***

## Audit

### getOrganizationLogs

`audit.getOrganizationLogs`

Get audit logs for organization

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.audit.getOrganizationLogs({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |
| `page` | `number` | No | Page number of the results |
| `limit` | `number` | No | Number of results per page |
| `from` | `string` | No | Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format). |
| `to` | `string` | No | Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format). |
| `nextToken` | `string` | No | Token for cursor-based pagination. When provided, takes precedence over page parameter. |
| `id` | `object` | No | — |
| `actorId` | `object` | No | — |
| `actorEmail` | `object` | No | — |
| `actorApiKeyPrefix` | `object` | No | — |
| `actorApiKeySuffix` | `object` | No | — |
| `action` | `object` | No | — |
| `targetType` | `object` | No | — |
| `targetId` | `object` | No | — |
| `statusCode` | `object` | No | — |
| `createdAt` | `object` | No | — |
| `actorPartner` | `object` | No | — |

> [accordion] id full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] actorId full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] actorEmail full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] actorApiKeyPrefix full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] actorApiKeySuffix full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] action full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] targetType full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] targetId full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

> [accordion] statusCode full type
>
> ```ts theme={null}
> {
>   eq?: number,
>   not?: number,
>   in?: number[],
>   notIn?: number[],
>   gte?: number,
>   lte?: number,
>   gt?: number,
>   lt?: number
> }
> ```

> [accordion] createdAt full type
>
> ```ts theme={null}
> {
>   gte?: string,
>   lte?: string,
>   gt?: string,
>   lt?: string
> }
> ```

> [accordion] actorPartner full type
>
> ```ts theme={null}
> {
>   eq?: string,
>   not?: string,
>   in?: string[],
>   notIn?: string[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[] \| null` | No | — |
| `total` | `number \| null` | No | — |
| `page` | `number \| null` | No | — |
| `totalPages` | `number \| null` | No | — |
| `nextToken` | `string \| null` | No | Token for next page in cursor-based pagination |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   actorId?: string | null,
>   actorEmail?: string | null,
>   actorApiKeyPrefix?: string | null,
>   actorApiKeySuffix?: string | null,
>   actorPartner?: string | null,
>   organizationId?: string | null,
>   action?: string | null,
>   targetType?: string | null,
>   targetId?: string | null,
>   statusCode?: number | null,
>   errorMessage?: string | null,
>   ipAddress?: string | null,
>   userAgent?: string | null,
>   source?: string | null,
>   metadata?: {
>   } | null,
>   createdAt?: string | null
> }[] | null
> ```

***

### getScenarios

`audit.getScenarios`

Get supported audit log scenarios

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.audit.getScenarios({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `targets` | `object[] \| null` | No | Supported audit log scenarios grouped by target type. Derived at runtime from the audited routes and system events, sorted by target type. |

> [accordion] targets full type
>
> ```ts theme={null}
> {
>   targetType?: string | null,
>   actions?: string[] | null
> }[] | null
> ```

***

## Config

### get

`config.get`

Get config

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.config.get({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `version` | `string \| null` | No | Daytona version |
| `buildSha` | `string \| null` | No | Commit sha of the source the app was built from |
| `posthog` | `object \| null` | No | PostHog configuration |
| `oidc` | `object \| null` | No | OIDC configuration |
| `ssoOidc` | `object \| null` | No | OIDC configuration for org-SSO logins (Daytona Auth issuer). Present only when the secondary (org-SSO) issuer is configured; the dashboard uses it as its authority when entered via an organization SSO link. |
| `forcedFeatureFlags` | `string[] \| null` | No | Feature flags forced on for this deployment regardless of PostHog targeting. Lets environments without PostHog (previews, local dev) enable flag-gated dashboard features. |
| `linkedAccountsEnabled` | `boolean \| null` | No | Whether linked accounts are enabled |
| `announcements` | `object \| null` | No | System announcements |
| `pylonAppId` | `string \| null` | No | Pylon application ID |
| `proxyTemplateUrl` | `string \| null` | No | Proxy template URL |
| `proxyToolboxUrl` | `string \| null` | No | Toolbox template URL |
| `defaultSnapshot` | `string \| null` | No | Default snapshot for sandboxes |
| `dashboardUrl` | `string \| null` | No | Dashboard URL |
| `maxAutoArchiveInterval` | `number \| null` | No | Maximum auto-archive interval in minutes |
| `maintananceMode` | `boolean \| null` | No | Whether maintenance mode is enabled |
| `environment` | `string \| null` | No | Current environment |
| `billingApiUrl` | `string \| null` | No | Billing API URL |
| `analyticsApiUrl` | `string \| null` | No | Analytics API URL |
| `v2DashboardUrl` | `string \| null` | No | Base URL of the new Daytona dashboard. The dashboard links to it, with the selected organization id appended, from its "Switch to the new Daytona" entry point when that is enabled for the organization. Absent when the deployment does not advertise one. |
| `stripePublishableKey` | `string \| null` | No | Stripe publishable key for client-side Stripe.js |
| `sshGatewayCommand` | `string \| null` | No | SSH Gateway command |
| `sshGatewayPublicKey` | `string \| null` | No | Base64 encoded SSH Gateway public key |
| `sshGatewayHost` | `string \| null` | No | Hostname of the SSH Gateway that sandbox SSH connections terminate at |
| `sshGatewayPort` | `number \| null` | No | TCP port of the SSH Gateway |
| `sshGatewayHostKeys` | `string[] \| null` | No | SSH host public keys presented by the SSH Gateway, as OpenSSH public key lines (`<type> <base64>`). To build a known\_hosts entry, prefix each with `sshGatewayHost` when `sshGatewayPort` is 22, or with `[sshGatewayHost]:sshGatewayPort` otherwise. |
| `sshGatewayHostKeyFingerprints` | `string[] \| null` | No | SHA256 fingerprints of sshGatewayHostKeys, in the same order, in `ssh-keygen -lf` format. Compare against the fingerprint published at [https://github.com/daytona/.github/blob/main/SECURITY.md#ssh-host-key-verification](https://github.com/daytona/.github/blob/main/SECURITY.md#ssh-host-key-verification) |
| `rateLimit` | `object \| null` | No | Rate limit configuration |

> [accordion] posthog full type
>
> ```ts theme={null}
> {
>   apiKey?: string | null,
>   host?: string | null
> } | null
> ```

> [accordion] oidc full type
>
> ```ts theme={null}
> {
>   issuer?: string | null,
>   clientId?: string | null,
>   audience?: string | null,
>   provider?: string | null,
>   authApiHostname?: string | null,
>   cli?: {
>     issuer?: string | null,
>     clientId?: string | null
>   } | null
> } | null
> ```

> [accordion] ssoOidc full type
>
> ```ts theme={null}
> {
>   issuer?: string | null,
>   clientId?: string | null
> } | null
> ```

> [accordion] announcements full type
>
> ```ts theme={null}
> Record<string, {
>   text?: string | null,
>   learnMoreUrl?: string | null
> }> | null
> ```

> [accordion] rateLimit full type
>
> ```ts theme={null}
> {
>   failedAuth?: {
>     ttl?: number | null,
>     limit?: number | null
>   } | null,
>   authenticated?: {
>     ttl?: number | null,
>     limit?: number | null
>   } | null,
>   sandboxCreate?: {
>     ttl?: number | null,
>     limit?: number | null
>   } | null,
>   sandboxLifecycle?: {
>     ttl?: number | null,
>     limit?: number | null
>   } | null,
>   sandboxList?: {
>     ttl?: number | null,
>     limit?: number | null
>   } | null
> } | null
> ```

***

## Docker Registries

### create

`dockerRegistries.create`

Create registry

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.dockerRegistries.create({
	name: 'my-sandbox',
	password: 'example',
	url: 'https://github.com/daytonaio/daytona.git',
	username: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `mtlsRoleArn` | `string \| null` | No | IAM role ARN for registry mTLS; supply with mtlsSecretArn, or set both to null to clear |
| `mtlsSecretArn` | `string \| null` | No | Secrets Manager ARN for registry mTLS; supply with mtlsRoleArn, or set both to null to clear |
| `name` | `string` | Yes | Registry name |
| `url` | `string` | Yes | Registry URL |
| `username` | `string` | Yes | Registry username |
| `password` | `string` | Yes | Registry password |
| `project` | `string` | No | Registry project |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Registry ID |
| `name` | `string \| null` | No | Registry name |
| `url` | `string \| null` | No | Registry URL |
| `username` | `string \| null` | No | Registry username |
| `mtlsRoleArn` | `string \| null \| null` | No | IAM role ARN for registry mTLS |
| `mtlsSecretArn` | `string \| null \| null` | No | Secrets Manager ARN for registry mTLS |
| `project` | `string \| null` | No | Registry project |
| `registryType` | `string \| null` | No | Registry type |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `updatedAt` | `string \| null` | No | Last update timestamp |

***

### delete

`dockerRegistries.delete`

Delete registry

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.dockerRegistries.delete({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | ID of the docker registry |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### get

`dockerRegistries.get`

Get registry

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.dockerRegistries.get({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | ID of the docker registry |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Registry ID |
| `name` | `string \| null` | No | Registry name |
| `url` | `string \| null` | No | Registry URL |
| `username` | `string \| null` | No | Registry username |
| `mtlsRoleArn` | `string \| null \| null` | No | IAM role ARN for registry mTLS |
| `mtlsSecretArn` | `string \| null \| null` | No | Secrets Manager ARN for registry mTLS |
| `project` | `string \| null` | No | Registry project |
| `registryType` | `string \| null` | No | Registry type |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `updatedAt` | `string \| null` | No | Last update timestamp |

***

### getTransientPushAccess

`dockerRegistries.getTransientPushAccess`

Get temporary registry access for pushing snapshots

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.dockerRegistries.getTransientPushAccess({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `regionId` | `string` | No | ID of the region where the snapshot will be available (defaults to organization default region) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `username` | `string \| null` | No | Temporary username for registry authentication |
| `secret` | `string \| null` | No | Temporary secret for registry authentication |
| `registryUrl` | `string \| null` | No | Registry URL |
| `registryId` | `string \| null` | No | Registry ID |
| `project` | `string \| null` | No | Registry project ID |
| `expiresAt` | `string \| null` | No | Token expiration time in ISO format |

***

### list

`dockerRegistries.list`

List registries

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.dockerRegistries.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   url?: string | null,
>   username?: string | null,
>   mtlsRoleArn?: string | null | null,
>   mtlsSecretArn?: string | null | null,
>   project?: string | null,
>   registryType?: string | null,
>   createdAt?: string | null,
>   updatedAt?: string | null
> }[]
> ```

***

### update

`dockerRegistries.update`

Update registry

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.dockerRegistries.update({
	id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b',
	name: 'my-sandbox',
	url: 'https://github.com/daytonaio/daytona.git',
	username: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | ID of the docker registry |
| `mtlsRoleArn` | `string \| null` | No | IAM role ARN for registry mTLS; supply with mtlsSecretArn, or set both to null to clear |
| `mtlsSecretArn` | `string \| null` | No | Secrets Manager ARN for registry mTLS; supply with mtlsRoleArn, or set both to null to clear |
| `name` | `string` | Yes | Registry name |
| `url` | `string` | Yes | Registry URL |
| `username` | `string` | Yes | Registry username |
| `password` | `string` | No | Registry password |
| `project` | `string` | No | Registry project |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Registry ID |
| `name` | `string \| null` | No | Registry name |
| `url` | `string \| null` | No | Registry URL |
| `username` | `string \| null` | No | Registry username |
| `mtlsRoleArn` | `string \| null \| null` | No | IAM role ARN for registry mTLS |
| `mtlsSecretArn` | `string \| null \| null` | No | Secrets Manager ARN for registry mTLS |
| `project` | `string \| null` | No | Registry project |
| `registryType` | `string \| null` | No | Registry type |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `updatedAt` | `string \| null` | No | Last update timestamp |

***

## Health

### live

`health.live`

health.live

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.health.live({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### ready

`health.ready`

health.ready

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.health.ready({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | — |
| `info` | `object \| null` | No | — |
| `error` | `object \| null` | No | — |
| `details` | `object \| null` | No | — |

> [accordion] info full type
>
> ```ts theme={null}
> Record<string, {
>   status?: string | null
> }> | null | null
> ```

> [accordion] error full type
>
> ```ts theme={null}
> Record<string, {
>   status?: string | null
> }> | null | null
> ```

> [accordion] details full type
>
> ```ts theme={null}
> Record<string, {
>   status?: string | null
> }> | null
> ```

***

## Object Storage

### getPushAccess

`objectStorage.getPushAccess`

Get temporary storage access for pushing objects

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.objectStorage.getPushAccess({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `regionId` | `string` | No | Region the build context will be used in. When that region has its own build-context bucket, the returned credentials target it; otherwise they target the Daytona-hosted bucket. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `accessKey` | `string \| null` | No | Access key for storage authentication |
| `secret` | `string \| null` | No | Secret key for storage authentication |
| `sessionToken` | `string \| null` | No | Session token for storage authentication |
| `storageUrl` | `string \| null` | No | Storage URL |
| `organizationId` | `string \| null` | No | Organization ID |
| `bucket` | `string \| null` | No | S3 bucket name |
| `region` | `string \| null` | No | Region for the storage backend (e.g. "us-east-2") |

***

## Organizations

### createRegion

`organizations.createRegion`

Create a new region

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.organizations.createRegion({ name: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | Yes | Region name |
| `proxyUrl` | `string \| null` | No | Proxy URL for the region |
| `sshGatewayUrl` | `string \| null` | No | SSH Gateway URL for the region |
| `snapshotManagerUrl` | `string \| null` | No | Snapshot Manager URL for the region |
| `otelEndpoint` | `string \| null` | No | OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard. |
| `buildContextBucket` | `string \| null` | No | S3 bucket in your AWS account that declarative-build context is uploaded to for this region. Requires buildContextBucketRegion and buildContextRoleArn. |
| `buildContextBucketRegion` | `string \| null` | No | AWS region of buildContextBucket (standard aws partition only) |
| `buildContextRoleArn` | `string \| null` | No | IAM role Daytona assumes (with your organization ID as ExternalId) to issue upload credentials for buildContextBucket |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | ID of the created region |
| `proxyApiKey` | `string \| null \| null` | No | Proxy API key for the region |
| `sshGatewayApiKey` | `string \| null \| null` | No | SSH Gateway API key for the region |
| `snapshotManagerUsername` | `string \| null \| null` | No | Snapshot Manager username for the region |
| `snapshotManagerPassword` | `string \| null \| null` | No | Snapshot Manager password for the region |

***

### deleteRegion

`organizations.deleteRegion`

Delete a region

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.organizations.deleteRegion({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Region ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### getGpuCapacity

`organizations.getGpuCapacity`

Get shared GPU capacity

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.organizations.getGpuCapacity({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `observedAt` | `string \| null` | No | Time at which this capacity snapshot was calculated. Responses may be cached for up to five seconds. |
| `capacity` | `object[] \| null` | No | — |

> [accordion] capacity full type
>
> ```ts theme={null}
> {
>   gpuType?: string | null,
>   availableOnDemand?: number | null,
>   availableSpot?: number | null,
>   availableSandboxes?: {
>     gpuCount?: number | null,
>     onDemand?: number | null,
>     spot?: number | null
>   }[] | null
> }[] | null
> ```

***

### getOtelConfig

`organizations.getOtelConfig`

Get organization OTEL config by organization ID

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.organizations.getOtelConfig({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `endpoint` | `string \| null` | No | Endpoint |
| `headers` | `Record<string, string> \| null \| null` | No | Headers |
| `organizationId` | `string \| null` | No | Organization ID the config belongs to |

***

### getRegionById

`organizations.getRegionById`

Get region by ID

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.organizations.getRegionById({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Region ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Region ID |
| `name` | `string \| null` | No | Region name |
| `organizationId` | `string \| null \| null` | No | Organization ID |
| `regionType` | `string \| null` | No | The type of the region |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `updatedAt` | `string \| null` | No | Last update timestamp |
| `proxyUrl` | `string \| null \| null` | No | Proxy URL for the region |
| `sshGatewayUrl` | `string \| null \| null` | No | SSH Gateway URL for the region |
| `snapshotManagerUrl` | `string \| null \| null` | No | Snapshot Manager URL for the region |
| `otelEndpoint` | `string \| null \| null` | No | OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard. |
| `buildContextBucket` | `string \| null \| null` | No | S3 bucket in your AWS account that declarative-build context is uploaded to for this region. Requires buildContextBucketRegion and buildContextRoleArn. |
| `buildContextBucketRegion` | `string \| null \| null` | No | AWS region of buildContextBucket (standard aws partition only) |
| `buildContextRoleArn` | `string \| null \| null` | No | IAM role Daytona assumes (with your organization ID as ExternalId) to issue upload credentials for buildContextBucket |

***

### getUsageOverview

`organizations.getUsageOverview`

Get organization current usage overview

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.organizations.getUsageOverview({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `regionUsage` | `object[] \| null` | No | — |
| `totalSnapshotQuota` | `number \| null` | No | — |
| `currentSnapshotUsage` | `number \| null` | No | — |
| `totalVolumeQuota` | `number \| null` | No | — |
| `currentVolumeUsage` | `number \| null` | No | — |

> [accordion] regionUsage full type
>
> ```ts theme={null}
> {
>   regionId?: string | null,
>   sandboxClass?: string | null,
>   totalCpuQuota?: number | null,
>   currentCpuUsage?: number | null,
>   totalMemoryQuota?: number | null,
>   currentMemoryUsage?: number | null,
>   totalDiskQuota?: number | null,
>   currentDiskUsage?: number | null,
>   totalGpuQuota?: number | null,
>   currentGpuUsage?: number | null,
>   allowedGpuTypes?: string[] | null,
>   maxCpuPerSandbox?: number | null | null,
>   maxMemoryPerSandbox?: number | null | null,
>   maxDiskPerSandbox?: number | null | null,
>   maxDiskPerNonEphemeralSandbox?: number | null | null,
>   maxCpuPerGpu?: number | null | null,
>   maxMemoryPerGpu?: number | null | null,
>   maxDiskPerGpu?: number | null | null
> }[] | null
> ```

***

### listAvailableRegions

`organizations.listAvailableRegions`

List all available regions for the organization

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.organizations.listAvailableRegions({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   organizationId?: string | null | null,
>   regionType?: string | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   proxyUrl?: string | null | null,
>   sshGatewayUrl?: string | null | null,
>   snapshotManagerUrl?: string | null | null,
>   otelEndpoint?: string | null | null,
>   buildContextBucket?: string | null | null,
>   buildContextBucketRegion?: string | null | null,
>   buildContextRoleArn?: string | null | null
> }[]
> ```

***

### listAvailableSandboxClasses

`organizations.listAvailableSandboxClasses`

List available sandbox classes for organization

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.organizations.listAvailableSandboxClasses({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   regionId?: string | null,
>   sandboxClass?: string | null,
>   gpuAvailable?: boolean | null,
>   allowedGpuTypes?: string[] | null
> }[]
> ```

***

### listMembers

`organizations.listMembers`

List organization members

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.organizations.listMembers({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string` | Yes | Organization ID |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   userId?: string | null,
>   organizationId?: string | null,
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   assignedRoles?: {
>     id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     permissions?: string[] | null,
>     isGlobal?: boolean | null,
>     createdAt?: string | null,
>     updatedAt?: string | null
>   }[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null
> }[]
> ```

***

### regenerateProxyApiKey

`organizations.regenerateProxyApiKey`

Regenerate proxy API key for a region

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.organizations.regenerateProxyApiKey({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Region ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `apiKey` | `string \| null` | No | The newly generated API key |

***

### regenerateSnapshotManagerCredentials

`organizations.regenerateSnapshotManagerCredentials`

Regenerate snapshot manager credentials for a region

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.organizations.regenerateSnapshotManagerCredentials({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Region ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `username` | `string \| null` | No | Snapshot Manager username for the region |
| `password` | `string \| null` | No | Snapshot Manager password for the region |

***

### regenerateSshGatewayApiKey

`organizations.regenerateSshGatewayApiKey`

Regenerate SSH gateway API key for a region

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.organizations.regenerateSshGatewayApiKey({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Region ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `apiKey` | `string \| null` | No | The newly generated API key |

***

### updateRegion

`organizations.updateRegion`

Update region configuration

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.organizations.updateRegion({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Region ID |
| `proxyUrl` | `string \| null` | No | Proxy URL for the region |
| `sshGatewayUrl` | `string \| null` | No | SSH Gateway URL for the region |
| `snapshotManagerUrl` | `string \| null` | No | Snapshot Manager URL for the region |
| `otelEndpoint` | `string \| null` | No | OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard. |
| `buildContextBucket` | `string \| null` | No | S3 bucket in your AWS account that declarative-build context is uploaded to for this region. Requires buildContextBucketRegion and buildContextRoleArn. |
| `buildContextBucketRegion` | `string \| null` | No | AWS region of buildContextBucket (standard aws partition only) |
| `buildContextRoleArn` | `string \| null` | No | IAM role Daytona assumes (with your organization ID as ExternalId) to issue upload credentials for buildContextBucket |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

## Regions

### listShared

`regions.listShared`

List all shared regions

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.regions.listShared({});
```

**Input:** *empty object*

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   organizationId?: string | null | null,
>   regionType?: string | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   proxyUrl?: string | null | null,
>   sshGatewayUrl?: string | null | null,
>   snapshotManagerUrl?: string | null | null,
>   otelEndpoint?: string | null | null,
>   buildContextBucket?: string | null | null,
>   buildContextBucketRegion?: string | null | null,
>   buildContextRoleArn?: string | null | null
> }[]
> ```

***

## Runners

### create

`runners.create`

Create runner

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.runners.create({ name: 'my-sandbox', regionId: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `regionId` | `string` | Yes | — |
| `name` | `string` | Yes | — |
| `tags` | `string[]` | No | Tags to associate with the runner |
| `sandboxClass` | `container \| linux-vm \| windows \| null` | No | The sandbox class supported by the runner. Defaults to container when omitted or null. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the runner |
| `apiKey` | `string \| null` | No | The API key for the runner |

***

### delete

`runners.delete`

Delete runner

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.runners.delete({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Runner ID |
| `force` | `boolean` | No | Delete the runner without waiting for sandboxes already marked for destruction. Requires the runner to have stopped reporting as ready. |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### getById

`runners.getById`

Get runner by ID

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.runners.getById({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Runner ID |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the runner |
| `domain` | `string \| null` | No | The domain of the runner |
| `apiUrl` | `string \| null` | No | The API URL of the runner |
| `proxyUrl` | `string \| null` | No | The proxy URL of the runner |
| `sshGatewayUrl` | `string \| null` | No | The address of the runner SSH gateway; unset means the runner domain on the default port (2220) |
| `cpu` | `number \| null` | No | The CPU capacity of the runner |
| `memory` | `number \| null` | No | The memory capacity of the runner in GiB |
| `disk` | `number \| null` | No | The disk capacity of the runner in GiB |
| `gpu` | `number \| null` | No | The GPU capacity of the runner |
| `gpuType` | `string \| null` | No | The type of GPU |
| `sandboxClass` | `string \| null` | No | The sandbox class supported by this runner |
| `currentCpuUsagePercentage` | `number \| null` | No | Current CPU usage percentage |
| `currentMemoryUsagePercentage` | `number \| null` | No | Current RAM usage percentage |
| `currentDiskUsagePercentage` | `number \| null` | No | Current disk usage percentage |
| `currentAllocatedCpu` | `number \| null` | No | Current allocated CPU |
| `currentAllocatedMemoryGiB` | `number \| null` | No | Current allocated memory in GiB |
| `currentAllocatedDiskGiB` | `number \| null` | No | Current allocated disk in GiB |
| `currentSnapshotCount` | `number \| null` | No | Current snapshot count |
| `currentStartedSandboxes` | `number \| null` | No | Current number of started sandboxes |
| `availabilityScore` | `number \| null` | No | Runner availability score |
| `region` | `string \| null` | No | The region of the runner |
| `name` | `string \| null` | No | The name of the runner |
| `state` | `string \| null` | No | The state of the runner |
| `lastChecked` | `string \| null` | No | The last time the runner was checked |
| `unschedulable` | `boolean \| null` | No | Whether the runner is unschedulable |
| `tags` | `string[] \| null` | No | Tags associated with the runner |
| `createdAt` | `string \| null` | No | The creation timestamp of the runner |
| `updatedAt` | `string \| null` | No | The last update timestamp of the runner |
| `version` | `string \| null` | No | The version of the runner (deprecated in favor of apiVersion) |
| `apiVersion` | `string \| null` | No | The api version of the runner |
| `runnerClass` | `string \| null` | No | The class of the runner. Deprecated and always returns "container" for backward compatibility - use sandboxClass instead. |
| `appVersion` | `string \| null` | No | The app version of the runner |
| `class` | `string \| null` | No | Deprecated runner class property |

***

### getFullById

`runners.getFullById`

Get runner by ID

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.runners.getFullById({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Runner ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the runner |
| `domain` | `string \| null` | No | The domain of the runner |
| `apiUrl` | `string \| null` | No | The API URL of the runner |
| `proxyUrl` | `string \| null` | No | The proxy URL of the runner |
| `sshGatewayUrl` | `string \| null` | No | The address of the runner SSH gateway; unset means the runner domain on the default port (2220) |
| `cpu` | `number \| null` | No | The CPU capacity of the runner |
| `memory` | `number \| null` | No | The memory capacity of the runner in GiB |
| `disk` | `number \| null` | No | The disk capacity of the runner in GiB |
| `gpu` | `number \| null` | No | The GPU capacity of the runner |
| `gpuType` | `string \| null` | No | The type of GPU |
| `sandboxClass` | `string \| null` | No | The sandbox class supported by this runner |
| `currentCpuUsagePercentage` | `number \| null` | No | Current CPU usage percentage |
| `currentMemoryUsagePercentage` | `number \| null` | No | Current RAM usage percentage |
| `currentDiskUsagePercentage` | `number \| null` | No | Current disk usage percentage |
| `currentAllocatedCpu` | `number \| null` | No | Current allocated CPU |
| `currentAllocatedMemoryGiB` | `number \| null` | No | Current allocated memory in GiB |
| `currentAllocatedDiskGiB` | `number \| null` | No | Current allocated disk in GiB |
| `currentSnapshotCount` | `number \| null` | No | Current snapshot count |
| `currentStartedSandboxes` | `number \| null` | No | Current number of started sandboxes |
| `availabilityScore` | `number \| null` | No | Runner availability score |
| `region` | `string \| null` | No | The region of the runner |
| `name` | `string \| null` | No | The name of the runner |
| `state` | `string \| null` | No | The state of the runner |
| `lastChecked` | `string \| null` | No | The last time the runner was checked |
| `unschedulable` | `boolean \| null` | No | Whether the runner is unschedulable |
| `tags` | `string[] \| null` | No | Tags associated with the runner |
| `createdAt` | `string \| null` | No | The creation timestamp of the runner |
| `updatedAt` | `string \| null` | No | The last update timestamp of the runner |
| `version` | `string \| null` | No | The version of the runner (deprecated in favor of apiVersion) |
| `apiVersion` | `string \| null` | No | The api version of the runner |
| `runnerClass` | `string \| null` | No | The class of the runner. Deprecated and always returns "container" for backward compatibility - use sandboxClass instead. |
| `appVersion` | `string \| null` | No | The app version of the runner |
| `class` | `string \| null` | No | Deprecated runner class property |
| `apiKey` | `string \| null` | No | The API key for the runner |
| `regionType` | `string \| null` | No | The region type of the runner |

***

### list

`runners.list`

List all runners

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.runners.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `regionId` | `string` | No | Filter runners by region ID |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   domain?: string | null,
>   apiUrl?: string | null,
>   proxyUrl?: string | null,
>   sshGatewayUrl?: string | null,
>   cpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   gpu?: number | null,
>   gpuType?: string | null,
>   sandboxClass?: string | null,
>   currentCpuUsagePercentage?: number | null,
>   currentMemoryUsagePercentage?: number | null,
>   currentDiskUsagePercentage?: number | null,
>   currentAllocatedCpu?: number | null,
>   currentAllocatedMemoryGiB?: number | null,
>   currentAllocatedDiskGiB?: number | null,
>   currentSnapshotCount?: number | null,
>   currentStartedSandboxes?: number | null,
>   availabilityScore?: number | null,
>   region?: string | null,
>   name?: string | null,
>   state?: string | null,
>   lastChecked?: string | null,
>   unschedulable?: boolean | null,
>   tags?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   version?: string | null,
>   apiVersion?: string | null,
>   runnerClass?: string | null,
>   appVersion?: string | null,
>   class?: string | null
> }[]
> ```

***

### updateDraining

`runners.updateDraining`

Update runner draining status

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.runners.updateDraining({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Runner ID |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the runner |
| `domain` | `string \| null` | No | The domain of the runner |
| `apiUrl` | `string \| null` | No | The API URL of the runner |
| `proxyUrl` | `string \| null` | No | The proxy URL of the runner |
| `sshGatewayUrl` | `string \| null` | No | The address of the runner SSH gateway; unset means the runner domain on the default port (2220) |
| `cpu` | `number \| null` | No | The CPU capacity of the runner |
| `memory` | `number \| null` | No | The memory capacity of the runner in GiB |
| `disk` | `number \| null` | No | The disk capacity of the runner in GiB |
| `gpu` | `number \| null` | No | The GPU capacity of the runner |
| `gpuType` | `string \| null` | No | The type of GPU |
| `sandboxClass` | `string \| null` | No | The sandbox class supported by this runner |
| `currentCpuUsagePercentage` | `number \| null` | No | Current CPU usage percentage |
| `currentMemoryUsagePercentage` | `number \| null` | No | Current RAM usage percentage |
| `currentDiskUsagePercentage` | `number \| null` | No | Current disk usage percentage |
| `currentAllocatedCpu` | `number \| null` | No | Current allocated CPU |
| `currentAllocatedMemoryGiB` | `number \| null` | No | Current allocated memory in GiB |
| `currentAllocatedDiskGiB` | `number \| null` | No | Current allocated disk in GiB |
| `currentSnapshotCount` | `number \| null` | No | Current snapshot count |
| `currentStartedSandboxes` | `number \| null` | No | Current number of started sandboxes |
| `availabilityScore` | `number \| null` | No | Runner availability score |
| `region` | `string \| null` | No | The region of the runner |
| `name` | `string \| null` | No | The name of the runner |
| `state` | `string \| null` | No | The state of the runner |
| `lastChecked` | `string \| null` | No | The last time the runner was checked |
| `unschedulable` | `boolean \| null` | No | Whether the runner is unschedulable |
| `tags` | `string[] \| null` | No | Tags associated with the runner |
| `createdAt` | `string \| null` | No | The creation timestamp of the runner |
| `updatedAt` | `string \| null` | No | The last update timestamp of the runner |
| `version` | `string \| null` | No | The version of the runner (deprecated in favor of apiVersion) |
| `apiVersion` | `string \| null` | No | The api version of the runner |
| `runnerClass` | `string \| null` | No | The class of the runner. Deprecated and always returns "container" for backward compatibility - use sandboxClass instead. |
| `appVersion` | `string \| null` | No | The app version of the runner |
| `class` | `string \| null` | No | Deprecated runner class property |

***

### updateScheduling

`runners.updateScheduling`

Update runner scheduling status

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.runners.updateScheduling({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Runner ID |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the runner |
| `domain` | `string \| null` | No | The domain of the runner |
| `apiUrl` | `string \| null` | No | The API URL of the runner |
| `proxyUrl` | `string \| null` | No | The proxy URL of the runner |
| `sshGatewayUrl` | `string \| null` | No | The address of the runner SSH gateway; unset means the runner domain on the default port (2220) |
| `cpu` | `number \| null` | No | The CPU capacity of the runner |
| `memory` | `number \| null` | No | The memory capacity of the runner in GiB |
| `disk` | `number \| null` | No | The disk capacity of the runner in GiB |
| `gpu` | `number \| null` | No | The GPU capacity of the runner |
| `gpuType` | `string \| null` | No | The type of GPU |
| `sandboxClass` | `string \| null` | No | The sandbox class supported by this runner |
| `currentCpuUsagePercentage` | `number \| null` | No | Current CPU usage percentage |
| `currentMemoryUsagePercentage` | `number \| null` | No | Current RAM usage percentage |
| `currentDiskUsagePercentage` | `number \| null` | No | Current disk usage percentage |
| `currentAllocatedCpu` | `number \| null` | No | Current allocated CPU |
| `currentAllocatedMemoryGiB` | `number \| null` | No | Current allocated memory in GiB |
| `currentAllocatedDiskGiB` | `number \| null` | No | Current allocated disk in GiB |
| `currentSnapshotCount` | `number \| null` | No | Current snapshot count |
| `currentStartedSandboxes` | `number \| null` | No | Current number of started sandboxes |
| `availabilityScore` | `number \| null` | No | Runner availability score |
| `region` | `string \| null` | No | The region of the runner |
| `name` | `string \| null` | No | The name of the runner |
| `state` | `string \| null` | No | The state of the runner |
| `lastChecked` | `string \| null` | No | The last time the runner was checked |
| `unschedulable` | `boolean \| null` | No | Whether the runner is unschedulable |
| `tags` | `string[] \| null` | No | Tags associated with the runner |
| `createdAt` | `string \| null` | No | The creation timestamp of the runner |
| `updatedAt` | `string \| null` | No | The last update timestamp of the runner |
| `version` | `string \| null` | No | The version of the runner (deprecated in favor of apiVersion) |
| `apiVersion` | `string \| null` | No | The api version of the runner |
| `runnerClass` | `string \| null` | No | The class of the runner. Deprecated and always returns "container" for backward compatibility - use sandboxClass instead. |
| `appVersion` | `string \| null` | No | The app version of the runner |
| `class` | `string \| null` | No | Deprecated runner class property |

***

## Sandboxes

### addNodes

`sandboxes.addNodes`

Append nodes to a multi-node sandbox

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.addNodes({
	sandboxIdOrName: 'my-sandbox',
	expectedGeneration: 1,
	nodes: [{ cpu: 1, disk: 1, memory: 1 }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |
| `expectedGeneration` | `number` | Yes | Current sandbox topology generation. |
| `nodes` | `object[]` | Yes | One resource specification per appended rank. |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   cpu: number,
>   memory: number,
>   disk: number
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `sandboxId` | `string \| null` | No | — |
| `type` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `phase` | `string \| null` | No | — |
| `expectedGeneration` | `number \| null` | No | — |
| `targetGeneration` | `number \| null` | No | — |
| `policyRevision` | `number \| null` | No | — |
| `errorReason` | `string \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |
| `completedAt` | `string \| null` | No | — |

***

### archive

`sandboxes.archive`

Archive sandbox

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.archive({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### create

`sandboxes.create`

Create a sandbox from a snapshot or image; billed per second for its vCPU, memory and disk while it runs

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.create({
	snapshot: 'daytona-small',
	autoStopInterval: 15,
	labels: { team: 'ml' },
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | No | The name of the sandbox. If not provided, the sandbox ID will be used as the name |
| `snapshot` | `string` | No | The ID or name of the snapshot used for the sandbox |
| `user` | `string` | No | The user associated with the project |
| `env` | `Record<string, string>` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string>` | No | Labels for the sandbox |
| `public` | `boolean` | No | Whether the sandbox http preview is publicly accessible |
| `networkBlockAll` | `boolean` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean` | No | Expose KVM (/dev/kvm) inside the sandbox via nested virtualization. linux-vm snapshots only. Requires the sandbox\_kvm feature for the organization. |
| `networkAllowList` | `string` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string` | No | Outbound proxy URL to route the sandbox HTTP(S) traffic through (http or https; credentials may be included in the URL). On its own this is convenience routing, not a security boundary: it is applied by injecting the standard HTTP(S)\_PROXY environment variables at creation, so a process that clears those variables egresses directly. Combine with domainAllowList to have web-port (80/443) egress transparently redirected through the proxy chain at the network layer, which cannot be bypassed from inside the sandbox. |
| `otelEndpointOverride` | `string` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector (the Daytona-hosted collector or the region-configured endpoint) and will not be available in the Daytona analytics API or dashboard. |
| `target` | `string` | No | The target (region) where the sandbox will be created |
| `cpu` | `number` | No | CPU cores allocated to the sandbox. On a multi-node sandbox this scalar applies to every node. |
| `cpuPerNode` | `number[] \| null` | No | CPU cores for each node in rank order. Specify either cpu or cpuPerNode. |
| `gpu` | `number` | No | GPU units allocated to the sandbox |
| `gpuType` | `(H100 \| H200 \| B200 \| B300 \| L40S \| RTX-PRO-6000 \| RTX-4090 \| RTX-5090 \| MI355X)[]` | No | Preferred GPU type for the sandbox. Accepts a single value or an ordered preference list — the scheduler tries each in order and pins the sandbox to the first that has capacity. |
| `spot` | `boolean` | No | GPU-only. When true, the sandbox may be instantly terminated without notice to free GPU capacity for an on-demand (non-spot) GPU sandbox. Ignored / rejected when the sandbox requests no GPUs. |
| `memory` | `number` | No | Memory in GB allocated to the sandbox. On a multi-node sandbox this scalar applies to every node. |
| `memoryPerNode` | `number[] \| null` | No | Memory in GB for each node in rank order. Specify either memory or memoryPerNode. |
| `disk` | `number` | No | Disk space in GB allocated to the sandbox. On a multi-node sandbox this scalar applies to every node. |
| `diskPerNode` | `number[] \| null` | No | Disk space in GB for each node in rank order. Specify either disk or diskPerNode. |
| `autoStopInterval` | `number` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number` | No | Auto-pause interval in minutes (0 means disabled). Only supported for sandbox classes that support pausing. Not allowed for ephemeral sandboxes. At most one of autoStopInterval and autoPauseInterval may be non-zero. For non-ephemeral sandbox classes that support pausing, defaults to 60 minutes (with auto-stop disabled) when neither interval is provided. |
| `autoArchiveInterval` | `number` | No | Auto-archive interval in minutes (0 means the maximum interval will be used) |
| `autoDeleteInterval` | `number` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `ttlMinutes` | `number` | No | Maximum time to live in minutes, counted as wall-clock time since creation regardless of sandbox state (0 means disabled). When it elapses the sandbox is destroyed, even if it is stopped, paused, or archived. Subject to the maximum sandbox lifespan configured for the organization region and sandbox class, in which case it also defaults to that maximum and cannot be disabled. |
| `queueTimeout` | `number` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Applies only while the sandbox is unassigned in pending\_build or pulling\_snapshot. Only honored when default queue timeout is enabled for the organization. Omit to use the organization default; null/omit with no organization default leaves the wait unlimited. Must be a positive integer. |
| `volumes` | `object[]` | No | Array of volumes to attach to the sandbox |
| `buildInfo` | `object` | No | Build information for the sandbox |
| `linkedSandbox` | `string` | No | ID or name of an existing sandbox to link the new sandbox to. The new sandbox will be scheduled on the same runner as the linked sandbox so a local network can be established between them. Linked sandboxes must be ephemeral (autoDeleteInterval=0) and cannot themselves be linked to another sandbox. GPU sandboxes cannot participate in links in either direction: a GPU sandbox cannot specify linkedSandbox, and cannot be the link target of another sandbox. |
| `secrets` | `Record<string, string>[]` | No | Secrets to mount in this sandbox. Each entry maps an env var name to a vault secret name. |

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId: string,
>   mountPath: string,
>   subpath?: string
> }[]
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent: string,
>   contextHashes?: string[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### createSnapshot

`sandboxes.createSnapshot`

Create a snapshot from a sandbox

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.createSnapshot({ sandboxIdOrName: 'my-sandbox', name: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |
| `name` | `string` | Yes | Name for the new snapshot |
| `includeMemory` | `boolean` | No | Include the VM's memory in the snapshot. VM sandboxes only. When true the sandbox must be STARTED; when false (default) VM sandboxes must be STOPPED. Container sandboxes do not support memory snapshots. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### createSshAccess

`sandboxes.createSshAccess`

Create SSH access for sandbox

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.createSshAccess({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `expiresInMinutes` | `number` | No | Expiration time in minutes (default: 60, maximum: 1440) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Unique identifier for the SSH access |
| `sandboxId` | `string \| null` | No | ID of the sandbox this SSH access is for |
| `token` | `string \| null` | No | SSH access token |
| `expiresAt` | `string \| null` | No | When the SSH access expires |
| `createdAt` | `string \| null` | No | When the SSH access was created |
| `updatedAt` | `string \| null` | No | When the SSH access was last updated |
| `sshCommand` | `string \| null` | No | SSH command to connect to the sandbox |

***

### delete

`sandboxes.delete`

Delete a sandbox and its disk

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.delete({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### expireSignedPortPreviewUrl

`sandboxes.expireSignedPortPreviewUrl`

Expire signed preview URL for a sandbox port

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.expireSignedPortPreviewUrl({ sandboxIdOrName: 'my-sandbox', port: 3000, token: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `port` | `number` | Yes | Port number to expire signed preview URL for |
| `token` | `string` | Yes | Token to expire signed preview URL for |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### fork

`sandboxes.fork`

Fork a sandbox

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.fork({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |
| `name` | `string` | No | The name for the forked sandbox. If not provided, a unique name will be generated. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### get

`sandboxes.get`

Get sandbox details

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.get({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `verbose` | `boolean` | No | Include verbose output |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### getAncestors

`sandboxes.getAncestors`

Get sandbox fork ancestor chain

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getAncestors({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   nodes?: {
>     rank?: number | null,
>     id?: string | null,
>     state?: string | null,
>     incarnation?: number | null,
>     failure?: {
>       rank?: number | null,
>       memberId?: string | null,
>       incarnation?: number | null,
>       reason?: string | null,
>       reportedState?: string | null,
>       failedAt?: string | null,
>       fencingStatus?: string | null,
>       fencingError?: string | null
>     } | null,
>     cpu?: number | null,
>     gpu?: number | null,
>     memory?: number | null,
>     disk?: number | null,
>     fabricAddress?: string | null,
>     fabricPrefixLength?: number | null,
>     fabricHealthy?: boolean | null,
>     fabricUnhealthySince?: string | null
>   }[] | null,
>   topologyGeneration?: number | null,
>   incarnation?: number | null,
>   nodeCount?: number | null,
>   nodeRank?: number | null,
>   headSandboxId?: string | null,
>   degraded?: boolean | null,
>   id?: string | null,
>   organizationId?: string | null,
>   name?: string | null,
>   snapshot?: string | null,
>   user?: string | null,
>   env?: Record<string, string> | null,
>   labels?: Record<string, string> | null,
>   public?: boolean | null,
>   networkBlockAll?: boolean | null,
>   kvm?: boolean | null,
>   networkAllowList?: string | null,
>   domainAllowList?: string | null,
>   outboundProxyUrl?: string | null,
>   otelEndpointOverride?: string | null,
>   target?: string | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   spot?: boolean | null,
>   spotEvictedAt?: string | null,
>   queueTimedOutAt?: string | null,
>   gpuType?: string | null,
>   memory?: number | null,
>   disk?: number | null,
>   state?: string | null,
>   desiredState?: string | null,
>   errorReason?: string | null,
>   networkPolicyError?: string | null,
>   recoverable?: boolean | null,
>   warmPoolId?: string | null,
>   backupState?: string | null,
>   backupCreatedAt?: string | null,
>   autoStopInterval?: number | null,
>   autoPauseInterval?: number | null,
>   autoArchiveInterval?: number | null,
>   autoDeleteInterval?: number | null,
>   autoDestroyAt?: string | null,
>   queueTimeout?: number | null | null,
>   volumes?: {
>     volumeId?: string | null,
>     mountPath?: string | null,
>     subpath?: string | null
>   }[] | null,
>   buildInfo?: {
>     dockerfileContent?: string | null,
>     contextHashes?: string[] | null,
>     createdAt?: string | null,
>     updatedAt?: string | null,
>     snapshotRef?: string | null
>   } | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   lastActivityAt?: string | null,
>   sandboxClass?: string | null,
>   daemonVersion?: string | null,
>   runnerId?: string | null,
>   linkedSandboxId?: string | null,
>   toolboxProxyUrl?: string | null
> }[]
> ```

***

### getBuildLogsUrl

`sandboxes.getBuildLogsUrl`

Get build logs URL

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getBuildLogsUrl({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string \| null` | No | URL response |

***

### getForks

`sandboxes.getForks`

Get sandbox fork children

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getForks({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |
| `includeDestroyed` | `boolean` | No | — |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   nodes?: {
>     rank?: number | null,
>     id?: string | null,
>     state?: string | null,
>     incarnation?: number | null,
>     failure?: {
>       rank?: number | null,
>       memberId?: string | null,
>       incarnation?: number | null,
>       reason?: string | null,
>       reportedState?: string | null,
>       failedAt?: string | null,
>       fencingStatus?: string | null,
>       fencingError?: string | null
>     } | null,
>     cpu?: number | null,
>     gpu?: number | null,
>     memory?: number | null,
>     disk?: number | null,
>     fabricAddress?: string | null,
>     fabricPrefixLength?: number | null,
>     fabricHealthy?: boolean | null,
>     fabricUnhealthySince?: string | null
>   }[] | null,
>   topologyGeneration?: number | null,
>   incarnation?: number | null,
>   nodeCount?: number | null,
>   nodeRank?: number | null,
>   headSandboxId?: string | null,
>   degraded?: boolean | null,
>   id?: string | null,
>   organizationId?: string | null,
>   name?: string | null,
>   snapshot?: string | null,
>   user?: string | null,
>   env?: Record<string, string> | null,
>   labels?: Record<string, string> | null,
>   public?: boolean | null,
>   networkBlockAll?: boolean | null,
>   kvm?: boolean | null,
>   networkAllowList?: string | null,
>   domainAllowList?: string | null,
>   outboundProxyUrl?: string | null,
>   otelEndpointOverride?: string | null,
>   target?: string | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   spot?: boolean | null,
>   spotEvictedAt?: string | null,
>   queueTimedOutAt?: string | null,
>   gpuType?: string | null,
>   memory?: number | null,
>   disk?: number | null,
>   state?: string | null,
>   desiredState?: string | null,
>   errorReason?: string | null,
>   networkPolicyError?: string | null,
>   recoverable?: boolean | null,
>   warmPoolId?: string | null,
>   backupState?: string | null,
>   backupCreatedAt?: string | null,
>   autoStopInterval?: number | null,
>   autoPauseInterval?: number | null,
>   autoArchiveInterval?: number | null,
>   autoDeleteInterval?: number | null,
>   autoDestroyAt?: string | null,
>   queueTimeout?: number | null | null,
>   volumes?: {
>     volumeId?: string | null,
>     mountPath?: string | null,
>     subpath?: string | null
>   }[] | null,
>   buildInfo?: {
>     dockerfileContent?: string | null,
>     contextHashes?: string[] | null,
>     createdAt?: string | null,
>     updatedAt?: string | null,
>     snapshotRef?: string | null
>   } | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   lastActivityAt?: string | null,
>   sandboxClass?: string | null,
>   daemonVersion?: string | null,
>   runnerId?: string | null,
>   linkedSandboxId?: string | null,
>   toolboxProxyUrl?: string | null
> }[]
> ```

***

### getGangMembershipOperation

`sandboxes.getGangMembershipOperation`

Get a membership operation of a multi-node GPU sandbox

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getGangMembershipOperation({ sandboxIdOrName: 'my-sandbox', operationId: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |
| `operationId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `sandboxId` | `string \| null` | No | — |
| `type` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `phase` | `string \| null` | No | — |
| `expectedGeneration` | `number \| null` | No | — |
| `targetGeneration` | `number \| null` | No | — |
| `policyRevision` | `number \| null` | No | — |
| `errorReason` | `string \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |
| `completedAt` | `string \| null` | No | — |

***

### getLogs

`sandboxes.getLogs`

Get sandbox logs

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getLogs({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f', from: '2026-11-01T00:00:00Z', to: '2026-11-27T00:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |
| `from` | `string` | Yes | Start of time range (ISO 8601) |
| `to` | `string` | Yes | End of time range (ISO 8601) |
| `page` | `number` | No | Page number (1-indexed) |
| `limit` | `number` | No | Number of items per page |
| `severities` | `string[]` | No | Filter by severity levels (DEBUG, INFO, WARN, ERROR) |
| `search` | `string` | No | Search in log body |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[] \| null` | No | List of log entries |
| `total` | `number \| null` | No | Total number of log entries matching the query |
| `page` | `number \| null` | No | Current page number |
| `totalPages` | `number \| null` | No | Total number of pages |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   timestamp?: string | null,
>   body?: string | null,
>   severityText?: string | null,
>   severityNumber?: number | null,
>   serviceName?: string | null,
>   resourceAttributes?: Record<string, string> | null,
>   logAttributes?: Record<string, string> | null,
>   traceId?: string | null,
>   spanId?: string | null
> }[] | null
> ```

***

### getMetrics

`sandboxes.getMetrics`

Get sandbox metrics

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getMetrics({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f', from: '2026-11-01T00:00:00Z', to: '2026-11-27T00:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |
| `from` | `string` | Yes | Start of time range (ISO 8601) |
| `to` | `string` | Yes | End of time range (ISO 8601) |
| `metricNames` | `string[]` | No | Filter by metric names |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `series` | `object[] \| null` | No | List of metric series |

> [accordion] series full type
>
> ```ts theme={null}
> {
>   metricName?: string | null,
>   dataPoints?: {
>     timestamp?: string | null,
>     value?: number | null
>   }[] | null
> }[] | null
> ```

***

### getParent

`sandboxes.getParent`

Get sandbox fork parent

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getParent({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### getPortPreviewUrl

`sandboxes.getPortPreviewUrl`

Get preview URL for a sandbox port

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getPortPreviewUrl({ sandboxIdOrName: 'my-sandbox', port: 3000 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `port` | `number` | Yes | Port number to get preview URL for |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandboxId` | `string \| null` | No | ID of the sandbox |
| `url` | `string \| null` | No | Preview url |
| `token` | `string \| null` | No | Access token |

***

### getSignedPortPreviewUrl

`sandboxes.getSignedPortPreviewUrl`

Get signed preview URL for a sandbox port

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getSignedPortPreviewUrl({ sandboxIdOrName: 'my-sandbox', port: 3000 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `port` | `number` | Yes | Port number to get signed preview URL for |
| `expiresInSeconds` | `number` | No | Expiration time in seconds (default: 60 seconds) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandboxId` | `string \| null` | No | ID of the sandbox |
| `port` | `number \| null` | No | Port number of the signed preview URL |
| `token` | `string \| null` | No | Token of the signed preview URL |
| `url` | `string \| null` | No | Signed preview url |

***

### getSigningKey

`sandboxes.getSigningKey`

Get the signing key for a sandbox

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getSigningKey({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |

**Output:** `string`

***

### getToolboxProxyUrl

`sandboxes.getToolboxProxyUrl`

Get toolbox proxy URL for a sandbox

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getToolboxProxyUrl({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string \| null` | No | The toolbox proxy URL for the sandbox |

***

### getTraces

`sandboxes.getTraces`

Get sandbox traces

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getTraces({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f', from: '2026-11-01T00:00:00Z', to: '2026-11-27T00:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |
| `from` | `string` | Yes | Start of time range (ISO 8601) |
| `to` | `string` | Yes | End of time range (ISO 8601) |
| `page` | `number` | No | Page number (1-indexed) |
| `limit` | `number` | No | Number of items per page |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[] \| null` | No | List of trace summaries |
| `total` | `number \| null` | No | Total number of traces matching the query |
| `page` | `number \| null` | No | Current page number |
| `totalPages` | `number \| null` | No | Total number of pages |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   traceId?: string | null,
>   rootSpanName?: string | null,
>   startTime?: string | null,
>   endTime?: string | null,
>   durationMs?: number | null,
>   spanCount?: number | null,
>   statusCode?: string | null
> }[] | null
> ```

***

### getTraceSpans

`sandboxes.getTraceSpans`

Get trace spans

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.getTraceSpans({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f', traceId: '4bf92f3577b34da6a3ce929d0e0e4736' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |
| `traceId` | `string` | Yes | ID of the trace |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   traceId?: string | null,
>   spanId?: string | null,
>   parentSpanId?: string | null,
>   spanName?: string | null,
>   timestamp?: string | null,
>   durationNs?: number | null,
>   spanAttributes?: Record<string, string> | null,
>   statusCode?: string | null,
>   statusMessage?: string | null
> }[]
> ```

***

### list

`sandboxes.list`

List sandboxes

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.sandboxes.list({ labels: '{"team":"ml"}' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `cursor` | `string` | No | Pagination cursor from a previous response |
| `limit` | `number` | No | Number of results per page |
| `id` | `string` | No | Filter by ID prefix (case-insensitive) |
| `name` | `string` | No | Filter by name prefix (case-insensitive) |
| `labels` | `string` | No | JSON encoded labels to filter by |
| `includeErroredDeleted` | `boolean` | No | Include results with errored state and deleted desired state |
| `includeWarm` | `boolean` | No | Include unclaimed warm pool sandboxes (excluded by default) |
| `states` | `(creating \| restoring \| destroyed \| destroying \| started \| stopped \| starting \| stopping \| error \| build_failed \| pending_build \| building_snapshot \| unknown \| pulling_snapshot \| archived \| archiving \| resizing \| snapshotting \| forking \| pausing \| paused \| resuming)[]` | No | List of states to filter by. |
| `snapshots` | `string[]` | No | List of snapshot names to filter by |
| `regionIds` | `string[]` | No | List of regions IDs to filter by |
| `sandboxClasses` | `(linux-vm \| container \| windows)[]` | No | List of sandbox classes to filter by |
| `minCpu` | `number` | No | Minimum CPU |
| `maxCpu` | `number` | No | Maximum CPU |
| `minMemoryGiB` | `number` | No | Minimum memory in GiB |
| `maxMemoryGiB` | `number` | No | Maximum memory in GiB |
| `minDiskGiB` | `number` | No | Minimum disk space in GiB |
| `maxDiskGiB` | `number` | No | Maximum disk space in GiB |
| `minGpu` | `number` | No | Minimum GPU |
| `maxGpu` | `number` | No | Maximum GPU |
| `isPublic` | `boolean` | No | Filter by public status |
| `isRecoverable` | `boolean` | No | Filter by recoverable status |
| `createdAtAfter` | `string` | No | Include items created after this timestamp |
| `createdAtBefore` | `string` | No | Include items created before this timestamp |
| `lastEventAfter` | `string` | No | Include items with last event after this timestamp |
| `lastEventBefore` | `string` | No | Include items with last event before this timestamp |
| `autoDestroyAtAfter` | `string` | No | Include items scheduled for auto destroy after this timestamp |
| `autoDestroyAtBefore` | `string` | No | Include items scheduled for auto destroy before this timestamp |
| `sort` | `name \| cpu \| memoryGib \| diskGib \| lastActivityAt \| createdAt` | No | — |
| `order` | `asc \| desc` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[] \| null` | No | List of results for the current page |
| `nextCursor` | `string \| null \| null` | No | Cursor for the next page of results |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   organizationId?: string | null,
>   name?: string | null,
>   target?: string | null,
>   runnerId?: string | null,
>   sandboxClass?: string | null,
>   state?: string | null,
>   desiredState?: string | null,
>   snapshot?: string | null,
>   user?: string | null,
>   errorReason?: string | null,
>   recoverable?: boolean | null,
>   public?: boolean | null,
>   networkBlockAll?: boolean | null,
>   networkAllowList?: string | null,
>   domainAllowList?: string | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   spot?: boolean | null,
>   spotEvictedAt?: string | null,
>   queueTimedOutAt?: string | null,
>   gpuType?: string | null,
>   memory?: number | null,
>   disk?: number | null,
>   labels?: Record<string, string> | null,
>   backupState?: string | null,
>   autoStopInterval?: number | null,
>   autoPauseInterval?: number | null,
>   autoArchiveInterval?: number | null,
>   autoDeleteInterval?: number | null,
>   autoDestroyAt?: string | null,
>   queueTimeout?: number | null | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   lastActivityAt?: string | null,
>   daemonVersion?: string | null,
>   warmPoolId?: string | null,
>   toolboxProxyUrl?: string | null
> }[] | null
> ```

***

### pause

`sandboxes.pause`

Pause sandbox

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.pause({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### recover

`sandboxes.recover`

Recover sandbox from error state

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.recover({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `skipStart` | `boolean` | No | If true, the sandbox is left in STOPPED after recovery instead of being started. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### removeNodes

`sandboxes.removeNodes`

Remove the highest ranks from a multi-node sandbox

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.removeNodes({ sandboxIdOrName: 'my-sandbox', count: 1, expectedGeneration: 1 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |
| `expectedGeneration` | `number` | Yes | Current sandbox topology generation. |
| `count` | `number` | Yes | Number of highest ranks to remove. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `sandboxId` | `string \| null` | No | — |
| `type` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `phase` | `string \| null` | No | — |
| `expectedGeneration` | `number \| null` | No | — |
| `targetGeneration` | `number \| null` | No | — |
| `policyRevision` | `number \| null` | No | — |
| `errorReason` | `string \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |
| `completedAt` | `string \| null` | No | — |

***

### replaceLabels

`sandboxes.replaceLabels`

Replace sandbox labels

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.replaceLabels({
	sandboxIdOrName: 'my-sandbox',
	labels: {},
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `labels` | `Record<string, string>` | Yes | Key-value pairs of labels |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `labels` | `Record<string, string> \| null` | No | Key-value pairs of labels |

***

### replaceNode

`sandboxes.replaceNode`

Replace a failed multi-node sandbox rank

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.replaceNode({ sandboxIdOrName: 'my-sandbox', rank: 'example', expectedGeneration: 1 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | — |
| `rank` | `string` | Yes | — |
| `expectedGeneration` | `number` | Yes | Current sandbox topology generation. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `sandboxId` | `string \| null` | No | — |
| `type` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `phase` | `string \| null` | No | — |
| `expectedGeneration` | `number \| null` | No | — |
| `targetGeneration` | `number \| null` | No | — |
| `policyRevision` | `number \| null` | No | — |
| `errorReason` | `string \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |
| `completedAt` | `string \| null` | No | — |

***

### resize

`sandboxes.resize`

Resize sandbox resources

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.resize({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `cpu` | `number` | No | CPU cores to allocate to the sandbox (minimum: 1) |
| `memory` | `number` | No | Memory in GB to allocate to the sandbox (minimum: 1) |
| `disk` | `number` | No | Disk space in GB to allocate to the sandbox (can only be increased) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### revokeSshAccess

`sandboxes.revokeSshAccess`

Revoke SSH access for sandbox

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.revokeSshAccess({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `token` | `string` | No | SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### rotateSigningKey

`sandboxes.rotateSigningKey`

Rotate the signing key, invalidating all previously signed URLs

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.rotateSigningKey({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |

**Output:** `string`

***

### setAutoArchiveInterval

`sandboxes.setAutoArchiveInterval`

Set sandbox auto-archive interval

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.setAutoArchiveInterval({ sandboxIdOrName: 'my-sandbox', interval: 1 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `interval` | `number` | Yes | Auto-archive interval in minutes (0 means the maximum interval will be used) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### setAutoDeleteInterval

`sandboxes.setAutoDeleteInterval`

Set sandbox auto-delete interval

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.setAutoDeleteInterval({ sandboxIdOrName: 'my-sandbox', interval: 1 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `interval` | `number` | Yes | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### setAutoPauseInterval

`sandboxes.setAutoPauseInterval`

Set sandbox auto-pause interval

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.setAutoPauseInterval({ sandboxIdOrName: 'my-sandbox', interval: 1 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `interval` | `number` | Yes | Auto-pause interval in minutes (0 to disable) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### setAutostopInterval

`sandboxes.setAutostopInterval`

Set sandbox auto-stop interval

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.setAutostopInterval({ sandboxIdOrName: 'my-sandbox', interval: 1 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `interval` | `number` | Yes | Auto-stop interval in minutes (0 to disable) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### setTtl

`sandboxes.setTtl`

Set sandbox TTL

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.setTtl({ sandboxIdOrName: 'my-sandbox', ttlMinutes: 1440 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `ttlMinutes` | `number` | Yes | Maximum time to live in minutes, re-anchored from the current time (0 to disable). When it elapses the sandbox is destroyed, even if it is stopped, paused, or archived. On a multi-node head, expiry destroys every member and all ephemeral local data |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### start

`sandboxes.start`

Start or resume sandbox

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.sandboxes.start({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### stop

`sandboxes.stop`

Stop sandbox

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.sandboxes.stop({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `force` | `boolean` | No | Force stop the sandbox using SIGKILL instead of SIGTERM |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### updateLastActivity

`sandboxes.updateLastActivity`

Update sandbox last activity

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.updateLastActivity({ sandboxId: '0f9a3c2e-5d6b-4a1f-9c8e-2b7d4e6a1c3f' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxId` | `string` | Yes | ID of the sandbox |
| `activityType` | `string` | No | Optional type of interaction that reset the activity timer. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### updateNetworkSettings

`sandboxes.updateNetworkSettings`

Update sandbox network settings

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.updateNetworkSettings({ sandboxIdOrName: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `networkBlockAll` | `boolean` | No | Whether to block all network access for the sandbox |
| `networkAllowList` | `string` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string` | No | Comma-separated list of allowed domains for the sandbox |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### updatePublicStatus

`sandboxes.updatePublicStatus`

Update public status

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.updatePublicStatus({ sandboxIdOrName: 'my-sandbox', isPublic: true });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `isPublic` | `boolean` | Yes | Public status to set |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### updateSecrets

`sandboxes.updateSecrets`

Update sandbox secrets

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.sandboxes.updateSecrets({
	sandboxIdOrName: 'my-sandbox',
	secrets: [{}],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `sandboxIdOrName` | `string` | Yes | ID or name of the sandbox |
| `secrets` | `Record<string, string>[]` | Yes | Secrets to mount in this sandbox, replacing the previously mounted set. Each entry maps an env var name to a vault secret name. Pass an empty array to detach all secrets. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `nodes` | `object[] \| null` | No | Nodes of the multi-node GPU sandbox in rank order. Rank 0 is this sandbox. Absent for single-node sandboxes. |
| `topologyGeneration` | `number \| null` | No | Committed logical topology generation. |
| `incarnation` | `number \| null` | No | Physical incarnation for an internal node row. |
| `nodeCount` | `number \| null` | No | Derived number of physical nodes in this sandbox. |
| `nodeRank` | `number \| null` | No | Rank within the multi-node GPU sandbox; present only on internal node rows. |
| `headSandboxId` | `string \| null` | No | ID of the multi-node GPU sandbox (rank 0); present only on internal node rows. |
| `degraded` | `boolean \| null` | No | The multi-node GPU sandbox remains usable but one or more fabric checks are degraded. |
| `id` | `string \| null` | No | The ID of the sandbox |
| `organizationId` | `string \| null` | No | The organization ID of the sandbox |
| `name` | `string \| null` | No | The name of the sandbox |
| `snapshot` | `string \| null` | No | The snapshot used for the sandbox |
| `user` | `string \| null` | No | The user associated with the project |
| `env` | `Record<string, string> \| null` | No | Environment variables for the sandbox |
| `labels` | `Record<string, string> \| null` | No | Labels for the sandbox |
| `public` | `boolean \| null` | No | Whether the sandbox http preview is public |
| `networkBlockAll` | `boolean \| null` | No | Whether to block all network access for the sandbox |
| `kvm` | `boolean \| null` | No | Whether the sandbox exposes KVM (/dev/kvm) to its guest |
| `networkAllowList` | `string \| null` | No | Comma-separated list of allowed CIDR network addresses for the sandbox |
| `domainAllowList` | `string \| null` | No | Comma-separated list of allowed domains for the sandbox |
| `outboundProxyUrl` | `string \| null` | No | Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)\_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. |
| `otelEndpointOverride` | `string \| null` | No | OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. |
| `target` | `string \| null` | No | The target environment for the sandbox |
| `cpu` | `number \| null` | No | The CPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `gpu` | `number \| null` | No | The GPU quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `spot` | `boolean \| null` | No | Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. |
| `spotEvictedAt` | `string \| null` | No | When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. |
| `queueTimedOutAt` | `string \| null` | No | When this sandbox was destroyed because it waited too long for a runner. Set only for queue-timeout sandboxes, which stay retrievable by ID for 24 hours after the timeout. |
| `gpuType` | `string \| null` | No | The GPU type assigned to the sandbox |
| `memory` | `number \| null` | No | The memory quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `disk` | `number \| null` | No | The disk quota for the sandbox; for a multi-node sandbox, this is the job total. |
| `state` | `string \| null` | No | The state of the sandbox |
| `desiredState` | `string \| null` | No | The desired state of the sandbox |
| `errorReason` | `string \| null` | No | The error reason of the sandbox |
| `networkPolicyError` | `string \| null` | No | Outcome of the runner's most recent network policy change: why the network settings fields (what was requested) are not what the runner enforces. Absent when the latest change was applied; a new request leaves it as it is until its own outcome is known. |
| `recoverable` | `boolean \| null` | No | Whether the sandbox error is recoverable. |
| `warmPoolId` | `string \| null` | No | Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. |
| `backupState` | `string \| null` | No | The state of the backup |
| `backupCreatedAt` | `string \| null` | No | The creation timestamp of the last backup |
| `autoStopInterval` | `number \| null` | No | Auto-stop interval in minutes (0 means disabled) |
| `autoPauseInterval` | `number \| null` | No | Auto-pause interval in minutes (0 means disabled) |
| `autoArchiveInterval` | `number \| null` | No | Auto-archive interval in minutes |
| `autoDeleteInterval` | `number \| null` | No | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) |
| `autoDestroyAt` | `string \| null` | No | When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) |
| `queueTimeout` | `number \| null \| null` | No | Minutes to wait for runner assignment before cancelling sandbox creation. Null means the wait is unlimited. |
| `volumes` | `object[] \| null` | No | Array of volumes attached to the sandbox |
| `buildInfo` | `object \| null` | No | Build information for the sandbox |
| `createdAt` | `string \| null` | No | The creation timestamp of the sandbox |
| `updatedAt` | `string \| null` | No | The last update timestamp of the sandbox |
| `lastActivityAt` | `string \| null` | No | The last activity timestamp of the sandbox |
| `sandboxClass` | `string \| null` | No | The class of the sandbox |
| `daemonVersion` | `string \| null` | No | The version of the daemon running in the sandbox |
| `runnerId` | `string \| null` | No | The runner ID of the sandbox |
| `linkedSandboxId` | `string \| null` | No | ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. |
| `toolboxProxyUrl` | `string \| null` | No | The toolbox proxy URL for the sandbox |

> [accordion] nodes full type
>
> ```ts theme={null}
> {
>   rank?: number | null,
>   id?: string | null,
>   state?: string | null,
>   incarnation?: number | null,
>   failure?: {
>     rank?: number | null,
>     memberId?: string | null,
>     incarnation?: number | null,
>     reason?: string | null,
>     reportedState?: string | null,
>     failedAt?: string | null,
>     fencingStatus?: string | null,
>     fencingError?: string | null
>   } | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   memory?: number | null,
>   disk?: number | null,
>   fabricAddress?: string | null,
>   fabricPrefixLength?: number | null,
>   fabricHealthy?: boolean | null,
>   fabricUnhealthySince?: string | null
> }[] | null
> ```

> [accordion] volumes full type
>
> ```ts theme={null}
> {
>   volumeId?: string | null,
>   mountPath?: string | null,
>   subpath?: string | null
> }[] | null
> ```

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

## Secrets

### create

`secrets.create`

Create secret

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.secrets.create({ name: 'my-sandbox', value: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | Yes | Secret name (alphanumeric, hyphens, underscores) |
| `value` | `string` | Yes | Secret value |
| `description` | `string` | No | Optional description of the secret |
| `hosts` | `string[]` | No | Allowed hosts this secret may be sent to |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Secret ID |
| `name` | `string \| null` | No | Secret name |
| `description` | `string \| null` | No | Optional description of the secret |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `placeholder` | `string \| null` | No | Opaque placeholder token injected as env var value in sandboxes |
| `hosts` | `string[] \| null` | No | Allowed hosts this secret may be sent to |
| `updatedAt` | `string \| null` | No | Last update timestamp |

***

### delete

`secrets.delete`

Delete secret

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.secrets.delete({ secretId: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `secretId` | `string` | Yes | ID of the secret |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### get

`secrets.get`

Get secret

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.secrets.get({ secretId: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `secretId` | `string` | Yes | ID of the secret |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Secret ID |
| `name` | `string \| null` | No | Secret name |
| `description` | `string \| null` | No | Optional description of the secret |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `placeholder` | `string \| null` | No | Opaque placeholder token injected as env var value in sandboxes |
| `hosts` | `string[] \| null` | No | Allowed hosts this secret may be sent to |
| `updatedAt` | `string \| null` | No | Last update timestamp |

***

### listPaginated

`secrets.listPaginated`

List secrets with pagination

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.secrets.listPaginated({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `cursor` | `string` | No | Pagination cursor from a previous response |
| `limit` | `number` | No | Number of results per page |
| `name` | `string` | No | Filter by partial name match |
| `sort` | `name \| createdAt \| updatedAt` | No | Field to sort by |
| `order` | `asc \| desc` | No | Direction to sort by |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[] \| null` | No | List of results for the current page |
| `total` | `number \| null` | No | Total number of secrets matching the filters |
| `nextCursor` | `string \| null \| null` | No | Cursor for the next page of results |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   description?: string | null,
>   createdAt?: string | null,
>   placeholder?: string | null,
>   hosts?: string[] | null,
>   updatedAt?: string | null
> }[] | null
> ```

***

### update

`secrets.update`

Update secret

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.secrets.update({ secretId: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `secretId` | `string` | Yes | ID of the secret |
| `value` | `string` | No | New secret value |
| `description` | `string` | No | Optional description of the secret |
| `hosts` | `string[]` | No | Allowed hosts this secret may be sent to |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Secret ID |
| `name` | `string \| null` | No | Secret name |
| `description` | `string \| null` | No | Optional description of the secret |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `placeholder` | `string \| null` | No | Opaque placeholder token injected as env var value in sandboxes |
| `hosts` | `string[] \| null` | No | Allowed hosts this secret may be sent to |
| `updatedAt` | `string \| null` | No | Last update timestamp |

***

## Snapshots

### activate

`snapshots.activate`

Activate a snapshot

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.snapshots.activate({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Snapshot ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `organizationId` | `string \| null` | No | — |
| `general` | `boolean \| null` | No | — |
| `name` | `string \| null` | No | — |
| `imageName` | `string \| null` | No | — |
| `state` | `string \| null` | No | — |
| `size` | `number \| null \| null` | No | — |
| `entrypoint` | `string[] \| null \| null` | No | — |
| `cpu` | `number \| null` | No | — |
| `gpu` | `number \| null` | No | — |
| `gpuType` | `string \| null` | No | The GPU type assigned to the snapshot |
| `mem` | `number \| null` | No | — |
| `disk` | `number \| null` | No | — |
| `errorReason` | `string \| null \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |
| `lastUsedAt` | `string \| null \| null` | No | — |
| `buildInfo` | `object \| null` | No | Build information for the snapshot |
| `regionIds` | `string[] \| null` | No | IDs of regions where the snapshot is available |
| `initialRunnerId` | `string \| null` | No | The initial runner ID of the snapshot |
| `ref` | `string \| null` | No | The snapshot reference |
| `sourceSandboxId` | `string \| null \| null` | No | The ID of the sandbox the snapshot was created from |
| `sandboxClass` | `string \| null` | No | The sandbox class of the snapshot |

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### create

`snapshots.create`

Create a new snapshot

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.snapshots.create({ name: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | Yes | The name of the snapshot |
| `imageName` | `string` | No | The image name of the snapshot |
| `entrypoint` | `string[]` | No | The entrypoint command for the snapshot |
| `cpu` | `number` | No | CPU cores allocated to the resulting sandbox |
| `gpu` | `number` | No | GPU units allocated to the resulting sandbox |
| `gpuType` | `(H100 \| H200 \| B200 \| B300 \| L40S \| RTX-PRO-6000 \| RTX-4090 \| RTX-5090 \| MI355X)[]` | No | Preferred GPU type for the resulting sandbox. |
| `memory` | `number` | No | Memory allocated to the resulting sandbox in GB |
| `disk` | `number` | No | Disk space allocated to the sandbox in GB |
| `buildInfo` | `object` | No | Build information for the snapshot |
| `regionId` | `string` | No | ID of the region where the snapshot will be available. Defaults to organization default region if not specified. |
| `sandboxClass` | `linux-vm \| container \| windows` | No | Target sandbox class. Determines which runners can host sandboxes created from this snapshot. |

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent: string,
>   contextHashes?: string[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `organizationId` | `string \| null` | No | — |
| `general` | `boolean \| null` | No | — |
| `name` | `string \| null` | No | — |
| `imageName` | `string \| null` | No | — |
| `state` | `string \| null` | No | — |
| `size` | `number \| null \| null` | No | — |
| `entrypoint` | `string[] \| null \| null` | No | — |
| `cpu` | `number \| null` | No | — |
| `gpu` | `number \| null` | No | — |
| `gpuType` | `string \| null` | No | The GPU type assigned to the snapshot |
| `mem` | `number \| null` | No | — |
| `disk` | `number \| null` | No | — |
| `errorReason` | `string \| null \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |
| `lastUsedAt` | `string \| null \| null` | No | — |
| `buildInfo` | `object \| null` | No | Build information for the snapshot |
| `regionIds` | `string[] \| null` | No | IDs of regions where the snapshot is available |
| `initialRunnerId` | `string \| null` | No | The initial runner ID of the snapshot |
| `ref` | `string \| null` | No | The snapshot reference |
| `sourceSandboxId` | `string \| null \| null` | No | The ID of the sandbox the snapshot was created from |
| `sandboxClass` | `string \| null` | No | The sandbox class of the snapshot |

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### deactivate

`snapshots.deactivate`

Deactivate a snapshot

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.snapshots.deactivate({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Snapshot ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### get

`snapshots.get`

Get snapshot by ID or name

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.snapshots.get({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Snapshot ID or name |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `organizationId` | `string \| null` | No | — |
| `general` | `boolean \| null` | No | — |
| `name` | `string \| null` | No | — |
| `imageName` | `string \| null` | No | — |
| `state` | `string \| null` | No | — |
| `size` | `number \| null \| null` | No | — |
| `entrypoint` | `string[] \| null \| null` | No | — |
| `cpu` | `number \| null` | No | — |
| `gpu` | `number \| null` | No | — |
| `gpuType` | `string \| null` | No | The GPU type assigned to the snapshot |
| `mem` | `number \| null` | No | — |
| `disk` | `number \| null` | No | — |
| `errorReason` | `string \| null \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |
| `lastUsedAt` | `string \| null \| null` | No | — |
| `buildInfo` | `object \| null` | No | Build information for the snapshot |
| `regionIds` | `string[] \| null` | No | IDs of regions where the snapshot is available |
| `initialRunnerId` | `string \| null` | No | The initial runner ID of the snapshot |
| `ref` | `string \| null` | No | The snapshot reference |
| `sourceSandboxId` | `string \| null \| null` | No | The ID of the sandbox the snapshot was created from |
| `sandboxClass` | `string \| null` | No | The sandbox class of the snapshot |

> [accordion] buildInfo full type
>
> ```ts theme={null}
> {
>   dockerfileContent?: string | null,
>   contextHashes?: string[] | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   snapshotRef?: string | null
> } | null
> ```

***

### getAll

`snapshots.getAll`

List all snapshots

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.snapshots.getAll({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `page` | `number` | No | Page number of the results |
| `limit` | `number` | No | Number of results per page |
| `name` | `string` | No | Filter by partial name match |
| `sourceSandboxId` | `string` | No | Filter by the ID of the sandbox the snapshot was created from |
| `sort` | `name \| state \| lastUsedAt \| createdAt` | No | Field to sort by |
| `order` | `asc \| desc` | No | Direction to sort by |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[] \| null` | No | — |
| `total` | `number \| null` | No | — |
| `page` | `number \| null` | No | — |
| `totalPages` | `number \| null` | No | — |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   organizationId?: string | null,
>   general?: boolean | null,
>   name?: string | null,
>   imageName?: string | null,
>   state?: string | null,
>   size?: number | null | null,
>   entrypoint?: string[] | null | null,
>   cpu?: number | null,
>   gpu?: number | null,
>   gpuType?: string | null,
>   mem?: number | null,
>   disk?: number | null,
>   errorReason?: string | null | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   lastUsedAt?: string | null | null,
>   buildInfo?: {
>     dockerfileContent?: string | null,
>     contextHashes?: string[] | null,
>     createdAt?: string | null,
>     updatedAt?: string | null,
>     snapshotRef?: string | null
>   } | null,
>   regionIds?: string[] | null,
>   initialRunnerId?: string | null,
>   ref?: string | null,
>   sourceSandboxId?: string | null | null,
>   sandboxClass?: string | null
> }[] | null
> ```

***

### getBuildLogsUrl

`snapshots.getBuildLogsUrl`

Get snapshot build logs URL

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.snapshots.getBuildLogsUrl({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Snapshot ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string \| null` | No | URL response |

***

### remove

`snapshots.remove`

Delete snapshot

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.snapshots.remove({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Snapshot ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

## Toolbox

### computerUse.click

`toolbox.computerUse.click`

Click mouse button

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.click({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `button` | `string` | No | left, right, middle |
| `clicks` | `number` | No | Clicks is a pointer so an omitted value is distinguishable from an explicit 0, which must be rejected rather than silently defaulted. |
| `double` | `boolean` | No | — |
| `modifiers` | `string[]` | No | — |
| `x` | `number` | No | — |
| `y` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `x` | `number \| null` | No | — |
| `y` | `number \| null` | No | — |

***

### computerUse.deleteRecording

`toolbox.computerUse.deleteRecording`

Delete a recording

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.deleteRecording({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `id` | `string` | Yes | Recording ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### computerUse.downloadRecording

`toolbox.computerUse.downloadRecording`

Download a recording (returned as a file)

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.downloadRecording({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `id` | `string` | Yes | Recording ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `contentBase64` | `string` | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
| `text` | `string` | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
| `contentType` | `string` | Yes | Media type of the file, for example application/pdf. |
| `byteLength` | `number` | Yes | Size of the file in bytes. |
| `filename` | `string` | No | The file name, when known. |
| `contentOmitted` | `not_requested \| over_limit` | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
| `fileId` | `string` | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil\_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read\_text. |

***

### computerUse.drag

`toolbox.computerUse.drag`

Drag mouse

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.drag({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `button` | `string` | No | — |
| `endX` | `number` | No | — |
| `endY` | `number` | No | — |
| `modifiers` | `string[]` | No | — |
| `startX` | `number` | No | — |
| `startY` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `x` | `number \| null` | No | — |
| `y` | `number \| null` | No | — |

***

### computerUse.findAccessibilityNodes

`toolbox.computerUse.findAccessibilityNodes`

Find accessibility nodes

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.findAccessibilityNodes({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `limit` | `number` | No | — |
| `name` | `string` | No | — |
| `nameMatch` | `string` | No | "exact" \| "substring" \| "regex" |
| `pid` | `number` | No | — |
| `role` | `string` | No | — |
| `scope` | `string` | No | — |
| `states` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `matches` | `object[] \| null` | No | — |
| `truncated` | `boolean \| null` | No | — |

> [accordion] matches full type
>
> ```ts theme={null}
> {
>   actions?: string[] | null,
>   bounds?: {
>     height?: number | null,
>     width?: number | null,
>     x?: number | null,
>     y?: number | null
>   } | null,
>   children?: {
>     actions?: string[] | null,
>     bounds?: {
>       height?: number | null,
>       width?: number | null,
>       x?: number | null,
>       y?: number | null
>     } | null,
>     children?: (recursive)[] | null,
>     description?: string | null,
>     id?: string | null,
>     name?: string | null,
>     role?: string | null,
>     states?: string[] | null
>   }[] | null,
>   description?: string | null,
>   id?: string | null,
>   name?: string | null,
>   role?: string | null,
>   states?: string[] | null
> }[] | null
> ```

***

### computerUse.focusAccessibilityNode

`toolbox.computerUse.focusAccessibilityNode`

Focus an accessibility node

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.focusAccessibilityNode({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `id` | `string` | Yes | — |

**Output:** *empty object*

***

### computerUse.getAccessibilityTree

`toolbox.computerUse.getAccessibilityTree`

Get accessibility tree

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getAccessibilityTree({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `scope` | `string` | No | Scope: focused \| pid \| all (default: focused) |
| `pid` | `number` | No | Process ID when scope=pid |
| `maxDepth` | `number` | No | Max tree depth (-1 unbounded, 0 root only; default -1) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `root` | `object \| null` | No | — |
| `truncated` | `boolean \| null` | No | — |

> [accordion] root full type
>
> ```ts theme={null}
> {
>   actions?: string[] | null,
>   bounds?: {
>     height?: number | null,
>     width?: number | null,
>     x?: number | null,
>     y?: number | null
>   } | null,
>   children?: {
>     actions?: string[] | null,
>     bounds?: {
>       height?: number | null,
>       width?: number | null,
>       x?: number | null,
>       y?: number | null
>     } | null,
>     children?: (recursive)[] | null,
>     description?: string | null,
>     id?: string | null,
>     name?: string | null,
>     role?: string | null,
>     states?: string[] | null
>   }[] | null,
>   description?: string | null,
>   id?: string | null,
>   name?: string | null,
>   role?: string | null,
>   states?: string[] | null
> } | null
> ```

***

### computerUse.getComputerUseStatus

`toolbox.computerUse.getComputerUseStatus`

Get computer use process status

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getComputerUseStatus({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | — |

***

### computerUse.getComputerUseSystemStatus

`toolbox.computerUse.getComputerUseSystemStatus`

Get computer use status

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getComputerUseSystemStatus({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | — |

***

### computerUse.getDisplayInfo

`toolbox.computerUse.getDisplayInfo`

Get display information

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getDisplayInfo({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `displays` | `object[] \| null` | No | — |

> [accordion] displays full type
>
> ```ts theme={null}
> {
>   height?: number | null,
>   id?: number | null,
>   isActive?: boolean | null,
>   width?: number | null,
>   x?: number | null,
>   y?: number | null
> }[] | null
> ```

***

### computerUse.getMousePosition

`toolbox.computerUse.getMousePosition`

Get mouse position

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getMousePosition({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `x` | `number \| null` | No | — |
| `y` | `number \| null` | No | — |

***

### computerUse.getProcessErrors

`toolbox.computerUse.getProcessErrors`

Get process errors

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getProcessErrors({ sandbox_id: 'my-sandbox', processName: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `processName` | `string` | Yes | Process name to get errors for |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `errors` | `string \| null` | No | — |
| `processName` | `string \| null` | No | — |

***

### computerUse.getProcessLogs

`toolbox.computerUse.getProcessLogs`

Get process logs

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getProcessLogs({ sandbox_id: 'my-sandbox', processName: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `processName` | `string` | Yes | Process name to get logs for |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `logs` | `string \| null` | No | — |
| `processName` | `string \| null` | No | — |

***

### computerUse.getProcessStatus

`toolbox.computerUse.getProcessStatus`

Get specific process status

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getProcessStatus({ sandbox_id: 'my-sandbox', processName: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `processName` | `string` | Yes | Process name to check |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `processName` | `string \| null` | No | — |
| `running` | `boolean \| null` | No | — |

***

### computerUse.getRecording

`toolbox.computerUse.getRecording`

Get recording details

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getRecording({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `id` | `string` | Yes | Recording ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `durationSeconds` | `number \| null` | No | — |
| `endTime` | `string \| null` | No | — |
| `fileName` | `string \| null` | No | — |
| `filePath` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `sizeBytes` | `number \| null` | No | — |
| `startTime` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |

***

### computerUse.getWindows

`toolbox.computerUse.getWindows`

Get windows information

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.getWindows({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `windows` | `object[] \| null` | No | — |

> [accordion] windows full type
>
> ```ts theme={null}
> {
>   height?: number | null,
>   id?: number | null,
>   isActive?: boolean | null,
>   title?: string | null,
>   width?: number | null,
>   x?: number | null,
>   y?: number | null
> }[] | null
> ```

***

### computerUse.invokeAccessibilityNode

`toolbox.computerUse.invokeAccessibilityNode`

Invoke an action on an accessibility node

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.invokeAccessibilityNode({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `action` | `string` | No | — |
| `id` | `string` | Yes | — |

**Output:** *empty object*

***

### computerUse.keyDown

`toolbox.computerUse.keyDown`

Press and hold a keyboard key

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.keyDown({ sandbox_id: 'my-sandbox', key: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `key` | `string` | Yes | e.g., "ctrl", "shift", "a" |

**Output:** *empty object*

***

### computerUse.keyUp

`toolbox.computerUse.keyUp`

Release a held keyboard key

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.keyUp({ sandbox_id: 'my-sandbox', key: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `key` | `string` | Yes | e.g., "ctrl", "shift", "a" |

**Output:** *empty object*

***

### computerUse.listRecordings

`toolbox.computerUse.listRecordings`

List all recordings

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.listRecordings({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `recordings` | `object[] \| null` | No | — |

> [accordion] recordings full type
>
> ```ts theme={null}
> {
>   durationSeconds?: number | null,
>   endTime?: string | null,
>   fileName?: string | null,
>   filePath?: string | null,
>   id?: string | null,
>   sizeBytes?: number | null,
>   startTime?: string | null,
>   status?: string | null
> }[] | null
> ```

***

### computerUse.mouseDown

`toolbox.computerUse.mouseDown`

Press mouse button

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.mouseDown({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `button` | `string` | No | left, right, middle |
| `x` | `number` | No | — |
| `y` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `x` | `number \| null` | No | — |
| `y` | `number \| null` | No | — |

***

### computerUse.mouseUp

`toolbox.computerUse.mouseUp`

Release mouse button

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.mouseUp({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `button` | `string` | No | left, right, middle |
| `x` | `number` | No | — |
| `y` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `x` | `number \| null` | No | — |
| `y` | `number \| null` | No | — |

***

### computerUse.moveMouse

`toolbox.computerUse.moveMouse`

Move mouse cursor

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.moveMouse({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `x` | `number` | No | — |
| `y` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `x` | `number \| null` | No | — |
| `y` | `number \| null` | No | — |

***

### computerUse.pressHotkey

`toolbox.computerUse.pressHotkey`

Press hotkey

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.pressHotkey({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `keys` | `string` | No | e.g., "ctrl+c", "cmd+v" |

**Output:** *empty object*

***

### computerUse.pressKey

`toolbox.computerUse.pressKey`

Press key

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.pressKey({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `key` | `string` | No | — |
| `modifiers` | `string[]` | No | ctrl, alt, shift, cmd |

**Output:** *empty object*

***

### computerUse.restartProcess

`toolbox.computerUse.restartProcess`

Restart specific process

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.restartProcess({ sandbox_id: 'my-sandbox', processName: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `processName` | `string` | Yes | Process name to restart |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `message` | `string \| null` | No | — |
| `processName` | `string \| null` | No | — |

***

### computerUse.scroll

`toolbox.computerUse.scroll`

Scroll mouse wheel

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.scroll({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `amount` | `number` | No | — |
| `direction` | `string` | No | up, down, left, right |
| `modifiers` | `string[]` | No | — |
| `x` | `number` | No | — |
| `y` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean \| null` | No | — |

***

### computerUse.setAccessibilityNodeValue

`toolbox.computerUse.setAccessibilityNodeValue`

Set the value of an accessibility node

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.setAccessibilityNodeValue({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `id` | `string` | Yes | — |
| `value` | `string` | No | — |

**Output:** *empty object*

***

### computerUse.startComputerUse

`toolbox.computerUse.startComputerUse`

Start computer use processes

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.startComputerUse({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `message` | `string \| null` | No | — |
| `status` | `object \| null` | No | — |

> [accordion] status full type
>
> ```ts theme={null}
> Record<string, {
>   autoRestart?: boolean | null,
>   pid?: number | null,
>   priority?: number | null,
>   running?: boolean | null
> }> | null
> ```

***

### computerUse.startRecording

`toolbox.computerUse.startRecording`

Start a new recording

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.startRecording({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `label` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `durationSeconds` | `number \| null` | No | — |
| `endTime` | `string \| null` | No | — |
| `fileName` | `string \| null` | No | — |
| `filePath` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `sizeBytes` | `number \| null` | No | — |
| `startTime` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |

***

### computerUse.stopComputerUse

`toolbox.computerUse.stopComputerUse`

Stop computer use processes

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.stopComputerUse({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `message` | `string \| null` | No | — |
| `status` | `object \| null` | No | — |

> [accordion] status full type
>
> ```ts theme={null}
> Record<string, {
>   autoRestart?: boolean | null,
>   pid?: number | null,
>   priority?: number | null,
>   running?: boolean | null
> }> | null
> ```

***

### computerUse.stopRecording

`toolbox.computerUse.stopRecording`

Stop a recording

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.stopRecording({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `id` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `durationSeconds` | `number \| null` | No | — |
| `endTime` | `string \| null` | No | — |
| `fileName` | `string \| null` | No | — |
| `filePath` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `sizeBytes` | `number \| null` | No | — |
| `startTime` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |

***

### computerUse.takeCompressedRegionScreenshot

`toolbox.computerUse.takeCompressedRegionScreenshot`

Take a compressed region screenshot

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.takeCompressedRegionScreenshot({
	sandbox_id: 'my-sandbox',
	x: 1,
	y: 1,
	width: 1,
	height: 1,
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `x` | `number` | Yes | X coordinate of the region |
| `y` | `number` | Yes | Y coordinate of the region |
| `width` | `number` | Yes | Width of the region |
| `height` | `number` | Yes | Height of the region |
| `showCursor` | `boolean` | No | Whether to show cursor in screenshot |
| `format` | `string` | No | Image format (png or jpeg) |
| `quality` | `number` | No | JPEG quality (1-100) |
| `scale` | `number` | No | Scale factor (0.1-1.0) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `cursorPosition` | `object \| null` | No | — |
| `screenshot` | `string \| null` | No | — |
| `sizeBytes` | `number \| null` | No | — |

> [accordion] cursorPosition full type
>
> ```ts theme={null}
> {
>   x?: number | null,
>   y?: number | null
> } | null
> ```

***

### computerUse.takeCompressedScreenshot

`toolbox.computerUse.takeCompressedScreenshot`

Take a compressed screenshot

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.takeCompressedScreenshot({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `showCursor` | `boolean` | No | Whether to show cursor in screenshot |
| `format` | `string` | No | Image format (png or jpeg) |
| `quality` | `number` | No | JPEG quality (1-100) |
| `scale` | `number` | No | Scale factor (0.1-1.0) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `cursorPosition` | `object \| null` | No | — |
| `screenshot` | `string \| null` | No | — |
| `sizeBytes` | `number \| null` | No | — |

> [accordion] cursorPosition full type
>
> ```ts theme={null}
> {
>   x?: number | null,
>   y?: number | null
> } | null
> ```

***

### computerUse.takeRegionScreenshot

`toolbox.computerUse.takeRegionScreenshot`

Take a region screenshot

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.takeRegionScreenshot({
	sandbox_id: 'my-sandbox',
	x: 1,
	y: 1,
	width: 1,
	height: 1,
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `x` | `number` | Yes | X coordinate of the region |
| `y` | `number` | Yes | Y coordinate of the region |
| `width` | `number` | Yes | Width of the region |
| `height` | `number` | Yes | Height of the region |
| `showCursor` | `boolean` | No | Whether to show cursor in screenshot |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `cursorPosition` | `object \| null` | No | — |
| `screenshot` | `string \| null` | No | — |
| `sizeBytes` | `number \| null` | No | — |

> [accordion] cursorPosition full type
>
> ```ts theme={null}
> {
>   x?: number | null,
>   y?: number | null
> } | null
> ```

***

### computerUse.takeScreenshot

`toolbox.computerUse.takeScreenshot`

Take a screenshot

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.takeScreenshot({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `showCursor` | `boolean` | No | Whether to show cursor in screenshot |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `cursorPosition` | `object \| null` | No | — |
| `screenshot` | `string \| null` | No | — |
| `sizeBytes` | `number \| null` | No | — |

> [accordion] cursorPosition full type
>
> ```ts theme={null}
> {
>   x?: number | null,
>   y?: number | null
> } | null
> ```

***

### computerUse.typeText

`toolbox.computerUse.typeText`

Type text

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.computerUse.typeText({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `delay` | `number` | No | milliseconds between keystrokes |
| `text` | `string` | No | — |

**Output:** *empty object*

***

### files.createFolder

`toolbox.files.createFolder`

Create a folder

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.files.createFolder({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md', mode: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Folder path to create |
| `mode` | `string` | Yes | Octal permission mode (default: 0755) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### files.delete

`toolbox.files.delete`

Delete a file or directory

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.files.delete({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | File or directory path to delete |
| `recursive` | `boolean` | No | Enable recursive deletion for directories |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### files.download

`toolbox.files.download`

Download a file from a sandbox (returned as a file)

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.files.download({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | File path to download |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `contentBase64` | `string` | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
| `text` | `string` | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
| `contentType` | `string` | Yes | Media type of the file, for example application/pdf. |
| `byteLength` | `number` | Yes | Size of the file in bytes. |
| `filename` | `string` | No | The file name, when known. |
| `contentOmitted` | `not_requested \| over_limit` | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
| `fileId` | `string` | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil\_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read\_text. |

***

### files.findIn

`toolbox.files.findIn`

Find text in files

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.files.findIn({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md', pattern: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Directory path to search in |
| `pattern` | `string` | Yes | Text pattern to search for |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   content?: string | null,
>   file?: string | null,
>   line?: number | null
> }[]
> ```

***

### files.getInfo

`toolbox.files.getInfo`

Get file information

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.files.getInfo({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | File or directory path |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `group` | `string \| null` | No | — |
| `isDir` | `boolean \| null` | No | — |
| `modTime` | `string \| null` | No | Deprecated: ModTime uses Go's time.String() layout which is not a standard format. Use ModifiedAt instead, which is serialized as ISO 8601 / RFC 3339. |
| `mode` | `string \| null` | No | — |
| `modifiedAt` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `owner` | `string \| null` | No | — |
| `path` | `string \| null` | No | Full path of the entry |
| `permissions` | `string \| null` | No | — |
| `size` | `number \| null` | No | — |

***

### files.list

`toolbox.files.list`

List files and directories

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.files.list({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | No | Directory path to list (defaults to working directory) |
| `depth` | `number` | No | How many levels deep to list (default: 1, must be >= 1) |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   group?: string | null,
>   isDir?: boolean | null,
>   modTime?: string | null,
>   mode?: string | null,
>   modifiedAt?: string | null,
>   name?: string | null,
>   owner?: string | null,
>   path?: string | null,
>   permissions?: string | null,
>   size?: number | null
> }[]
> ```

***

### files.move

`toolbox.files.move`

Move or rename file/directory

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.files.move({ sandbox_id: 'my-sandbox', source: 'example', destination: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `source` | `string` | Yes | Source file or directory path |
| `destination` | `string` | Yes | Destination file or directory path |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### files.replaceIn

`toolbox.files.replaceIn`

Replace text in files

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.files.replaceIn({
	sandbox_id: 'my-sandbox',
	files: ['example'],
	newValue: 'example',
	pattern: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `files` | `string[]` | Yes | — |
| `newValue` | `string` | Yes | — |
| `pattern` | `string` | Yes | — |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   error?: string | null,
>   file?: string | null,
>   success?: boolean | null
> }[]
> ```

***

### files.search

`toolbox.files.search`

Search files by pattern

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.files.search({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md', pattern: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Directory path to search in |
| `pattern` | `string` | Yes | File pattern to match (e.g., \*.txt, \*.go) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `files` | `string[] \| null` | No | — |

***

### files.setPermissions

`toolbox.files.setPermissions`

Set file permissions

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.files.setPermissions({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | File or directory path |
| `owner` | `string` | No | Owner (username or UID) |
| `group` | `string` | No | Group (group name or GID) |
| `mode` | `string` | No | File mode in octal format (e.g., 0755) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### files.upload

`toolbox.files.upload`

Upload a file into a sandbox

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.files.upload({
	sandbox_id: 'my-sandbox',
	path: '/home/daytona/notes.md',
	file: { base64: 'aGVsbG8gZnJvbSBDb3JzYWly', filename: 'notes.md', contentType: 'text/markdown' },
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Destination path for the uploaded file |
| `file` | `string \| object \| custom` | No | File to upload (multipart/form-data) |

> [accordion] file full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> } | custom
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | `string \| null` | No | — |
| `path` | `string \| null` | No | — |
| `type` | `string \| null` | No | — |

***

### git.addFiles

`toolbox.git.addFiles`

Add files to Git staging

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.addFiles({
	sandbox_id: 'my-sandbox',
	files: ['example'],
	path: '/home/daytona/notes.md',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `files` | `string[]` | Yes | files to add (use . for all files) |
| `path` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.addRemote

`toolbox.git.addRemote`

Add a remote

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.addRemote({
	sandbox_id: 'my-sandbox',
	name: 'my-sandbox',
	path: '/home/daytona/notes.md',
	url: 'https://github.com/daytonaio/daytona.git',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `fetch` | `boolean` | No | Fetch fetches from the remote immediately after adding it. |
| `name` | `string` | Yes | — |
| `overwrite` | `boolean` | No | Overwrite replaces an existing remote with the same name. |
| `path` | `string` | Yes | — |
| `url` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.authenticate

`toolbox.git.authenticate`

Authenticate Git

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.authenticate({ sandbox_id: 'my-sandbox', password: 'example', username: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `host` | `string` | No | Host defaults to github.com. |
| `password` | `string` | Yes | — |
| `protocol` | `string` | No | Protocol defaults to https. |
| `username` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.checkoutBranch

`toolbox.git.checkoutBranch`

Checkout branch or commit

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.checkoutBranch({ sandbox_id: 'my-sandbox', branch: 'example', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `branch` | `string` | Yes | — |
| `path` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.cloneRepository

`toolbox.git.cloneRepository`

Clone a Git repository

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.cloneRepository({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md', url: 'https://github.com/daytonaio/daytona.git' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `branch` | `string` | No | — |
| `commit_id` | `string` | No | — |
| `depth` | `number` | No | Depth creates a shallow clone truncated to the given number of commits. |
| `insecure_skip_tls` | `boolean` | No | Skip TLS certificate verification for this clone. Defaults to false (verify). Set to true ONLY for trusted internal Git servers with self-signed or private-CA certs; credentials, if supplied, will be transmitted over an unverified TLS connection and are exposed to any MITM on the route. |
| `password` | `string` | No | — |
| `path` | `string` | Yes | — |
| `url` | `string` | Yes | — |
| `username` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.commitChanges

`toolbox.git.commitChanges`

Commit changes

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.commitChanges({
	sandbox_id: 'my-sandbox',
	author: 'example',
	email: 'ops@example.com',
	message: 'example',
	path: '/home/daytona/notes.md',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `allow_empty` | `boolean` | No | — |
| `author` | `string` | Yes | — |
| `email` | `string` | Yes | — |
| `message` | `string` | Yes | — |
| `path` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `hash` | `string \| null` | No | — |

***

### git.configureUser

`toolbox.git.configureUser`

Configure Git user

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.configureUser({ sandbox_id: 'my-sandbox', email: 'ops@example.com', name: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `email` | `string` | Yes | — |
| `name` | `string` | Yes | — |
| `path` | `string` | No | Path is the repository path, required when scope is "local". |
| `scope` | `string` | No | Scope is one of global (default), local or system. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.createBranch

`toolbox.git.createBranch`

Create a new branch

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.createBranch({ sandbox_id: 'my-sandbox', name: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `name` | `string` | Yes | — |
| `path` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.deleteBranch

`toolbox.git.deleteBranch`

Delete a branch

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.git.deleteBranch({ sandbox_id: 'my-sandbox', name: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `name` | `string` | Yes | — |
| `path` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.getCommitHistory

`toolbox.git.getCommitHistory`

Get commit history

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.git.getCommitHistory({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Repository path |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   author?: string | null,
>   email?: string | null,
>   hash?: string | null,
>   message?: string | null,
>   timestamp?: string | null
> }[]
> ```

***

### git.getConfig

`toolbox.git.getConfig`

Get a Git config value

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.git.getConfig({ sandbox_id: 'my-sandbox', key: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `key` | `string` | Yes | Config key (e.g. user.name) |
| `path` | `string` | No | Repository path (required for local scope) |
| `scope` | `string` | No | Config scope: global (default), local or system |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `value` | `string \| null` | No | Value is the config value, null when the key is not set. |

***

### git.getStatus

`toolbox.git.getStatus`

Get Git status

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.git.getStatus({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Repository path |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ahead` | `number \| null` | No | — |
| `behind` | `number \| null` | No | — |
| `branchPublished` | `boolean \| null` | No | — |
| `currentBranch` | `string \| null` | No | — |
| `detached` | `boolean \| null` | No | Detached is true when HEAD is not on a branch (detached HEAD state). |
| `fileStatus` | `object[] \| null` | No | — |
| `upstream` | `string \| null` | No | Upstream is the upstream tracking branch (e.g. "origin/main"), empty when unset. |

> [accordion] fileStatus full type
>
> ```ts theme={null}
> {
>   extra?: string | null,
>   name?: string | null,
>   staging?: string | null,
>   worktree?: string | null
> }[] | null
> ```

***

### git.initRepository

`toolbox.git.initRepository`

Initialize a Git repository

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.initRepository({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `bare` | `boolean` | No | Bare creates a repository without a working tree. |
| `initial_branch` | `string` | No | InitialBranch sets the name of the initial branch. |
| `path` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.listBranches

`toolbox.git.listBranches`

List branches

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.git.listBranches({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Repository path |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `branches` | `string[] \| null` | No | — |
| `current` | `string \| null` | No | Current is the name of the checked out branch (empty when HEAD is detached). |

***

### git.listRemotes

`toolbox.git.listRemotes`

List remotes

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.git.listRemotes({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `path` | `string` | Yes | Repository path |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `remotes` | `object[] \| null` | No | — |

> [accordion] remotes full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   url?: string | null
> }[] | null
> ```

***

### git.pullChanges

`toolbox.git.pullChanges`

Pull changes from remote

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.pullChanges({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `branch` | `string` | No | Branch to pull (defaults to the current branch's upstream). |
| `password` | `string` | No | — |
| `path` | `string` | Yes | — |
| `remote` | `string` | No | Remote to pull from (defaults to "origin"). |
| `username` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.pushChanges

`toolbox.git.pushChanges`

Push changes to remote

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.git.pushChanges({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `branch` | `string` | No | Branch to push (defaults to the current branch). |
| `password` | `string` | No | — |
| `path` | `string` | Yes | — |
| `remote` | `string` | No | Remote to push to (defaults to "origin"). |
| `set_upstream` | `boolean` | No | SetUpstream records the pushed branch as the upstream tracking branch. |
| `username` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.resetChanges

`toolbox.git.resetChanges`

Reset repository

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.git.resetChanges({ sandbox_id: 'my-sandbox', path: '/home/daytona/notes.md' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `files` | `string[]` | No | Files constrains the reset to the given paths. |
| `mode` | `string` | No | Mode is one of soft, mixed (default), hard, merge or keep. |
| `path` | `string` | Yes | — |
| `target` | `string` | No | Target is the revision to reset to (defaults to HEAD). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.restoreFiles

`toolbox.git.restoreFiles`

Restore files

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.git.restoreFiles({
	sandbox_id: 'my-sandbox',
	files: ['example'],
	path: '/home/daytona/notes.md',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `files` | `string[]` | Yes | — |
| `path` | `string` | Yes | — |
| `source` | `string` | No | Source restores file contents from the given revision instead of the index. |
| `staged` | `boolean` | No | Staged restores the staging index for the given files. |
| `worktree` | `boolean` | No | Worktree restores the working tree for the given files. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### git.setConfig

`toolbox.git.setConfig`

Set a Git config value

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.git.setConfig({ sandbox_id: 'my-sandbox', key: 'example', value: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `key` | `string` | Yes | — |
| `path` | `string` | No | Path is the repository path, required when scope is "local". |
| `scope` | `string` | No | Scope is one of global (default), local or system. |
| `value` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### info.getUserHomeDir

`toolbox.info.getUserHomeDir`

Get user home directory

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.info.getUserHomeDir({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `dir` | `string \| null` | No | — |

***

### info.getVersion

`toolbox.info.getVersion`

Get version

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.info.getVersion({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output:** `Record<string, string>`

***

### info.getWorkDir

`toolbox.info.getWorkDir`

Get working directory

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.info.getWorkDir({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `dir` | `string \| null` | No | — |

***

### interpreter.createInterpreterContext

`toolbox.interpreter.createInterpreterContext`

Create a new interpreter context

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.interpreter.createInterpreterContext({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `cwd` | `string` | No | — |
| `language` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `active` | `boolean \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `cwd` | `string \| null` | No | — |
| `id` | `string \| null` | No | — |
| `language` | `string \| null` | No | — |

***

### interpreter.deleteInterpreterContext

`toolbox.interpreter.deleteInterpreterContext`

Delete an interpreter context

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.interpreter.deleteInterpreterContext({ sandbox_id: 'my-sandbox', id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `id` | `string` | Yes | Context ID |

**Output:** `Record<string, string>`

***

### interpreter.listInterpreterContexts

`toolbox.interpreter.listInterpreterContexts`

List all user-created interpreter contexts

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.interpreter.listInterpreterContexts({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `contexts` | `object[] \| null` | No | — |

> [accordion] contexts full type
>
> ```ts theme={null}
> {
>   active?: boolean | null,
>   createdAt?: string | null,
>   cwd?: string | null,
>   id?: string | null,
>   language?: string | null
> }[] | null
> ```

***

### lsp.completions

`toolbox.lsp.completions`

Get code completions

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.lsp.completions({
	sandbox_id: 'my-sandbox',
	languageId: 'example',
	pathToProject: 'example',
	position: { character: 1, line: 1 },
	uri: 'example',
	context: { triggerKind: 1 },
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `context` | `object` | No | — |
| `languageId` | `string` | Yes | — |
| `pathToProject` | `string` | Yes | — |
| `position` | `object` | Yes | — |
| `uri` | `string` | Yes | — |

> [accordion] context full type
>
> ```ts theme={null}
> {
>   triggerCharacter?: string,
>   triggerKind: number
> }
> ```

> [accordion] position full type
>
> ```ts theme={null}
> {
>   character: number,
>   line: number
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `isIncomplete` | `boolean \| null` | No | — |
| `items` | `object[] \| null` | No | — |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   detail?: string | null,
>   documentation?: any | null,
>   filterText?: string | null,
>   insertText?: string | null,
>   kind?: number | null,
>   label?: string | null,
>   sortText?: string | null
> }[] | null
> ```

***

### lsp.didClose

`toolbox.lsp.didClose`

Notify document closed

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.lsp.didClose({
	sandbox_id: 'my-sandbox',
	languageId: 'example',
	pathToProject: 'example',
	uri: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `languageId` | `string` | Yes | — |
| `pathToProject` | `string` | Yes | — |
| `uri` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### lsp.didOpen

`toolbox.lsp.didOpen`

Notify document opened

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.lsp.didOpen({
	sandbox_id: 'my-sandbox',
	languageId: 'example',
	pathToProject: 'example',
	uri: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `languageId` | `string` | Yes | — |
| `pathToProject` | `string` | Yes | — |
| `uri` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### lsp.documentSymbols

`toolbox.lsp.documentSymbols`

Get document symbols

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.lsp.documentSymbols({
	sandbox_id: 'my-sandbox',
	languageId: 'example',
	pathToProject: 'example',
	uri: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `languageId` | `string` | Yes | Language ID (e.g., python, typescript) |
| `pathToProject` | `string` | Yes | Path to project |
| `uri` | `string` | Yes | Document URI |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   kind?: number | null,
>   location?: {
>     range?: {
>       end?: {
>         character?: number | null,
>         line?: number | null
>       } | null,
>       start?: {
>         character?: number | null,
>         line?: number | null
>       } | null
>     } | null,
>     uri?: string | null
>   } | null,
>   name?: string | null
> }[]
> ```

***

### lsp.start

`toolbox.lsp.start`

Start LSP server

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.lsp.start({ sandbox_id: 'my-sandbox', languageId: 'example', pathToProject: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `languageId` | `string` | Yes | — |
| `pathToProject` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### lsp.stop

`toolbox.lsp.stop`

Stop LSP server

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.lsp.stop({ sandbox_id: 'my-sandbox', languageId: 'example', pathToProject: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `languageId` | `string` | Yes | — |
| `pathToProject` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### lsp.workspaceSymbols

`toolbox.lsp.workspaceSymbols`

Get workspace symbols

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.lsp.workspaceSymbols({
	sandbox_id: 'my-sandbox',
	query: 'example',
	languageId: 'example',
	pathToProject: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `query` | `string` | Yes | Search query |
| `languageId` | `string` | Yes | Language ID (e.g., python, typescript) |
| `pathToProject` | `string` | Yes | Path to project |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   kind?: number | null,
>   location?: {
>     range?: {
>       end?: {
>         character?: number | null,
>         line?: number | null
>       } | null,
>       start?: {
>         character?: number | null,
>         line?: number | null
>       } | null
>     } | null,
>     uri?: string | null
>   } | null,
>   name?: string | null
> }[]
> ```

***

### ports.get

`toolbox.ports.get`

Get active ports

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.ports.get({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ports` | `number[] \| null` | No | — |

***

### ports.isInUse

`toolbox.ports.isInUse`

Check if port is in use

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.ports.isInUse({ sandbox_id: 'my-sandbox', port: 3000 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `port` | `number` | Yes | Port number (3000-9999) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `isInUse` | `boolean \| null` | No | — |

***

### process.codeRun

`toolbox.process.codeRun`

Run code in the sandbox's language runtime and get the result

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.toolbox.process.codeRun({ sandbox_id: 'my-sandbox', code: 'print(1 + 1)', language: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `argv` | `string[]` | No | — |
| `code` | `string` | Yes | — |
| `envs` | `Record<string, string>` | No | — |
| `language` | `string` | Yes | python, javascript, typescript |
| `timeout` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `artifacts` | `object \| null` | No | — |
| `exitCode` | `number \| null` | No | — |
| `result` | `string \| null` | No | — |

> [accordion] artifacts full type
>
> ```ts theme={null}
> {
>   charts?: {
>     elements?: {
>       angle?: number | null,
>       first_quartile?: number | null,
>       group?: string | null,
>       label?: string | null,
>       max?: number | null,
>       median?: number | null,
>       min?: number | null,
>       outliers?: number[] | null,
>       png?: string | null,
>       points?: number[][] | null,
>       radius?: number | null,
>       third_quartile?: number | null,
>       title?: string | null,
>       type?: string | null,
>       value?: string | null,
>       x_label?: string | null,
>       y_label?: string | null
>     }[] | null,
>     png?: string | null,
>     title?: string | null,
>     type?: string | null,
>     x_label?: string | null,
>     x_scale?: string | null,
>     x_tick_labels?: string[] | null,
>     x_ticks?: number[] | null,
>     y_label?: string | null,
>     y_scale?: string | null,
>     y_tick_labels?: string[] | null,
>     y_ticks?: number[] | null
>   }[] | null
> } | null
> ```

***

### process.createPtySession

`toolbox.process.createPtySession`

Create a new PTY session

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.process.createPtySession({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `cols` | `number` | No | — |
| `cwd` | `string` | No | — |
| `envs` | `Record<string, string>` | No | — |
| `id` | `string` | No | — |
| `lazyStart` | `boolean` | No | Don't start PTY until first client connects |
| `rows` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `sessionId` | `string \| null` | No | — |

***

### process.createSession

`toolbox.process.createSession`

Create a new session

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.process.createSession({ sandbox_id: 'my-sandbox', sessionId: 'build-session' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### process.deletePtySession

`toolbox.process.deletePtySession`

Delete a PTY session

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.process.deletePtySession({ sandbox_id: 'my-sandbox', sessionId: 'build-session' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | PTY session ID |

**Output:** `Record<string, any>`

***

### process.deleteSession

`toolbox.process.deleteSession`

Delete a session

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.process.deleteSession({ sandbox_id: 'my-sandbox', sessionId: 'build-session' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | Session ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### process.executeCommand

`toolbox.process.executeCommand`

Run a command in a sandbox and wait for exitCode and output (timeout in seconds)

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.toolbox.process.executeCommand({ sandbox_id: 'my-sandbox', command: 'uname -a', timeout: 30 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `command` | `string` | Yes | — |
| `cwd` | `string` | No | Current working directory |
| `envs` | `Record<string, string>` | No | Environment variables to set for the command |
| `timeout` | `number` | No | Timeout in seconds, defaults to 10 seconds |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `exitCode` | `number \| null` | No | — |
| `result` | `string \| null` | No | — |

***

### process.getEntrypointLogs

`toolbox.process.getEntrypointLogs`

Get entrypoint logs

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.getEntrypointLogs({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `follow` | `boolean` | No | Follow logs in real-time (WebSocket only) |

**Output:** `object \| string`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   output?: string | null,
>   stderr?: string | null,
>   stdout?: string | null
> } | string
> ```

***

### process.getEntrypointSession

`toolbox.process.getEntrypointSession`

Get entrypoint session details

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.getEntrypointSession({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `commands` | `object[] \| null` | No | — |
| `sessionId` | `string \| null` | No | — |

> [accordion] commands full type
>
> ```ts theme={null}
> {
>   command?: string | null,
>   exitCode?: number | null,
>   id?: string | null
> }[] | null
> ```

***

### process.getPtySession

`toolbox.process.getPtySession`

Get PTY session information

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.getPtySession({ sandbox_id: 'my-sandbox', sessionId: 'build-session' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | PTY session ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `active` | `boolean \| null` | No | — |
| `cols` | `number \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `cwd` | `string \| null` | No | — |
| `envs` | `Record<string, string> \| null` | No | — |
| `id` | `string \| null` | No | — |
| `lazyStart` | `boolean \| null` | No | Whether this session uses lazy start |
| `rows` | `number \| null` | No | — |

***

### process.getSession

`toolbox.process.getSession`

Get session details

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.getSession({ sandbox_id: 'my-sandbox', sessionId: 'build-session' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | Session ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `commands` | `object[] \| null` | No | — |
| `sessionId` | `string \| null` | No | — |

> [accordion] commands full type
>
> ```ts theme={null}
> {
>   command?: string | null,
>   exitCode?: number | null,
>   id?: string | null
> }[] | null
> ```

***

### process.getSessionCommand

`toolbox.process.getSessionCommand`

Get session command details

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.getSessionCommand({ sandbox_id: 'my-sandbox', sessionId: 'build-session', commandId: 'cmd-1' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | Session ID |
| `commandId` | `string` | Yes | Command ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `command` | `string \| null` | No | — |
| `exitCode` | `number \| null` | No | — |
| `id` | `string \| null` | No | — |

***

### process.getSessionCommandLogs

`toolbox.process.getSessionCommandLogs`

Get session command logs

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.getSessionCommandLogs({ sandbox_id: 'my-sandbox', sessionId: 'build-session', commandId: 'cmd-1' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | Session ID |
| `commandId` | `string` | Yes | Command ID |
| `follow` | `boolean` | No | Follow logs in real-time (WebSocket only) |

**Output:** `object \| string`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   output?: string | null,
>   stderr?: string | null,
>   stdout?: string | null
> } | string
> ```

***

### process.listPtySessions

`toolbox.process.listPtySessions`

List all PTY sessions

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.listPtySessions({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `sessions` | `object[] \| null` | No | — |

> [accordion] sessions full type
>
> ```ts theme={null}
> {
>   active?: boolean | null,
>   cols?: number | null,
>   createdAt?: string | null,
>   cwd?: string | null,
>   envs?: Record<string, string> | null,
>   id?: string | null,
>   lazyStart?: boolean | null,
>   rows?: number | null
> }[] | null
> ```

***

### process.listSessions

`toolbox.process.listSessions`

List all sessions

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.process.listSessions({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   commands?: {
>     command?: string | null,
>     exitCode?: number | null,
>     id?: string | null
>   }[] | null,
>   sessionId?: string | null
> }[]
> ```

***

### process.resizePtySession

`toolbox.process.resizePtySession`

Resize a PTY session

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.toolbox.process.resizePtySession({
	sandbox_id: 'my-sandbox',
	sessionId: 'build-session',
	cols: 1,
	rows: 1,
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | PTY session ID |
| `cols` | `number` | Yes | — |
| `rows` | `number` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `active` | `boolean \| null` | No | — |
| `cols` | `number \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `cwd` | `string \| null` | No | — |
| `envs` | `Record<string, string> \| null` | No | — |
| `id` | `string \| null` | No | — |
| `lazyStart` | `boolean \| null` | No | Whether this session uses lazy start |
| `rows` | `number \| null` | No | — |

***

### process.sendInput

`toolbox.process.sendInput`

Send input to command

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.toolbox.process.sendInput({
	sandbox_id: 'my-sandbox',
	sessionId: 'build-session',
	commandId: 'cmd-1',
	data: 'example',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | Session ID |
| `commandId` | `string` | Yes | Command ID |
| `data` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### process.sessionExecuteCommand

`toolbox.process.sessionExecuteCommand`

Execute command in session

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.toolbox.process.sessionExecuteCommand({ sandbox_id: 'my-sandbox', sessionId: 'build-session', command: 'uname -a' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |
| `sessionId` | `string` | Yes | Session ID |
| `async` | `boolean` | No | — |
| `command` | `string` | Yes | — |
| `runAsync` | `boolean` | No | — |
| `suppressInputEcho` | `boolean` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `cmdId` | `string \| null` | No | — |
| `exitCode` | `number \| null` | No | — |
| `output` | `string \| null` | No | — |
| `stderr` | `string \| null` | No | — |
| `stdout` | `string \| null` | No | — |

***

### system.getSystemMetrics

`toolbox.system.getSystemMetrics`

Get sandbox resource metrics

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.toolbox.system.getSystemMetrics({ sandbox_id: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | The sandbox id or name. The plugin reads its toolbox proxy URL first. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `cpuCount` | `number \| null` | No | — |
| `cpuUsedPct` | `number \| null` | No | — |
| `diskFree` | `number \| null` | No | — |
| `diskTotal` | `number \| null` | No | — |
| `diskUsed` | `number \| null` | No | — |
| `memCache` | `number \| null` | No | — |
| `memTotal` | `number \| null` | No | — |
| `memUsed` | `number \| null` | No | — |
| `timestamp` | `string \| null` | No | — |
| `timestampUnix` | `number \| null` | No | — |

***

## Volumes

### create

`volumes.create`

Create a new volume

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.volumes.create({ name: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Volume ID |
| `name` | `string \| null` | No | Volume name |
| `organizationId` | `string \| null` | No | Organization ID |
| `state` | `string \| null` | No | Volume state |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `updatedAt` | `string \| null` | No | Last update timestamp |
| `lastUsedAt` | `string \| null \| null` | No | Last used timestamp |
| `errorReason` | `string \| null \| null` | No | The error reason of the volume |

***

### delete

`volumes.delete`

Delete volume

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.volumes.delete({ volumeId: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `volumeId` | `string` | Yes | ID of the volume |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### get

`volumes.get`

Get volume details

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.volumes.get({ volumeId: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `volumeId` | `string` | Yes | ID of the volume |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Volume ID |
| `name` | `string \| null` | No | Volume name |
| `organizationId` | `string \| null` | No | Organization ID |
| `state` | `string \| null` | No | Volume state |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `updatedAt` | `string \| null` | No | Last update timestamp |
| `lastUsedAt` | `string \| null \| null` | No | Last used timestamp |
| `errorReason` | `string \| null \| null` | No | The error reason of the volume |

***

### getByName

`volumes.getByName`

Get volume details by name

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.volumes.getByName({ name: 'my-sandbox' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `name` | `string` | Yes | Name of the volume |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | Volume ID |
| `name` | `string \| null` | No | Volume name |
| `organizationId` | `string \| null` | No | Organization ID |
| `state` | `string \| null` | No | Volume state |
| `createdAt` | `string \| null` | No | Creation timestamp |
| `updatedAt` | `string \| null` | No | Last update timestamp |
| `lastUsedAt` | `string \| null \| null` | No | Last used timestamp |
| `errorReason` | `string \| null \| null` | No | The error reason of the volume |

***

### list

`volumes.list`

List all volumes

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.volumes.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `includeDeleted` | `boolean` | No | Include deleted volumes in the response |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   organizationId?: string | null,
>   state?: string | null,
>   createdAt?: string | null,
>   updatedAt?: string | null,
>   lastUsedAt?: string | null | null,
>   errorReason?: string | null | null
> }[]
> ```

***

## Warm Pools

### create

`warmPools.create`

Create a warm pool

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.warmPools.create({ pool: 1, snapshot: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `snapshot` | `string` | Yes | The snapshot (id or name) to keep warm sandboxes for. A pool only serves sandbox creates that use this snapshot with the default OS user and no custom env, volumes or secrets. |
| `pool` | `number` | Yes | Number of warm sandboxes to keep ready (capped by the organization quota) |
| `target` | `string` | No | Target region for the warm pool. Defaults to the organization default region. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `organizationId` | `string \| null` | No | — |
| `snapshot` | `string \| null` | No | — |
| `target` | `string \| null` | No | — |
| `pool` | `number \| null` | No | Desired number of warm sandboxes |
| `currentSize` | `number \| null` | No | Current number of ready warm sandboxes in the pool |
| `cpu` | `number \| null` | No | — |
| `mem` | `number \| null` | No | — |
| `disk` | `number \| null` | No | — |
| `osUser` | `string \| null` | No | — |
| `env` | `Record<string, string> \| null` | No | — |
| `errorReason` | `string \| null \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |

***

### delete

`warmPools.delete`

Delete a warm pool

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.daytona.api.warmPools.delete({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Warm pool ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | Daytona accepted the call; it answered with no body. |

***

### list

`warmPools.list`

List warm pools for the organization

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.warmPools.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   organizationId?: string | null,
>   snapshot?: string | null,
>   target?: string | null,
>   pool?: number | null,
>   currentSize?: number | null,
>   cpu?: number | null,
>   mem?: number | null,
>   disk?: number | null,
>   osUser?: string | null,
>   env?: Record<string, string> | null,
>   errorReason?: string | null | null,
>   createdAt?: string | null,
>   updatedAt?: string | null
> }[]
> ```

***

### update

`warmPools.update`

Update a warm pool size

**Risk:** `destructive`

```ts theme={null}
await corsair.daytona.api.warmPools.update({ id: '7a1c3e5f-2b4d-4e6a-8c0b-9d1f3a5c7e9b', pool: 1 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `id` | `string` | Yes | Warm pool ID |
| `pool` | `number` | Yes | New desired number of warm sandboxes (0 drains the pool) |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `organizationId` | `string \| null` | No | — |
| `snapshot` | `string \| null` | No | — |
| `target` | `string \| null` | No | — |
| `pool` | `number \| null` | No | Desired number of warm sandboxes |
| `currentSize` | `number \| null` | No | Current number of ready warm sandboxes in the pool |
| `cpu` | `number \| null` | No | — |
| `mem` | `number \| null` | No | — |
| `disk` | `number \| null` | No | — |
| `osUser` | `string \| null` | No | — |
| `env` | `Record<string, string> \| null` | No | — |
| `errorReason` | `string \| null \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `updatedAt` | `string \| null` | No | — |

***

## Webhooks

### getAppPortalAccess

`webhooks.getAppPortalAccess`

Get Svix Consumer App Portal access for an organization

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.webhooks.getAppPortalAccess({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `organizationId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `token` | `string \| null` | No | The authentication token for the Svix consumer app portal |
| `url` | `string \| null` | No | The URL to the webhook app portal |

***

### getInitializationStatus

`webhooks.getInitializationStatus`

Get webhook initialization status for an organization

**Risk:** `read`

```ts theme={null}
await corsair.daytona.api.webhooks.getInitializationStatus({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `organizationId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string \| null` | No | Organization ID |
| `svixApplicationId` | `string \| null \| null` | No | The ID of the Svix application |
| `lastError` | `string \| null \| null` | No | The error reason for the last initialization attempt |
| `retryCount` | `number \| null` | No | The number of times the initialization has been attempted |
| `createdAt` | `string \| null` | No | When the webhook initialization was created |
| `updatedAt` | `string \| null` | No | When the webhook initialization was last updated |

***

### initialize

`webhooks.initialize`

Initialize webhooks for an organization

**Risk:** `write`

```ts theme={null}
await corsair.daytona.api.webhooks.initialize({ organizationId: 'b3c1f0a2-7e4d-4c9b-8a6f-1d2e3f4a5b6c' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `organization_id` | `string` | No | X-Daytona-Organization-ID header: the organization to act in. Left out, the plugin sends its organizationId option, if set; a key belongs to one organization anyway. |
| `organizationId` | `string` | Yes | Organization ID |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `organizationId` | `string \| null` | No | Organization ID |
| `svixApplicationId` | `string \| null \| null` | No | The ID of the Svix application |
| `lastError` | `string \| null \| null` | No | The error reason for the last initialization attempt |
| `retryCount` | `number \| null` | No | The number of times the initialization has been attempted |
| `createdAt` | `string \| null` | No | When the webhook initialization was created |
| `updatedAt` | `string \| null` | No | When the webhook initialization was last updated |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.