Daytona · Schema

ApiKeyResponse

AIAgentsArtificial IntelligenceCloudCode ExecutionComputer UseDeveloper ToolsInfrastructureOpen SourceSandboxSecure Execution

Properties

Name Type Description
name string The name of the API key
value string The API key value
createdAt string When the API key was created
permissions array The list of organization resource permissions assigned to the API key
expiresAt string When the API key expires
View JSON Schema on GitHub

JSON Schema

daytona-api-key-schema.json Raw ↑
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the API key",
      "example": "My API Key"
    },
    "value": {
      "type": "string",
      "description": "The API key value",
      "example": "bb_sk_1234567890abcdef"
    },
    "createdAt": {
      "format": "date-time",
      "type": "string",
      "description": "When the API key was created",
      "example": "2024-03-14T12:00:00.000Z"
    },
    "permissions": {
      "type": "array",
      "description": "The list of organization resource permissions assigned to the API key",
      "items": {
        "type": "string",
        "enum": [
          "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"
        ]
      }
    },
    "expiresAt": {
      "format": "date-time",
      "type": "string",
      "description": "When the API key expires",
      "example": "2025-06-09T12:00:00.000Z",
      "nullable": true
    }
  },
  "required": [
    "name",
    "value",
    "createdAt",
    "permissions",
    "expiresAt"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/daytona-io/refs/heads/main/json-schema/daytona-api-key-schema.json",
  "title": "ApiKeyResponse"
}