Sign Up

Organizations

GET/organizations/invitations
AuthorizationBearer <token>

API Key access

In: header

Response Body

application/json

curl -X GET "https://example.com/organizations/invitations"
[  {    "id": "string",    "email": "string",    "invitedBy": "string",    "organizationId": "string",    "organizationName": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "status": "pending",    "role": "owner",    "assignedRoles": [      {        "id": "string",        "name": "string",        "description": "string",        "permissions": [          "write:registries"        ],        "isGlobal": true,        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }]
GET/organizations/invitations/count
AuthorizationBearer <token>

API Key access

In: header

Response Body

application/json

curl -X GET "https://example.com/organizations/invitations/count"
0
POST/organizations/invitations/{invitationId}/accept
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

invitationId*string

Invitation ID

Response Body

application/json

curl -X POST "https://example.com/organizations/invitations/string/accept"
{  "id": "string",  "email": "string",  "invitedBy": "string",  "organizationId": "string",  "organizationName": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "status": "pending",  "role": "owner",  "assignedRoles": [    {      "id": "string",      "name": "string",      "description": "string",      "permissions": [        "write:registries"      ],      "isGlobal": true,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
POST/organizations/invitations/{invitationId}/decline
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

invitationId*string

Invitation ID

Response Body

curl -X POST "https://example.com/organizations/invitations/string/decline"
Empty
GET/organizations
AuthorizationBearer <token>

API Key access

In: header

Response Body

application/json

curl -X GET "https://example.com/organizations"
[  {    "id": "string",    "name": "string",    "createdBy": "string",    "personal": true,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "suspended": true,    "suspendedAt": "2019-08-24T14:15:22Z",    "suspensionReason": "string",    "suspendedUntil": "2019-08-24T14:15:22Z",    "suspensionCleanupGracePeriodHours": 0,    "maxCpuPerSandbox": 0,    "maxMemoryPerSandbox": 0,    "maxDiskPerSandbox": 0,    "secretQuota": 0,    "maxSecretsPerSandbox": 0,    "snapshotDeactivationTimeoutMinutes": 20160,    "sandboxLimitedNetworkEgress": true,    "previewWarningEnabled": true,    "ssoEnabled": true,    "defaultRegionId": "string",    "authenticatedRateLimit": 0,    "sandboxCreateRateLimit": 0,    "sandboxLifecycleRateLimit": 0,    "experimentalConfig": {},    "otelConfig": {      "endpoint": "string",      "headers": {        "x-api-key": "my-api-key"      },      "organizationId": "string"    },    "authenticatedRateLimitTtlSeconds": 0,    "sandboxCreateRateLimitTtlSeconds": 0,    "sandboxLifecycleRateLimitTtlSeconds": 0  }]
POST/organizations
AuthorizationBearer <token>

API Key access

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/organizations" \  -H "Content-Type: application/json" \  -d '{    "name": "My Organization",    "defaultRegionId": "us"  }'
{  "id": "string",  "name": "string",  "createdBy": "string",  "personal": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "suspended": true,  "suspendedAt": "2019-08-24T14:15:22Z",  "suspensionReason": "string",  "suspendedUntil": "2019-08-24T14:15:22Z",  "suspensionCleanupGracePeriodHours": 0,  "maxCpuPerSandbox": 0,  "maxMemoryPerSandbox": 0,  "maxDiskPerSandbox": 0,  "secretQuota": 0,  "maxSecretsPerSandbox": 0,  "snapshotDeactivationTimeoutMinutes": 20160,  "sandboxLimitedNetworkEgress": true,  "previewWarningEnabled": true,  "ssoEnabled": true,  "defaultRegionId": "string",  "authenticatedRateLimit": 0,  "sandboxCreateRateLimit": 0,  "sandboxLifecycleRateLimit": 0,  "experimentalConfig": {},  "otelConfig": {    "endpoint": "string",    "headers": {      "x-api-key": "my-api-key"    },    "organizationId": "string"  },  "authenticatedRateLimitTtlSeconds": 0,  "sandboxCreateRateLimitTtlSeconds": 0,  "sandboxLifecycleRateLimitTtlSeconds": 0}
PATCH/organizations/{organizationId}/default-region
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/organizations/string/default-region" \  -H "Content-Type: application/json" \  -d '{    "defaultRegionId": "us"  }'
Empty
GET/organizations/{organizationId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string"
{  "id": "string",  "name": "string",  "createdBy": "string",  "personal": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "suspended": true,  "suspendedAt": "2019-08-24T14:15:22Z",  "suspensionReason": "string",  "suspendedUntil": "2019-08-24T14:15:22Z",  "suspensionCleanupGracePeriodHours": 0,  "maxCpuPerSandbox": 0,  "maxMemoryPerSandbox": 0,  "maxDiskPerSandbox": 0,  "secretQuota": 0,  "maxSecretsPerSandbox": 0,  "snapshotDeactivationTimeoutMinutes": 20160,  "sandboxLimitedNetworkEgress": true,  "previewWarningEnabled": true,  "ssoEnabled": true,  "defaultRegionId": "string",  "authenticatedRateLimit": 0,  "sandboxCreateRateLimit": 0,  "sandboxLifecycleRateLimit": 0,  "experimentalConfig": {},  "otelConfig": {    "endpoint": "string",    "headers": {      "x-api-key": "my-api-key"    },    "organizationId": "string"  },  "authenticatedRateLimitTtlSeconds": 0,  "sandboxCreateRateLimitTtlSeconds": 0,  "sandboxLifecycleRateLimitTtlSeconds": 0}
DELETE/organizations/{organizationId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

curl -X DELETE "https://example.com/organizations/string"
Empty
GET/organizations/{organizationId}/usage
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/usage"
{  "regionUsage": [    {      "regionId": "string",      "sandboxClass": "linux-vm",      "totalCpuQuota": 0,      "currentCpuUsage": 0,      "totalMemoryQuota": 0,      "currentMemoryUsage": 0,      "totalDiskQuota": 0,      "currentDiskUsage": 0,      "totalGpuQuota": 0,      "currentGpuUsage": 0,      "allowedGpuTypes": [        "H100"      ],      "maxCpuPerSandbox": 0,      "maxMemoryPerSandbox": 0,      "maxDiskPerSandbox": 0,      "maxDiskPerNonEphemeralSandbox": 0,      "maxCpuPerGpu": 0,      "maxMemoryPerGpu": 0,      "maxDiskPerGpu": 0    }  ],  "totalSnapshotQuota": 0,  "currentSnapshotUsage": 0,  "totalVolumeQuota": 0,  "currentVolumeUsage": 0}
GET/organizations/{organizationId}/available-sandbox-classes
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/available-sandbox-classes"
[  {    "regionId": "string",    "sandboxClass": "linux-vm",    "gpuAvailable": true,    "allowedGpuTypes": [      "H100"    ]  }]
PATCH/organizations/{organizationId}/quota
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/organizations/string/quota" \  -H "Content-Type: application/json" \  -d '{    "maxCpuPerSandbox": 0,    "maxMemoryPerSandbox": 0,    "maxDiskPerSandbox": 0,    "snapshotQuota": 0,    "maxSnapshotSize": 0,    "volumeQuota": 0,    "secretQuota": 0,    "maxSecretsPerSandbox": 0,    "authenticatedRateLimit": 0,    "sandboxCreateRateLimit": 0,    "sandboxLifecycleRateLimit": 0,    "authenticatedRateLimitTtlSeconds": 0,    "sandboxCreateRateLimitTtlSeconds": 0,    "sandboxLifecycleRateLimitTtlSeconds": 0,    "snapshotDeactivationTimeoutMinutes": 0,    "maxConcurrentSnapshotProcessing": 0  }'
Empty
PATCH/organizations/{organizationId}/quota/{regionId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

regionId*string

ID of the region where the updated quota will be applied

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/organizations/string/quota/string" \  -H "Content-Type: application/json" \  -d '{    "totalCpuQuota": 0,    "totalMemoryQuota": 0,    "totalDiskQuota": 0,    "totalGpuQuota": 0  }'
Empty
POST/organizations/{organizationId}/leave
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

curl -X POST "https://example.com/organizations/string/leave"
Empty
POST/organizations/{organizationId}/suspend
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/organizations/string/suspend" \  -H "Content-Type: application/json" \  -d '{    "reason": "string",    "until": "2019-08-24T14:15:22Z"  }'
Empty
POST/organizations/{organizationId}/unsuspend
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

curl -X POST "https://example.com/organizations/string/unsuspend"
Empty
GET/organizations/otel-config/by-sandbox-auth-token/{authToken}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

authToken*string

Sandbox Auth Token

Response Body

application/json

curl -X GET "https://example.com/organizations/otel-config/by-sandbox-auth-token/string"
{  "endpoint": "string",  "headers": {    "x-api-key": "my-api-key"  },  "organizationId": "string"}
GET/organizations/{organizationId}/otel-config
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/otel-config"
{  "endpoint": "string",  "headers": {    "x-api-key": "my-api-key"  },  "organizationId": "string"}
DELETE/organizations/{organizationId}/otel-config
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

curl -X DELETE "https://example.com/organizations/string/otel-config"
Empty
PUT/organizations/{organizationId}/otel-config
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PUT "https://example.com/organizations/string/otel-config" \  -H "Content-Type: application/json" \  -d '{    "endpoint": "string"  }'
Empty
POST/organizations/{organizationId}/sandbox-default-limited-network-egress
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/organizations/string/sandbox-default-limited-network-egress" \  -H "Content-Type: application/json" \  -d '{    "sandboxDefaultLimitedNetworkEgress": true  }'
Empty
POST/organizations/{organizationId}/preview-warning
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/organizations/string/preview-warning" \  -H "Content-Type: application/json" \  -d '{    "previewWarningEnabled": true  }'
Empty
POST/organizations/{organizationId}/sso-enabled
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/organizations/string/sso-enabled" \  -H "Content-Type: application/json" \  -d '{    "ssoEnabled": true  }'
Empty
PUT/organizations/{organizationId}/experimental-config
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

Experimental configuration as a JSON object. Set to null to clear the configuration.

TypeScript Definitions

Use the request body type in TypeScript.

body?unknown

Response Body

curl -X PUT "https://example.com/organizations/string/experimental-config" \  -H "Content-Type: application/json" \  -d '{    "otel": {      "endpoint": "http://otel-collector:4317",      "headers": {        "api-key": "XXX"      }    }  }'
Empty
GET/organizations/{organizationId}/roles
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/roles"
[  {    "id": "string",    "name": "string",    "description": "string",    "permissions": [      "write:registries"    ],    "isGlobal": true,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }]
POST/organizations/{organizationId}/roles
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/organizations/string/roles" \  -H "Content-Type: application/json" \  -d '{    "name": "Maintainer",    "description": "Can manage all resources",    "permissions": [      "write:registries"    ]  }'
{  "id": "string",  "name": "string",  "description": "string",  "permissions": [    "write:registries"  ],  "isGlobal": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
DELETE/organizations/{organizationId}/roles/{roleId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

roleId*string

Role ID

Response Body

curl -X DELETE "https://example.com/organizations/string/roles/string"
Empty
PUT/organizations/{organizationId}/roles/{roleId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

roleId*string

Role ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/organizations/string/roles/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Maintainer",    "description": "Can manage all resources",    "permissions": [      "write:registries"    ]  }'
{  "id": "string",  "name": "string",  "description": "string",  "permissions": [    "write:registries"  ],  "isGlobal": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
GET/organizations/{organizationId}/users
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/users"
[  {    "userId": "string",    "organizationId": "string",    "name": "string",    "email": "string",    "role": "owner",    "assignedRoles": [      {        "id": "string",        "name": "string",        "description": "string",        "permissions": [          "write:registries"        ],        "isGlobal": true,        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }]
POST/organizations/{organizationId}/users/{userId}/access
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

userId*string

User ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/organizations/string/users/string/access" \  -H "Content-Type: application/json" \  -d '{    "role": "owner",    "assignedRoleIds": [      "00000000-0000-0000-0000-000000000001"    ]  }'
{  "userId": "string",  "organizationId": "string",  "name": "string",  "email": "string",  "role": "owner",  "assignedRoles": [    {      "id": "string",      "name": "string",      "description": "string",      "permissions": [        "write:registries"      ],      "isGlobal": true,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
DELETE/organizations/{organizationId}/users/{userId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

userId*string

User ID

Response Body

curl -X DELETE "https://example.com/organizations/string/users/string"
Empty
GET/organizations/{organizationId}/invitations
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/invitations"
[  {    "id": "string",    "email": "string",    "invitedBy": "string",    "organizationId": "string",    "organizationName": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "status": "pending",    "role": "owner",    "assignedRoles": [      {        "id": "string",        "name": "string",        "description": "string",        "permissions": [          "write:registries"        ],        "isGlobal": true,        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }]
POST/organizations/{organizationId}/invitations
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/organizations/string/invitations" \  -H "Content-Type: application/json" \  -d '{    "email": "mail@example.com",    "role": "owner",    "assignedRoleIds": [      "00000000-0000-0000-0000-000000000001"    ]  }'
{  "id": "string",  "email": "string",  "invitedBy": "string",  "organizationId": "string",  "organizationName": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "status": "pending",  "role": "owner",  "assignedRoles": [    {      "id": "string",      "name": "string",      "description": "string",      "permissions": [        "write:registries"      ],      "isGlobal": true,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
PUT/organizations/{organizationId}/invitations/{invitationId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

invitationId*string

Invitation ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/organizations/string/invitations/string" \  -H "Content-Type: application/json" \  -d '{    "role": "owner",    "assignedRoleIds": [      "string"    ]  }'
{  "id": "string",  "email": "string",  "invitedBy": "string",  "organizationId": "string",  "organizationName": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "status": "pending",  "role": "owner",  "assignedRoles": [    {      "id": "string",      "name": "string",      "description": "string",      "permissions": [        "write:registries"      ],      "isGlobal": true,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
POST/organizations/{organizationId}/invitations/{invitationId}/cancel
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

invitationId*string

Invitation ID

Response Body

curl -X POST "https://example.com/organizations/string/invitations/string/cancel"
Empty
GET/regions
AuthorizationBearer <token>

API Key access

In: header

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/regions"
[  {    "id": "123456789012",    "name": "us-east-1",    "organizationId": "123e4567-e89b-12d3-a456-426614174000",    "regionType": "shared",    "createdAt": "2023-01-01T00:00:00.000Z",    "updatedAt": "2023-01-01T00:00:00.000Z",    "proxyUrl": "https://proxy.example.com",    "sshGatewayUrl": "http://ssh-gateway.example.com",    "snapshotManagerUrl": "http://snapshot-manager.example.com",    "otelEndpoint": "https://otel-collector.example.com:4318"  }]
POST/regions
AuthorizationBearer <token>

API Key access

In: header

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/regions" \  -H "Content-Type: application/json" \  -d '{    "name": "us-east-1"  }'
{  "id": "region_12345",  "proxyApiKey": "proxy-api-key-xyz",  "sshGatewayApiKey": "ssh-gateway-api-key-abc",  "snapshotManagerUsername": "daytona",  "snapshotManagerPassword": "string"}
GET/regions/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

Region ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/regions/string"
{  "id": "123456789012",  "name": "us-east-1",  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "regionType": "shared",  "createdAt": "2023-01-01T00:00:00.000Z",  "updatedAt": "2023-01-01T00:00:00.000Z",  "proxyUrl": "https://proxy.example.com",  "sshGatewayUrl": "http://ssh-gateway.example.com",  "snapshotManagerUrl": "http://snapshot-manager.example.com",  "otelEndpoint": "https://otel-collector.example.com:4318"}
PATCH/regions/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

Region ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/regions/string" \  -H "Content-Type: application/json" \  -d '{}'
Empty
DELETE/regions/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

Region ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

curl -X DELETE "https://example.com/regions/string"
Empty
POST/regions/{id}/regenerate-proxy-api-key
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

Region ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X POST "https://example.com/regions/string/regenerate-proxy-api-key"
{  "apiKey": "api-key-xyz123"}
POST/regions/{id}/regenerate-ssh-gateway-api-key
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

Region ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X POST "https://example.com/regions/string/regenerate-ssh-gateway-api-key"
{  "apiKey": "api-key-xyz123"}
POST/regions/{id}/regenerate-snapshot-manager-credentials
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

Region ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X POST "https://example.com/regions/string/regenerate-snapshot-manager-credentials"
{  "username": "daytona",  "password": "string"}
GET/organizations/{organizationId}/identity-providers
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/identity-providers"
[  {    "id": "123e4567-e89b-12d3-a456-426614174000",    "organizationId": "123e4567-e89b-12d3-a456-426614174000",    "name": "Company Okta",    "oidcConfig": {      "issuerUrl": "https://company.okta.com",      "clientId": "abc123",      "scope": "openid email profile"    },    "emailDomains": [      "company.com",      "corp.company.com"    ],    "allowAnyDomain": false,    "trustEmailVerified": false,    "defaultAssignedRoleIds": [      "00000000-0000-0000-0000-000000000001"    ],    "enabled": true,    "createdAt": "2025-01-01T00:00:00.000Z",    "updatedAt": "2025-01-01T00:00:00.000Z"  }]
POST/organizations/{organizationId}/identity-providers
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/organizations/string/identity-providers" \  -H "Content-Type: application/json" \  -d '{    "name": "Company Okta",    "oidcConfig": {      "issuerUrl": "https://company.okta.com",      "clientId": "abc123",      "clientSecret": "secret123"    },    "emailDomains": [      "company.com",      "corp.company.com"    ]  }'
{  "id": "123e4567-e89b-12d3-a456-426614174000",  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "name": "Company Okta",  "oidcConfig": {    "issuerUrl": "https://company.okta.com",    "clientId": "abc123",    "scope": "openid email profile"  },  "emailDomains": [    "company.com",    "corp.company.com"  ],  "allowAnyDomain": false,  "trustEmailVerified": false,  "defaultAssignedRoleIds": [    "00000000-0000-0000-0000-000000000001"  ],  "enabled": true,  "createdAt": "2025-01-01T00:00:00.000Z",  "updatedAt": "2025-01-01T00:00:00.000Z"}
GET/organizations/{organizationId}/identity-providers/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

id*string

Identity provider ID

Response Body

application/json

curl -X GET "https://example.com/organizations/string/identity-providers/string"
{  "id": "123e4567-e89b-12d3-a456-426614174000",  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "name": "Company Okta",  "oidcConfig": {    "issuerUrl": "https://company.okta.com",    "clientId": "abc123",    "scope": "openid email profile"  },  "emailDomains": [    "company.com",    "corp.company.com"  ],  "allowAnyDomain": false,  "trustEmailVerified": false,  "defaultAssignedRoleIds": [    "00000000-0000-0000-0000-000000000001"  ],  "enabled": true,  "createdAt": "2025-01-01T00:00:00.000Z",  "updatedAt": "2025-01-01T00:00:00.000Z"}
PATCH/organizations/{organizationId}/identity-providers/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

id*string

Identity provider ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/organizations/string/identity-providers/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "123e4567-e89b-12d3-a456-426614174000",  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "name": "Company Okta",  "oidcConfig": {    "issuerUrl": "https://company.okta.com",    "clientId": "abc123",    "scope": "openid email profile"  },  "emailDomains": [    "company.com",    "corp.company.com"  ],  "allowAnyDomain": false,  "trustEmailVerified": false,  "defaultAssignedRoleIds": [    "00000000-0000-0000-0000-000000000001"  ],  "enabled": true,  "createdAt": "2025-01-01T00:00:00.000Z",  "updatedAt": "2025-01-01T00:00:00.000Z"}
DELETE/organizations/{organizationId}/identity-providers/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

id*string

Identity provider ID

Response Body

curl -X DELETE "https://example.com/organizations/string/identity-providers/string"
Empty
POST/organizations/{organizationId}/identity-providers/test-connection
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

organizationId*string

Organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/organizations/string/identity-providers/test-connection" \  -H "Content-Type: application/json" \  -d '{    "issuerUrl": "https://company.okta.com"  }'
{  "success": true,  "issuer": "https://company.okta.com",  "error": "string"}