{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codesandbox/json-schema/codesandbox-token-create-request-schema.json",
  "title": "TokenCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codesandbox-token-api-openapi.yml#/components/schemas/TokenCreateRequest",
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "maxLength": 255,
      "description": "Description of this token."
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "UTC Timestamp until when this token is valid."
    },
    "scopes": {
      "type": "array",
      "items": {
        "enum": [
          "sandbox_create",
          "sandbox_edit_code",
          "sandbox_read",
          "vm_manage"
        ]
      },
      "description": "Which scopes to grant this token."
    },
    "default_version": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "API Version to use, formatted as YYYY-MM-DD."
    }
  }
}