Home
Daytona
Daytona Api Key Structure
Daytona Api Key Structure
JSON Structure for the Daytona Api Key resource. Derived from the official Daytona OpenAPI specification at https://www.daytona.io/docs/openapi.json.
Type: object
Properties: 5
Required: 5
AI Agents Artificial Intelligence Cloud Code Execution Computer Use Developer Tools Infrastructure Open Source Sandbox Secure Execution
daytona-api-key is a JSON Structure definition published by Daytona, describing 5 properties, of which 5 are required. It conforms to the https://json-structure.org/v0.1/schema meta-schema.
Properties
name
value
createdAt
permissions
expiresAt
Meta-schema: https://json-structure.org/v0.1/schema
JSON Structure
{
"$schema": "https://json-structure.org/v0.1/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/daytona-io/refs/heads/main/json-structure/daytona-api-key-structure.json",
"name": "daytona-api-key",
"description": "JSON Structure for the Daytona Api Key resource. Derived from the official Daytona OpenAPI specification at https://www.daytona.io/docs/openapi.json.",
"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"
]
}