The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
openapi: 3.0.0
info:
contact:
email: [email protected]
name: BoxLite Platforms Inc.
url: https://www.boxlite.io
description: BoxLite AI platform API Docs
title: BoxLite
version: "1.0"
servers:
- url: http://localhost:3000
paths:
/box/paginated:
get:
operationId: listBoxesPaginated
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Page number of the results
explode: true
in: query
name: page
required: false
schema:
default: 1
minimum: 1
type: number
style: form
- description: Number of results per page
explode: true
in: query
name: limit
required: false
schema:
default: 100
maximum: 200
minimum: 1
type: number
style: form
- description: Filter by partial Box ID or name match
explode: true
in: query
name: id
required: false
schema:
example: abc123
type: string
style: form
- description: Filter by partial name match
explode: true
in: query
name: name
required: false
schema:
example: abc123
type: string
style: form
- description: JSON encoded labels to filter by
explode: true
in: query
name: labels
required: false
schema:
example: "{\"label1\": \"value1\", \"label2\": \"value2\"}"
type: string
style: form
- description: Include results with errored state and deleted desired state
explode: true
in: query
name: includeErroredDeleted
required: false
schema:
default: false
type: boolean
style: form
- description: List of states to filter by
explode: true
in: query
name: states
required: false
schema:
items:
enum:
- creating
- restoring
- destroying
- started
- stopped
- starting
- stopping
- error
- unknown
- archived
- archiving
- resizing
type: string
type: array
style: form
- description: List of regions to filter by
explode: true
in: query
name: regions
required: false
schema:
items:
type: string
type: array
style: form
- description: Minimum CPU
explode: true
in: query
name: minCpu
required: false
schema:
minimum: 0.01
type: number
style: form
- description: Maximum CPU
explode: true
in: query
name: maxCpu
required: false
schema:
minimum: 0.01
type: number
style: form
- description: Minimum memory in GiB
explode: true
in: query
name: minMemoryGiB
required: false
schema:
minimum: 0.125
type: number
style: form
- description: Maximum memory in GiB
explode: true
in: query
name: maxMemoryGiB
required: false
schema:
minimum: 0.125
type: number
style: form
- description: Minimum disk space in GiB
explode: true
in: query
name: minDiskGiB
required: false
schema:
minimum: 1
type: number
style: form
- description: Maximum disk space in GiB
explode: true
in: query
name: maxDiskGiB
required: false
schema:
minimum: 1
type: number
style: form
- description: Include items with last event after this timestamp
explode: true
in: query
name: lastEventAfter
required: false
schema:
example: 2024-01-01T00:00:00Z
format: date-time
type: string
style: form
- description: Include items with last event before this timestamp
explode: true
in: query
name: lastEventBefore
required: false
schema:
example: 2024-12-31T23:59:59Z
format: date-time
type: string
style: form
- description: Field to sort by
explode: true
in: query
name: sort
required: false
schema:
default: createdAt
enum:
- id
- name
- state
- region
- updatedAt
- createdAt
type: string
style: form
- description: Direction to sort by
explode: true
in: query
name: order
required: false
schema:
default: desc
enum:
- asc
- desc
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedBoxes"
description: Paginated list of all boxes
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List all boxes paginated
tags:
- box
/box/for-runner:
get:
operationId: getBoxesForRunner
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Comma-separated list of box states to filter by
explode: true
in: query
name: states
required: false
schema:
type: string
style: form
- description: Skip boxes where state differs from desired state
explode: true
in: query
name: skipReconcilingBoxes
required: false
schema:
type: boolean
style: form
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/Box"
type: array
description: List of boxes for the authenticated runner
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get boxes for the authenticated runner
tags:
- box
/box/{boxIdOrName}:
get:
operationId: getBox
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: ID or name of the box
explode: false
in: path
name: boxIdOrName
required: true
schema:
type: string
style: simple
- description: Include verbose output
explode: true
in: query
name: verbose
required: false
schema:
type: boolean
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Box"
description: Box details
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get box details
tags:
- box
/box/{boxIdOrName}/recover:
post:
operationId: recoverBox
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: ID or name of the box
explode: false
in: path
name: boxIdOrName
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Box"
description: Recovery initiated
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Recover box from error state
tags:
- box
/box/{boxId}/state:
put:
operationId: updateBoxState
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: ID of the box
explode: false
in: path
name: boxId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateBoxStateDto"
required: true
responses:
"200":
description: Box state has been successfully updated
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update box state
tags:
- box
/box/{boxId}/last-activity:
post:
operationId: updateLastActivity
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: ID of the box
explode: false
in: path
name: boxId
required: true
schema:
type: string
style: simple
responses:
"201":
description: Last activity has been updated
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update box last activity
tags:
- box
/box/{boxIdOrName}/attach-tickets:
post:
operationId: createAttachTicket
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: ID or name of the box
explode: false
in: path
name: boxIdOrName
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateAttachTicket"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AttachTicket"
description: A single-use ticket for one attach upgrade to the execution
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get a one-time ticket for the attach WebSocket
tags:
- box
/runners:
get:
operationId: listRunners
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/Runner"
type: array
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List all runners
tags:
- runners
post:
operationId: createRunner
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRunner"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRunnerResponse"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create runner
tags:
- runners
/runners/me:
get:
operationId: getInfoForAuthenticatedRunner
parameters: []
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/RunnerFull"
description: Runner info
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get info for authenticated runner
tags:
- runners
/runners/by-box/{boxId}:
get:
operationId: getRunnerByBoxId
parameters:
- explode: false
in: path
name: boxId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/RunnerFull"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get runner by box ID
tags:
- runners
/runners/{id}:
delete:
operationId: deleteRunner
parameters:
- description: Runner ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"204":
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete runner
tags:
- runners
get:
operationId: getRunnerById
parameters:
- description: Runner ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Runner"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get runner by ID
tags:
- runners
/runners/{id}/full:
get:
operationId: getRunnerFullById
parameters:
- description: Runner ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/RunnerFull"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get runner by ID
tags:
- runners
/runners/{id}/scheduling:
patch:
operationId: updateRunnerScheduling
parameters:
- description: Runner ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Runner"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update runner scheduling status
tags:
- runners
/runners/{id}/draining:
patch:
operationId: updateRunnerDraining
parameters:
- description: Runner ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Runner"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update runner draining status
tags:
- runners
/runners/healthcheck:
post:
description: Endpoint for version 2 runners to send healthcheck and metrics.
Updates lastChecked timestamp and runner metrics.
operationId: runnerHealthcheck
parameters: []
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/RunnerHealthcheck"
required: true
responses:
"200":
description: Healthcheck received
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Runner healthcheck
tags:
- runners
/preview/{boxId}/inbound:
get:
operationId: getBoxInboundMode
parameters:
- description: ID of the box
explode: false
in: path
name: boxId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
enum:
- enabled
- disabled
type: string
description: "Inbound mode of the box: `enabled` permits access subject\
\ to each tunnel policy; `disabled` rejects all callers"
summary: Read the inbound mode of a box
tags:
- preview
/preview/{boxId}/access:
get:
operationId: hasBoxAccess
parameters:
- explode: false
in: path
name: boxId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
type: boolean
description: User access status to the box
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Check if user has access to the box
tags:
- preview
/volumes:
get:
operationId: listVolumes
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Include deleted volumes in the response
explode: true
in: query
name: includeDeleted
required: false
schema:
type: boolean
style: form
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/VolumeDto"
type: array
description: List of all volumes
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List all volumes
tags:
- volumes
post:
operationId: createVolume
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateVolume"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/VolumeDto"
description: The volume has been successfully created.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create a new volume
tags:
- volumes
/volumes/{volumeId}:
delete:
operationId: deleteVolume
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: ID of the volume
explode: false
in: path
name: volumeId
required: true
schema:
type: string
style: simple
responses:
"200":
description: Volume has been marked for deletion
"409":
description: Volume is in use by one or more boxes
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete volume
tags:
- volumes
get:
operationId: getVolume
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: ID of the volume
explode: false
in: path
name: volumeId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/VolumeDto"
description: Volume details
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get volume details
tags:
- volumes
/jobs:
get:
description: "Returns a paginated list of jobs for the runner, optionally filtered\
\ by status."
operationId: listJobs
parameters:
- description: Page number of the results
explode: true
in: query
name: page
required: false
schema:
default: 1
minimum: 1
type: number
style: form
- description: "Maximum number of jobs to return (default: 100, max: 500)"
explode: true
in: query
name: limit
required: false
schema:
default: 100
maximum: 200
minimum: 1
type: number
style: form
- description: Filter jobs by status
explode: true
in: query
name: status
required: false
schema:
$ref: "#/components/schemas/JobStatus"
style: form
- description: "Number of jobs to skip for pagination (default: 0)"
explode: true
in: query
name: offset
required: false
schema:
type: number
style: form
- description: List jobs in ascending ID order after this UUID. Start with the
nil UUID.
explode: true
in: query
name: afterId
required: false
schema:
format: uuid
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedJobs"
description: List of jobs for the runner
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List jobs for the runner
tags:
- jobs
/jobs/poll:
get:
description: "Long poll endpoint for runners to fetch pending jobs. Returns\
\ immediately if jobs are available, otherwise waits up to timeout seconds."
operationId: pollJobs
parameters:
- description: "Timeout in seconds for long polling (default: 30, max: 60)"
explode: true
in: query
name: timeout
required: false
schema:
type: number
style: form
- description: "Maximum number of jobs to return (default: 10, max: 100)"
explode: true
in: query
name: limit
required: false
schema:
type: number
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PollJobsResponse"
description: Returned jobs have been claimed as IN_PROGRESS. A replacement
runner can find them at startup with GET /jobs?status=IN_PROGRESS.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Long poll for jobs
tags:
- jobs
/jobs/{jobId}:
get:
operationId: getJob
parameters:
- description: ID of the job
explode: false
in: path
name: jobId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Job"
description: Job details
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get job details
tags:
- jobs
/jobs/{jobId}/status:
post:
operationId: updateJobStatus
parameters:
- description: ID of the job
explode: false
in: path
name: jobId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateJobStatus"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Job"
description: Job status updated successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update job status
tags:
- jobs
/admin/runner-cpu-incidents:
get:
operationId: adminListRunnerCpuIncidents
parameters:
- description: "Inclusive capture completion time, with timezone."
explode: true
in: query
name: from
required: true
schema:
format: date-time
type: string
style: form
- description: "Exclusive capture completion time, with timezone; must follow\
\ from."
explode: true
in: query
name: to
required: true
schema:
format: date-time
type: string
style: form
- description: "Maximum rows after per-Box maximum CPU-seconds selection, ordered\
\ by ID ascending."
explode: true
in: query
name: limit
required: false
schema:
default: 50
maximum: 200
minimum: 1
type: integer
style: form
- explode: true
in: query
name: runnerId
required: false
schema:
format: uuid
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/CpuIncidentListDto"
description: ""
security:
- bearer: []
summary: Query sustained runner CPU incidents by capture completion time range
tags:
- admin
/admin/runner-memory-incidents:
get:
operationId: adminListRunnerMemoryIncidents
parameters:
- description: "Inclusive host sample time, with timezone."
explode: true
in: query
name: from
required: true
schema:
format: date-time
type: string
style: form
- description: "Exclusive host sample time, after from."
explode: true
in: query
name: to
required: true
schema:
format: date-time
type: string
style: form
- description: "Maximum snapshots after per-Box maximum memory selection, ordered\
\ by ID ascending."
explode: true
in: query
name: limit
required: false
schema:
default: 50
maximum: 200
minimum: 1
type: integer
style: form
- explode: true
in: query
name: runnerId
required: false
schema:
format: uuid
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/MemoryIncidentListDto"
description: ""
security:
- bearer: []
summary: Query runner memory snapshots by host sample time range
tags:
- admin
/users/me:
get:
operationId: getAuthenticatedUser
parameters: []
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/User"
description: User details
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get authenticated user
tags:
- users
/users:
get:
operationId: listUsers
parameters: []
responses:
"200":
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List all users
tags:
- users
post:
operationId: createUser
parameters: []
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateUser"
required: true
responses:
"201":
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create user
tags:
- users
/users/account-providers:
get:
operationId: getAvailableAccountProviders
parameters: []
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/AccountProvider"
type: array
description: Available account providers
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get available account providers
tags:
- users
/users/linked-accounts:
post:
operationId: linkAccount
parameters: []
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateLinkedAccount"
required: true
responses:
"204":
description: Account linked successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Link account
tags:
- users
/users/linked-accounts/{provider}/{providerUserId}:
delete:
operationId: unlinkAccount
parameters:
- explode: false
in: path
name: provider
required: true
schema:
type: string
style: simple
- explode: false
in: path
name: providerUserId
required: true
schema:
type: string
style: simple
responses:
"204":
description: Account unlinked successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Unlink account
tags:
- users
/users/{id}:
get:
operationId: getUser
parameters:
- explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/User"
description: User details
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get user by ID
tags:
- users
/organizations/{organizationId}/onboarding:
get:
operationId: getOrganizationOnboarding
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/OnboardingDto"
nullable: true
description: ""
security:
- bearer: []
summary: Read organization onboarding answers
tags:
- organizations
put:
operationId: saveOrganizationOnboarding
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/SaveOnboardingDto"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OnboardingDto"
description: ""
security:
- bearer: []
summary: Save organization onboarding answers
tags:
- organizations
/organizations/{organizationId}/quickstart/prompt:
get:
operationId: getQuickstartPrompt
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/PromptDraftDto"
nullable: true
description: ""
security:
- bearer: []
summary: Read your prompt draft in this organization
tags:
- organizations
put:
operationId: saveQuickstartPrompt
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/SavePromptDraftDto"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PromptDraftDto"
description: ""
security:
- bearer: []
summary: Save your prompt draft with revision checking
tags:
- organizations
/organizations/{organizationId}/quickstart/handoffs:
post:
operationId: createQuickstartHandoff
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreatePromptHandoffDto"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PromptHandoffDto"
description: ""
security:
- bearer: []
summary: Prepare an immutable prompt handoff
tags:
- organizations
/organizations/{organizationId}/quickstart/handoffs/{requestId}/copied:
patch:
operationId: markQuickstartHandoffCopied
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- explode: false
in: path
name: requestId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PromptHandoffDto"
description: ""
security:
- bearer: []
summary: Record successful clipboard copy
tags:
- organizations
/organizations/invitations:
get:
operationId: listOrganizationInvitationsForAuthenticatedUser
parameters: []
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/OrganizationInvitation"
type: array
description: List of organization invitations
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List organization invitations for authenticated user
tags:
- organizations
/organizations/invitations/count:
get:
operationId: getOrganizationInvitationsCountForAuthenticatedUser
parameters: []
responses:
"200":
content:
application/json:
schema:
type: number
description: Count of organization invitations
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get count of organization invitations for authenticated user
tags:
- organizations
/organizations/invitations/{invitationId}/accept:
post:
operationId: acceptOrganizationInvitation
parameters:
- description: Invitation ID
explode: false
in: path
name: invitationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationInvitation"
description: Organization invitation accepted successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Accept organization invitation
tags:
- organizations
/organizations/invitations/{invitationId}/decline:
post:
operationId: declineOrganizationInvitation
parameters:
- description: Invitation ID
explode: false
in: path
name: invitationId
required: true
schema:
type: string
style: simple
responses:
"200":
description: Organization invitation declined successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Decline organization invitation
tags:
- organizations
/organizations:
get:
operationId: listOrganizations
parameters: []
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/Organization"
type: array
description: List of organizations
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List organizations
tags:
- organizations
post:
operationId: createOrganization
parameters: []
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateOrganization"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/Organization"
description: Organization created successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create organization
tags:
- organizations
/organizations/{organizationId}/name:
patch:
operationId: updateOrganizationName
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateOrganizationName"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Organization"
description: Organization name updated successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update organization name
tags:
- organizations
/organizations/{organizationId}/default-region:
patch:
operationId: setOrganizationDefaultRegion
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateOrganizationDefaultRegion"
required: true
responses:
"204":
description: Default region set successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Set default region for organization
tags:
- organizations
/organizations/{organizationId}:
delete:
operationId: deleteOrganization
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"204":
description: Organization deleted successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete organization
tags:
- organizations
get:
operationId: getOrganization
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Organization"
description: Organization details
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get organization by ID
tags:
- organizations
/organizations/{organizationId}/leave:
post:
operationId: leaveOrganization
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"204":
description: Organization left successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Leave organization
tags:
- organizations
/organizations/{organizationId}/suspend:
post:
operationId: suspendOrganization
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationSuspension"
required: false
responses:
"204":
description: Organization suspended successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Suspend organization
tags:
- organizations
/organizations/{organizationId}/unsuspend:
post:
operationId: unsuspendOrganization
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationUnsuspension"
required: false
responses:
"204":
description: Organization unsuspended successfully
"409":
description: Organization is not suspended with the given ifReason
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Unsuspend organization
tags:
- organizations
/organizations/by-box-id/{boxId}:
get:
operationId: getOrganizationByBoxId
parameters:
- description: Box ID
explode: false
in: path
name: boxId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Organization"
description: Organization
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get organization by box ID
tags:
- organizations
/organizations/otel-config/by-box-auth-token/{authToken}:
get:
operationId: getOrganizationOtelConfigByBoxAuthToken
parameters:
- description: Box Auth Token
explode: false
in: path
name: authToken
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OtelConfig"
description: OTEL Config
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get organization OTEL config by box auth token
tags:
- organizations
/organizations/{organizationId}/box-default-limited-network-egress:
post:
operationId: updateBoxDefaultLimitedNetworkEgress
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationBoxDefaultLimitedNetworkEgress"
required: true
responses:
"204":
description: Box default limited network egress updated successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update box default limited network egress
tags:
- organizations
/organizations/{organizationId}/experimental-config:
put:
operationId: updateExperimentalConfig
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
additionalProperties: true
example:
otel:
endpoint: http://otel-collector:4317
headers:
api-key: XXX
type: object
description: Experimental configuration as a JSON object. Set to null to clear
the configuration.
required: false
responses:
"200":
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update experimental configuration
tags:
- organizations
/organizations/{organizationId}/roles:
get:
operationId: listOrganizationRoles
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/OrganizationRole"
type: array
description: List of organization roles
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List organization roles
tags:
- organizations
post:
operationId: createOrganizationRole
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateOrganizationRole"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationRole"
description: Organization role created successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create organization role
tags:
- organizations
/organizations/{organizationId}/roles/{roleId}:
delete:
operationId: deleteOrganizationRole
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: Role ID
explode: false
in: path
name: roleId
required: true
schema:
type: string
style: simple
responses:
"204":
description: Organization role deleted successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete organization role
tags:
- organizations
put:
operationId: updateOrganizationRole
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: Role ID
explode: false
in: path
name: roleId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateOrganizationRole"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationRole"
description: Role updated successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update organization role
tags:
- organizations
/organizations/{organizationId}/users:
get:
operationId: listOrganizationMembers
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/OrganizationUser"
type: array
description: List of organization members
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List organization members
tags:
- organizations
/organizations/{organizationId}/users/{userId}/access:
post:
operationId: updateAccessForOrganizationMember
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: User ID
explode: false
in: path
name: userId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateOrganizationMemberAccess"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationUser"
description: Access updated successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update access for organization member
tags:
- organizations
/organizations/{organizationId}/users/{userId}:
delete:
operationId: deleteOrganizationMember
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: User ID
explode: false
in: path
name: userId
required: true
schema:
type: string
style: simple
responses:
"204":
description: User removed from organization successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete organization member
tags:
- organizations
/organizations/{organizationId}/invitations:
get:
operationId: listOrganizationInvitations
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/OrganizationInvitation"
type: array
description: List of pending organization invitations
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List pending organization invitations
tags:
- organizations
post:
operationId: createOrganizationInvitation
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateOrganizationInvitation"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationInvitation"
description: Organization invitation created successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create organization invitation
tags:
- organizations
/organizations/{organizationId}/invitations/{invitationId}:
put:
operationId: updateOrganizationInvitation
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: Invitation ID
explode: false
in: path
name: invitationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateOrganizationInvitation"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationInvitation"
description: Organization invitation updated successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update organization invitation
tags:
- organizations
/organizations/{organizationId}/invitations/{invitationId}/cancel:
post:
operationId: cancelOrganizationInvitation
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: Invitation ID
explode: false
in: path
name: invitationId
required: true
schema:
type: string
style: simple
responses:
"204":
description: Organization invitation cancelled successfully
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Cancel organization invitation
tags:
- organizations
/regions:
post:
operationId: createRegion
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRegion"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRegionResponse"
description: The region has been successfully created.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create a new region
tags:
- organizations
/regions/{id}:
delete:
operationId: deleteRegion
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Region ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"204":
description: The region has been successfully deleted.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete a region
tags:
- organizations
get:
operationId: getRegionById
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Region ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Region"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get region by ID
tags:
- organizations
patch:
operationId: updateRegion
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Region ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateRegion"
required: true
responses:
"200":
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update region configuration
tags:
- organizations
/regions/{id}/regenerate-proxy-api-key:
post:
operationId: regenerateProxyApiKey
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Region ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/RegenerateApiKeyResponse"
description: The proxy API key has been successfully regenerated.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Regenerate proxy API key for a region
tags:
- organizations
/organizations/{organizationId}/concurrency:
get:
operationId: getOrganizationUsageConcurrency
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: Inclusive start of the requested timeline. Defaults to 30 days
before `to`.
explode: true
in: query
name: from
required: false
schema:
format: date-time
type: string
style: form
- description: Inclusive end of the requested timeline. Defaults to the current
time.
explode: true
in: query
name: to
required: false
schema:
format: date-time
type: string
style: form
- description: Spacing between concurrency snapshots.
explode: true
in: query
name: granularity
required: false
schema:
default: day
enum:
- hour
- day
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/UsageConcurrencySeriesDto"
description: Compute-bearing box usage periods sampled as a bounded concurrency
series.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get organization concurrency timeline
tags:
- usage
/shared-regions:
get:
operationId: listSharedRegions
parameters: []
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/Region"
type: array
description: List of all shared regions
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List all shared regions
tags:
- regions
/images/registries:
get:
operationId: listRegistryCredentials
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/RegistryCredential"
type: array
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List registry credentials
tags:
- registries
post:
description: "A login for a private registry. The password is stored where this\
\ API cannot read it back, and is never returned."
operationId: createRegistryCredential
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRegistryCredential"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/RegistryCredential"
description: ""
"409":
description: A credential for this registry and prefix already exists
"501":
description: Private registries are not enabled in this deployment
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Add a registry credential
tags:
- registries
/images/registries/{id}:
delete:
operationId: deleteRegistryCredential
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: id
required: true
schema:
format: uuid
type: string
style: simple
responses:
"204":
description: "The credential is gone, and its password is destroyed"
"404":
description: No such credential in this organization
"409":
description: Boxes that have not been destroyed still pull through it; their
ids are listed
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Remove a registry credential
tags:
- registries
put:
description: Replace the username and password without changing its scope or
destroying dependent Boxes.
operationId: updateRegistryCredential
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Credential ID
explode: false
in: path
name: id
required: true
schema:
format: uuid
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateRegistryCredential"
description: Replacement username and password
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/RegistryCredential"
description: ""
"404":
description: No such credential in this organization
"409":
description: Another request is using the credential; retry the update
"501":
description: Private registries are not enabled in this deployment
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update a registry credential
tags:
- registries
/images:
get:
description: "The organization’s images together with the operator’s curated\
\ set, which every organization shares and none can delete."
operationId: listImages
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/Image"
type: array
description: The images this organization can boot from
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List images
tags:
- images
/images/usage:
get:
description: "How many images this organization holds against its limit, and\
\ the total size its pulled versions declared."
operationId: getImageUsage
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ImageUsage"
description: Catalog usage for this organization
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get image usage
tags:
- images
/images/{idOrRef}:
delete:
description: "Removes the catalog entry, not the bytes: runners keep whatever\
\ they cached, and using the same reference again pulls it back as a new entry.\
\ A pull never moves a recorded tag, so this is how to pick up where a tag\
\ points upstream now; aliases for recorded versions are created and deleted\
\ explicitly."
operationId: deleteImage
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: "Catalog ID, or any reference that names the image — URL-encode\
\ a reference"
explode: false
in: path
name: idOrRef
required: true
schema:
example: quay.io%2Facme%2Fapp
type: string
style: simple
responses:
"204":
description: The image is no longer in the catalog
"400":
description: Curated images belong to the operator and cannot be removed
"404":
description: No such image in this organization
"409":
description: Boxes that have not been destroyed can still boot from this
image
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Remove an image from the catalog
tags:
- images
get:
operationId: getImage
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: "Catalog ID, or any reference that names the image — URL-encode\
\ a reference, since it contains slashes"
explode: false
in: path
name: idOrRef
required: true
schema:
example: quay.io%2Facme%2Fapp
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ImageDetail"
description: Image details
"404":
description: No such image in this organization
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get image details
tags:
- images
/images/{idOrRef}/aliases:
post:
description: "Creates a catalog alias for a ready version. Existing aliases\
\ are refused, including the same binding. The upstream registry and existing\
\ boxes are unchanged."
operationId: createImageAlias
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Catalog ID or URL-encoded image name
explode: false
in: path
name: idOrRef
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateImageAlias"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/ImageDetail"
description: Image details including the new alias
"400":
description: "Invalid alias, target version or curated image"
"404":
description: No such image in this organization
"409":
description: The alias already exists
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create an image alias
tags:
- images
/images/{idOrRef}/aliases/{alias}:
delete:
description: "Removes only the catalog binding. Versions, existing boxes and\
\ alias history remain."
operationId: deleteImageAlias
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- description: Catalog ID or URL-encoded image name
explode: false
in: path
name: idOrRef
required: true
schema:
type: string
style: simple
- description: Catalog alias to delete
explode: false
in: path
name: alias
required: true
schema:
type: string
style: simple
responses:
"204":
description: The alias was deleted
"404":
description: The image or alias does not exist
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete an image alias
tags:
- images
/auth/end-session:
get:
description: "Implements OpenID Connect RP-Initiated Logout 1.0 for IdPs (e.g.\
\ Dex) that do not natively advertise end_session_endpoint. Validates the\
\ post-logout redirect target, then 302-redirects the browser back to the\
\ SPA."
operationId: LogoutController_endSession
parameters:
- explode: true
in: query
name: post_logout_redirect_uri
required: false
schema:
type: string
style: form
- explode: true
in: query
name: id_token_hint
required: false
schema:
type: string
style: form
- explode: true
in: query
name: state
required: false
schema:
type: string
style: form
responses:
"302":
description: Redirect to post_logout_redirect_uri
"400":
description: post_logout_redirect_uri not allowed
summary: OIDC RP-initiated logout endpoint
tags:
- auth
/config:
get:
operationId: ConfigController_getConfig
parameters: []
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/BoxliteConfiguration"
description: BoxLite configuration
summary: Get config
tags:
- config
/api-keys:
get:
operationId: listApiKeys
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/ApiKeyList"
type: array
description: API keys retrieved successfully.
"500":
description: Error fetching API keys.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List API keys
tags:
- api-keys
post:
operationId: createApiKey
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateApiKey"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/ApiKeyResponse"
description: API key created successfully.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create API key
tags:
- api-keys
/api-keys/current:
get:
operationId: getCurrentApiKey
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ApiKeyList"
description: API key retrieved successfully.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get current API key's details
tags:
- api-keys
/api-keys/{name}:
delete:
operationId: deleteApiKey
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: name
required: true
schema:
type: string
style: simple
responses:
"204":
description: API key deleted successfully.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete API key
tags:
- api-keys
get:
operationId: getApiKey
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: name
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ApiKeyList"
description: API key retrieved successfully.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get API key
tags:
- api-keys
/api-keys/{userId}/{name}:
delete:
operationId: deleteApiKeyForUser
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: userId
required: true
schema:
type: string
style: simple
- explode: false
in: path
name: name
required: true
schema:
type: string
style: simple
responses:
"204":
description: API key deleted successfully.
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete API key for user
tags:
- api-keys
/audit:
get:
operationId: getAllAuditLogs
parameters:
- description: Page number of the results
explode: true
in: query
name: page
required: false
schema:
default: 1
minimum: 1
type: number
style: form
- description: Number of results per page
explode: true
in: query
name: limit
required: false
schema:
default: 100
maximum: 200
minimum: 1
type: number
style: form
- description: From date (ISO 8601 format)
explode: true
in: query
name: from
required: false
schema:
format: date-time
type: string
style: form
- description: To date (ISO 8601 format)
explode: true
in: query
name: to
required: false
schema:
format: date-time
type: string
style: form
- description: "Token for cursor-based pagination. When provided, takes precedence\
\ over page parameter."
explode: true
in: query
name: nextToken
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedAuditLogs"
description: Paginated list of all audit logs
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get all audit logs
tags:
- audit
/audit/organizations/{organizationId}:
get:
operationId: getOrganizationAuditLogs
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: Page number of the results
explode: true
in: query
name: page
required: false
schema:
default: 1
minimum: 1
type: number
style: form
- description: Number of results per page
explode: true
in: query
name: limit
required: false
schema:
default: 100
maximum: 200
minimum: 1
type: number
style: form
- description: From date (ISO 8601 format)
explode: true
in: query
name: from
required: false
schema:
format: date-time
type: string
style: form
- description: To date (ISO 8601 format)
explode: true
in: query
name: to
required: false
schema:
format: date-time
type: string
style: form
- description: "Token for cursor-based pagination. When provided, takes precedence\
\ over page parameter."
explode: true
in: query
name: nextToken
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedAuditLogs"
description: Paginated list of organization audit logs
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get audit logs for organization
tags:
- audit
/admin/runners:
get:
operationId: adminListRunners
parameters:
- description: Filter runners by region ID
explode: true
in: query
name: regionId
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
items:
$ref: "#/components/schemas/AdminRunner"
type: array
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List all runners
tags:
- admin
post:
operationId: adminCreateRunner
parameters: []
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/AdminCreateRunner"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRunnerResponse"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Create runner
tags:
- admin
/admin/runners/{id}:
delete:
operationId: adminDeleteRunner
parameters:
- description: Runner ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"204":
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Delete runner
tags:
- admin
get:
operationId: adminGetRunnerById
parameters:
- description: Runner ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminRunner"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get runner by ID
tags:
- admin
/admin/runners/{id}/scheduling:
patch:
operationId: adminUpdateRunnerScheduling
parameters:
- explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"204":
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Update runner scheduling status
tags:
- admin
/admin/box/{boxId}/recover:
post:
operationId: adminRecoverBox
parameters:
- description: ID of the box
explode: false
in: path
name: boxId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/Box"
description: Recovery initiated
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Recover box from error state as an admin
tags:
- admin
/admin/regions:
get:
operationId: adminListRegions
parameters:
- description: Opaque cursor returned by the previous page
explode: true
in: query
name: cursor
required: false
schema:
type: string
style: form
- explode: true
in: query
name: limit
required: false
schema:
example: 50
maximum: 200
minimum: 1
type: number
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminRegionOverviewPage"
description: ""
"400":
description: Invalid cursor or limit
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List regions with capacity and health
tags:
- admin
/admin/regions/{id}:
get:
operationId: adminGetRegion
parameters:
- description: Region ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminRegionOverview"
description: ""
"404":
description: Region not found
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get region capacity and health
tags:
- admin
/admin/boxes:
get:
operationId: adminListBoxesOverview
parameters:
- description: Opaque cursor returned by the previous page
explode: true
in: query
name: cursor
required: false
schema:
type: string
style: form
- explode: true
in: query
name: limit
required: false
schema:
example: 50
maximum: 200
minimum: 1
type: number
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminBoxOverviewPage"
description: ""
"400":
description: Invalid cursor or limit
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List boxes with placement and health
tags:
- admin
/admin/boxes/{id}:
get:
operationId: adminGetBoxOverview
parameters:
- description: Box ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Opaque job page cursor
explode: true
in: query
name: jobCursor
required: false
schema:
type: string
style: form
- explode: true
in: query
name: sectionLimit
required: false
schema:
example: 50
maximum: 200
minimum: 1
type: number
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminBoxDetail"
description: ""
"400":
description: Invalid cursor or section limit
"404":
description: Box not found
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: "Get box placement, health, and jobs"
tags:
- admin
/admin/jobs:
get:
operationId: adminListJobsOverview
parameters:
- description: Opaque cursor returned by the previous page
explode: true
in: query
name: cursor
required: false
schema:
type: string
style: form
- explode: true
in: query
name: limit
required: false
schema:
example: 50
maximum: 200
minimum: 1
type: number
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminJobOverviewPage"
description: ""
"400":
description: Invalid cursor or limit
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List jobs with sanitized failure categories
tags:
- admin
/admin/jobs/{id}:
get:
operationId: adminGetJobOverview
parameters:
- description: Job ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminJobOverview"
description: ""
"404":
description: Job not found
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get a job with sanitized failure category
tags:
- admin
/admin/component-identities:
get:
operationId: adminGetComponentIdentities
parameters: []
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminComponentIdentities"
description: ""
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get API and runner version identities
tags:
- admin
/admin/organizations:
get:
operationId: adminListOrganizationsOverview
parameters:
- description: Organization ID or name
explode: true
in: query
name: q
required: false
schema:
maxLength: 200
minLength: 2
type: string
style: form
- description: Opaque cursor returned by the previous page
explode: true
in: query
name: cursor
required: false
schema:
type: string
style: form
- explode: true
in: query
name: limit
required: false
schema:
example: 50
maximum: 200
minimum: 1
type: number
style: form
- description: "Exclusive RFC 3339 instant, at most milliseconds."
explode: true
in: query
name: createdTo
required: false
schema:
type: string
style: form
- description: "Inclusive RFC 3339 instant, at most milliseconds."
explode: true
in: query
name: createdFrom
required: false
schema:
type: string
style: form
- description: Count every retained Box state; omit to keep the existing active-state
count.
explode: true
in: query
name: boxCountScope
required: false
schema:
enum:
- all
type: string
style: form
- description: Exact organization UUID; avoids name search and cannot be combined
with q.
explode: true
in: query
name: organizationId
required: false
schema:
type: string
style: form
- description: Add up to 200 member emails to each organization; omit to keep
the existing fields.
explode: true
in: query
name: include
required: false
schema:
enum:
- memberEmails
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminOrganizationOverviewPage"
description: ""
"400":
description: Invalid cursor or limit
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: List organization operational summaries
tags:
- admin
/admin/organizations/{organizationId}:
get:
operationId: adminGetOrganizationOverview
parameters:
- description: Organization ID
explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- description: Opaque member page cursor
explode: true
in: query
name: memberCursor
required: false
schema:
type: string
style: form
- description: Opaque box page cursor
explode: true
in: query
name: boxCursor
required: false
schema:
type: string
style: form
- explode: true
in: query
name: sectionLimit
required: false
schema:
example: 50
maximum: 200
minimum: 1
type: number
style: form
- description: "Comma-separated usage,activation. Omit to read neither section."
explode: true
in: query
name: include
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminOrganizationDetail"
description: ""
"400":
description: Invalid cursor or section limit
"404":
description: Organization not found
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Get organization operational detail
tags:
- admin
/admin/usage:
get:
operationId: adminQueryUsage
parameters:
- description: Optional 64 lowercase hex caller partition; never authentication.
explode: false
in: header
name: X-Usage-Snapshot-Owner
required: false
schema:
type: string
style: simple
- explode: true
in: query
name: cursor
required: false
schema:
maxLength: 2048
type: string
style: form
- explode: true
in: query
name: limit
required: false
schema:
maximum: 200
minimum: 1
type: number
style: form
- explode: true
in: query
name: boxId
required: false
schema:
maxLength: 128
type: string
style: form
- explode: true
in: query
name: regionId
required: false
schema:
maxLength: 128
type: string
style: form
- explode: true
in: query
name: organizationId
required: false
schema:
format: uuid
type: string
style: form
- description: "One or two of organizationId,regionId,boxId, comma-separated."
explode: true
in: query
name: groupBy
required: false
schema:
type: string
style: form
- description: "Comma-separated computeVcpuSeconds,storageByteSeconds,memoryGibSeconds."
explode: true
in: query
name: metrics
required: false
schema:
type: string
style: form
- explode: true
in: query
name: granularity
required: false
schema:
enum:
- window
- hour
- day
type: string
style: form
- description: "Exclusive RFC 3339 instant, no later than now."
explode: true
in: query
name: to
required: true
schema:
type: string
style: form
- description: "Inclusive RFC 3339 instant, at most milliseconds."
explode: true
in: query
name: from
required: true
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminUsagePage"
description: ""
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminUsageError"
description: Invalid query or cursor binding
"410":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminUsageError"
description: Snapshot expired; restart the complete query
"422":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminUsageError"
description: Query exceeds a resource limit
"503":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminUsageError"
description: Database or snapshot cache unavailable
security:
- bearer: []
- oauth2:
- openid
- profile
- email
summary: Query recorded resource usage with fixed snapshot pagination
tags:
- admin
/admin/organizations/{organizationId}/nested-virtualization:
get:
operationId: adminGetOrganizationNestedVirtualization
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
format: uuid
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminOrganizationNestedVirtualization"
description: ""
security:
- bearer: []
summary: Read organization nesting allowlist
tags:
- admin
put:
operationId: adminSetOrganizationNestedVirtualization
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
format: uuid
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/adminSetOrganizationNestedVirtualization_request"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AdminOrganizationNestedVirtualization"
description: ""
security:
- bearer: []
summary: Set organization nesting allowlist
tags:
- admin
/admin/organizations/{organizationId}/app-hosting-permissions:
get:
operationId: adminGetOrganizationAppHostingPermissions
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
format: uuid
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationAppHostingPermissionsDto"
description: ""
security:
- bearer: []
summary: Read organization App Hosting permissions
tags:
- admin
put:
operationId: adminSetOrganizationAppHostingPermissions
parameters:
- explode: false
in: path
name: organizationId
required: true
schema:
format: uuid
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationAppHostingPermissionsDto"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/OrganizationAppHostingPermissionsDto"
description: ""
security:
- bearer: []
summary: Replace organization App Hosting permissions
tags:
- admin
/webhooks/organizations/{organizationId}/app-portal-access:
post:
operationId: WebhookController_getAppPortalAccess
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/WebhookAppPortalAccess"
description: App Portal access generated successfully
security:
- bearer: []
summary: Get Svix Consumer App Portal access for an organization
tags:
- webhooks
/webhooks/organizations/{organizationId}/send:
post:
operationId: WebhookController_sendWebhook
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/SendWebhookDto"
required: true
responses:
"200":
description: Webhook message sent successfully
security:
- bearer: []
summary: Send a webhook message to an organization
tags:
- webhooks
/webhooks/organizations/{organizationId}/messages/{messageId}/attempts:
get:
operationId: WebhookController_getMessageAttempts
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
- explode: false
in: path
name: messageId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
items:
type: object
type: array
description: List of delivery attempts
security:
- bearer: []
summary: Get delivery attempts for a webhook message
tags:
- webhooks
/webhooks/status:
get:
operationId: WebhookController_getStatus
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/WebhookController_getStatus_200_response"
description: Webhook service status
security:
- bearer: []
summary: Get webhook service status
tags:
- webhooks
/webhooks/organizations/{organizationId}/initialization-status:
get:
operationId: WebhookController_getInitializationStatus
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/WebhookInitializationStatus"
description: Webhook initialization status
"404":
description: Webhook initialization status not found
security:
- bearer: []
summary: Get webhook initialization status for an organization
tags:
- webhooks
/webhooks/organizations/{organizationId}/initialize:
post:
operationId: WebhookController_initializeWebhooks
parameters:
- description: Use with JWT to specify the organization ID
explode: false
in: header
name: X-BoxLite-Organization-ID
required: false
schema:
type: string
style: simple
- explode: false
in: path
name: organizationId
required: true
schema:
type: string
style: simple
responses:
"201":
description: Webhooks initialized successfully
"403":
description: User does not have access to this organization
"404":
description: Organization not found
security:
- bearer: []
summary: Initialize webhooks for an organization
tags:
- webhooks
/health:
get:
operationId: HealthController_live
parameters: []
responses:
"200":
description: ""
tags:
- Health
/health/ready:
get:
operationId: HealthController_check
parameters: []
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/HealthController_check_200_response"
description: The Health Check is successful
"503":
content:
application/json:
schema:
$ref: "#/components/schemas/HealthController_check_200_response"
description: The Health Check is not successful
tags:
- Health
components:
schemas:
NetworkMode:
description: Whether the guest may reach out
enum:
- enabled
- disabled
type: string
OutboundNetworkSpec:
properties:
mode:
allOf:
- $ref: "#/components/schemas/NetworkMode"
description: Whether the guest may reach out
allow_net:
description: Outbound allowlist in force; empty means unrestricted egress
example:
- api.openai.com
- 10.0.0.0/8
items:
type: string
type: array
required:
- allow_net
- mode
type: object
InboundNetworkSpec:
properties:
mode:
allOf:
- $ref: "#/components/schemas/NetworkMode"
description: "Whether exposed services are reachable through the proxy,\
\ subject to each tunnel's access policy"
allow_net:
description: Reserved; no layer enforces an inbound allowlist yet
example: []
items:
type: string
type: array
required:
- allow_net
- mode
type: object
NetworkInfo:
properties:
outbound:
$ref: "#/components/schemas/OutboundNetworkSpec"
inbound:
$ref: "#/components/schemas/InboundNetworkSpec"
required:
- inbound
- outbound
type: object
BoxState:
description: The state of the box
enum:
- creating
- restoring
- destroyed
- destroying
- started
- stopped
- starting
- stopping
- error
- unknown
- archived
- archiving
- resizing
type: string
BoxDesiredState:
description: The desired state of the box
enum:
- destroyed
- started
- stopped
- resized
type: string
BoxVolumeFilestoreRef:
properties:
instance:
description: Filestore instance logical name selected from the API configuration
example: boxlite-dev-shared
type: string
required:
- instance
type: object
BoxVolume:
example:
volumeId: volume123
mountPath: /data
filestore: ""
subpath: users/alice
properties:
volumeId:
description: The ID of the volume (bucket-backed or Filestore-backed)
example: volume123
type: string
mountPath:
description: The mount path for the volume
example: /data
type: string
filestore:
allOf:
- $ref: "#/components/schemas/BoxVolumeFilestoreRef"
description: The Filestore instance reference; absent for bucket-backed
volumes
subpath:
description: "Optional subpath within the volume to mount. When specified,\
\ only this S3 prefix will be accessible. When omitted, the entire volume\
\ is mounted."
example: users/alice
type: string
required:
- mountPath
- volumeId
type: object
BoxProgressPhase:
description: What this box is waiting on while it is being created
enum:
- preparing_image
type: string
BoxProgress:
properties:
phase:
allOf:
- $ref: "#/components/schemas/BoxProgressPhase"
description: What this box is waiting on while it is being created
example: preparing_image
retryAfterMs:
description: "Suggested wait before asking about this box again, in milliseconds.\
\ A hint, not a deadline"
example: 5000
type: number
required:
- phase
- retryAfterMs
type: object
Box:
example:
id: aB3cD4eF5gH6
organizationId: organization123
name: MyBox
user: boxlite
env:
NODE_ENV: production
labels:
boxlite.io/public: "true"
network: ""
target: local
image: boxlite/base
cpu: 2
gpu: 0
memory: 4
disk: 10
privileged: true
state: creating
desiredState: destroyed
errorReason: The box is not running
recoverable: true
autoStop: 900
autoDelete: 604800
autoResume: true
volumes:
- volumeId: volume123
mountPath: /data
filestore: ""
subpath: users/alice
- volumeId: volume123
mountPath: /data
filestore: ""
subpath: users/alice
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
lastActivityAt: 2024-10-01T12:00:00Z
exitCode: 137
class: small
daemonVersion: 1.0.0
runnerId: runner123
progress: ""
properties:
id:
description: The public 12-character Box ID
example: aB3cD4eF5gH6
type: string
organizationId:
description: The organization ID of the box
example: organization123
type: string
name:
description: The name of the box
example: MyBox
type: string
user:
description: The user associated with the project
example: boxlite
type: string
env:
additionalProperties:
type: string
description: Environment variables for the box
example:
NODE_ENV: production
type: object
labels:
additionalProperties:
type: string
description: Labels for the box
example:
boxlite.io/public: "true"
type: object
network:
allOf:
- $ref: "#/components/schemas/NetworkInfo"
description: The network policy in both directions
target:
description: The target environment for the box
example: local
type: string
image:
description: The image used for the box
example: boxlite/base
type: string
cpu:
description: The CPU quota for the box
example: 2
type: number
gpu:
description: The GPU quota for the box
example: 0
type: number
memory:
description: The memory quota for the box
example: 4
type: number
disk:
description: The disk quota for the box
example: 10
type: number
privileged:
description: Persisted guest privilege mode; absent when an older server
does not report it
type: boolean
state:
allOf:
- $ref: "#/components/schemas/BoxState"
description: The state of the box
example: creating
desiredState:
allOf:
- $ref: "#/components/schemas/BoxDesiredState"
description: The desired state of the box
example: destroyed
errorReason:
description: The error reason of the box
example: The box is not running
type: string
recoverable:
description: Whether the box error is recoverable.
example: true
type: boolean
autoStop:
description: Auto-stop interval in seconds (0 means disabled)
example: 900
type: integer
autoDelete:
description: Auto-delete interval in seconds (0 means disabled)
example: 604800
type: integer
autoResume:
description: Whether the box should be automatically resumed on proxy access
example: true
type: boolean
volumes:
description: Array of volumes attached to the box
items:
$ref: "#/components/schemas/BoxVolume"
type: array
createdAt:
description: The creation timestamp of the box
example: 2024-10-01T12:00:00Z
type: string
updatedAt:
description: The last update timestamp of the box
example: 2024-10-01T12:00:00Z
type: string
lastActivityAt:
description: "The timestamp of the last recorded activity on the box, absent\
\ when no activity has been recorded yet"
example: 2024-10-01T12:00:00Z
type: string
exitCode:
description: "How the box's main command ended, present once the box has\
\ stopped and the runtime recorded it: its own code when it exited, or\
\ `128 + n` when a signal ended it. Stopping a box signals that command,\
\ so a stop is recorded here too. `0` is a real value, so a client must\
\ tell the missing field from a zero one. Only reading a single box carries\
\ it: this schema is shared with the box list and with the replies that\
\ change a box, which leave it out whether or not one was recorded."
example: 137
type: integer
class:
deprecated: true
description: The class of the box
enum:
- small
- medium
- large
example: small
type: string
daemonVersion:
description: The version of the daemon running in the box
example: 1.0.0
type: string
runnerId:
description: The runner ID of the box
example: runner123
type: string
progress:
allOf:
- $ref: "#/components/schemas/BoxProgress"
description: "What a box still being created is waiting on. Absent once\
\ it has started, and absent while it is being created from an image that\
\ has already been pulled"
required:
- cpu
- disk
- env
- gpu
- id
- labels
- memory
- name
- organizationId
- target
- user
type: object
PaginatedBoxes:
example:
items:
- id: aB3cD4eF5gH6
organizationId: organization123
name: MyBox
user: boxlite
env:
NODE_ENV: production
labels:
boxlite.io/public: "true"
network: ""
target: local
image: boxlite/base
cpu: 2
gpu: 0
memory: 4
disk: 10
privileged: true
state: creating
desiredState: destroyed
errorReason: The box is not running
recoverable: true
autoStop: 900
autoDelete: 604800
autoResume: true
volumes:
- volumeId: volume123
mountPath: /data
filestore: ""
subpath: users/alice
- volumeId: volume123
mountPath: /data
filestore: ""
subpath: users/alice
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
lastActivityAt: 2024-10-01T12:00:00Z
exitCode: 137
class: small
daemonVersion: 1.0.0
runnerId: runner123
progress: ""
- id: aB3cD4eF5gH6
organizationId: organization123
name: MyBox
user: boxlite
env:
NODE_ENV: production
labels:
boxlite.io/public: "true"
network: ""
target: local
image: boxlite/base
cpu: 2
gpu: 0
memory: 4
disk: 10
privileged: true
state: creating
desiredState: destroyed
errorReason: The box is not running
recoverable: true
autoStop: 900
autoDelete: 604800
autoResume: true
volumes:
- volumeId: volume123
mountPath: /data
filestore: ""
subpath: users/alice
- volumeId: volume123
mountPath: /data
filestore: ""
subpath: users/alice
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
lastActivityAt: 2024-10-01T12:00:00Z
exitCode: 137
class: small
daemonVersion: 1.0.0
runnerId: runner123
progress: ""
total: 0.8008281904610115
page: 6.027456183070403
totalPages: 1.4658129805029452
properties:
items:
items:
$ref: "#/components/schemas/Box"
type: array
total:
type: number
page:
type: number
totalPages:
type: number
required:
- items
- page
- total
- totalPages
type: object
UpdateBoxStateDto:
example:
state: started
errorReason: Failed to pull artifact image
recoverable: true
imageDigest: sha256:0000000000000000000000000000000000000000000000000000000000000000
imageSizeBytes: 123456789
properties:
state:
description: The new state for the box
enum:
- creating
- restoring
- destroyed
- destroying
- started
- stopped
- starting
- stopping
- error
- unknown
- archived
- archiving
- resizing
example: started
type: string
errorReason:
description: Optional error message when reporting an error state
example: Failed to pull artifact image
type: string
recoverable:
description: Whether the box is recoverable
example: true
type: boolean
imageDigest:
description: Registry digest of the image the box booted from
example: sha256:0000000000000000000000000000000000000000000000000000000000000000
type: string
imageSizeBytes:
description: "Declared on-registry size of that image, in bytes"
example: 123456789
format: int64
type: integer
required:
- state
type: object
CreateAttachTicket:
example:
executionId: executionId
properties:
executionId:
description: The execution the ticket may attach to
type: string
required:
- executionId
type: object
AttachTicket:
example:
ticket: ticket
expiresIn: 30
properties:
ticket:
description: "Single-use credential for the attach WebSocket, sent as its\
\ `ticket` query parameter"
type: string
expiresIn:
description: Seconds until the ticket expires
example: 30
type: number
required:
- expiresIn
- ticket
type: object
CreateRunner:
example:
regionId: regionId
name: name
properties:
regionId:
type: string
name:
type: string
required:
- name
- regionId
type: object
CreateRunnerResponse:
example:
id: runner123
apiKey: blk_svc_1234567890
properties:
id:
description: The ID of the runner
example: runner123
type: string
apiKey:
description: The API key for the runner
example: blk_svc_1234567890
type: string
required:
- apiKey
- id
type: object
BoxClass:
description: The class of the runner
enum:
- small
- medium
- large
type: string
RunnerState:
description: The state of the runner
enum:
- initializing
- ready
- disabled
- decommissioned
- unresponsive
type: string
RegionType:
description: The region type of the runner
enum:
- shared
- dedicated
- custom
type: string
RunnerFull:
example:
id: runner123
domain: runner1.example.com
apiUrl: https://api.runner1.example.com
proxyUrl: https://proxy.runner1.example.com
cpu: 8
memory: 16
disk: 100
gpu: 1
gpuType: gpuType
class: small
currentCpuUsagePercentage: 45.6
currentMemoryUsagePercentage: 68.2
currentDiskUsagePercentage: 33.8
currentAllocatedCpu: 4000
currentAllocatedMemoryGiB: 8000
currentAllocatedDiskGiB: 50000
currentStartedBoxes: 5
availabilityScore: 85
region: us
name: runner1
state: initializing
lastChecked: 2024-10-01T12:00:00Z
unschedulable: false
createdAt: 2023-10-01T12:00:00Z
updatedAt: 2023-10-01T12:00:00Z
version: "0"
apiVersion: "0"
appVersion: v0.0.0-dev
apiKey: blk_svc_1234567890
regionType: shared
properties:
id:
description: The ID of the runner
example: runner123
type: string
domain:
description: The domain of the runner
example: runner1.example.com
type: string
apiUrl:
description: The API URL of the runner
example: https://api.runner1.example.com
type: string
proxyUrl:
description: The proxy URL of the runner
example: https://proxy.runner1.example.com
type: string
cpu:
description: The CPU capacity of the runner
example: 8
type: number
memory:
description: The memory capacity of the runner in GiB
example: 16
type: number
disk:
description: The disk capacity of the runner in GiB
example: 100
type: number
gpu:
description: The GPU capacity of the runner
example: 1
type: number
gpuType:
description: The type of GPU
type: string
class:
allOf:
- $ref: "#/components/schemas/BoxClass"
description: The class of the runner
example: small
currentCpuUsagePercentage:
description: Current CPU usage percentage
example: 45.6
type: number
currentMemoryUsagePercentage:
description: Current RAM usage percentage
example: 68.2
type: number
currentDiskUsagePercentage:
description: Current disk usage percentage
example: 33.8
type: number
currentAllocatedCpu:
description: Current allocated CPU
example: 4000
type: number
currentAllocatedMemoryGiB:
description: Current allocated memory in GiB
example: 8000
type: number
currentAllocatedDiskGiB:
description: Current allocated disk in GiB
example: 50000
type: number
currentStartedBoxes:
description: Current number of started boxes
example: 5
type: number
availabilityScore:
description: Runner availability score
example: 85
type: number
region:
description: The region of the runner
example: us
type: string
name:
description: The name of the runner
example: runner1
type: string
state:
allOf:
- $ref: "#/components/schemas/RunnerState"
description: The state of the runner
example: initializing
lastChecked:
description: The last time the runner was checked
example: 2024-10-01T12:00:00Z
type: string
unschedulable:
description: Whether the runner is unschedulable
example: false
type: boolean
createdAt:
description: The creation timestamp of the runner
example: 2023-10-01T12:00:00Z
type: string
updatedAt:
description: The last update timestamp of the runner
example: 2023-10-01T12:00:00Z
type: string
version:
deprecated: true
description: The version of the runner (deprecated in favor of apiVersion)
example: "0"
type: string
apiVersion:
deprecated: true
description: The api version of the runner
example: "0"
type: string
appVersion:
deprecated: true
description: The app version of the runner
example: v0.0.0-dev
type: string
apiKey:
description: The API key for the runner
example: blk_svc_1234567890
type: string
regionType:
allOf:
- $ref: "#/components/schemas/RegionType"
description: The region type of the runner
example: shared
required:
- apiKey
- apiVersion
- class
- cpu
- createdAt
- disk
- id
- memory
- name
- region
- state
- unschedulable
- updatedAt
- version
type: object
Runner:
example:
id: runner123
domain: runner1.example.com
apiUrl: https://api.runner1.example.com
proxyUrl: https://proxy.runner1.example.com
cpu: 8
memory: 16
disk: 100
gpu: 1
gpuType: gpuType
class: small
currentCpuUsagePercentage: 45.6
currentMemoryUsagePercentage: 68.2
currentDiskUsagePercentage: 33.8
currentAllocatedCpu: 4000
currentAllocatedMemoryGiB: 8000
currentAllocatedDiskGiB: 50000
currentStartedBoxes: 5
availabilityScore: 85
region: us
name: runner1
state: initializing
lastChecked: 2024-10-01T12:00:00Z
unschedulable: false
createdAt: 2023-10-01T12:00:00Z
updatedAt: 2023-10-01T12:00:00Z
version: "0"
apiVersion: "0"
appVersion: v0.0.0-dev
properties:
id:
description: The ID of the runner
example: runner123
type: string
domain:
description: The domain of the runner
example: runner1.example.com
type: string
apiUrl:
description: The API URL of the runner
example: https://api.runner1.example.com
type: string
proxyUrl:
description: The proxy URL of the runner
example: https://proxy.runner1.example.com
type: string
cpu:
description: The CPU capacity of the runner
example: 8
type: number
memory:
description: The memory capacity of the runner in GiB
example: 16
type: number
disk:
description: The disk capacity of the runner in GiB
example: 100
type: number
gpu:
description: The GPU capacity of the runner
example: 1
type: number
gpuType:
description: The type of GPU
type: string
class:
allOf:
- $ref: "#/components/schemas/BoxClass"
description: The class of the runner
example: small
currentCpuUsagePercentage:
description: Current CPU usage percentage
example: 45.6
type: number
currentMemoryUsagePercentage:
description: Current RAM usage percentage
example: 68.2
type: number
currentDiskUsagePercentage:
description: Current disk usage percentage
example: 33.8
type: number
currentAllocatedCpu:
description: Current allocated CPU
example: 4000
type: number
currentAllocatedMemoryGiB:
description: Current allocated memory in GiB
example: 8000
type: number
currentAllocatedDiskGiB:
description: Current allocated disk in GiB
example: 50000
type: number
currentStartedBoxes:
description: Current number of started boxes
example: 5
type: number
availabilityScore:
description: Runner availability score
example: 85
type: number
region:
description: The region of the runner
example: us
type: string
name:
description: The name of the runner
example: runner1
type: string
state:
allOf:
- $ref: "#/components/schemas/RunnerState"
description: The state of the runner
example: initializing
lastChecked:
description: The last time the runner was checked
example: 2024-10-01T12:00:00Z
type: string
unschedulable:
description: Whether the runner is unschedulable
example: false
type: boolean
createdAt:
description: The creation timestamp of the runner
example: 2023-10-01T12:00:00Z
type: string
updatedAt:
description: The last update timestamp of the runner
example: 2023-10-01T12:00:00Z
type: string
version:
deprecated: true
description: The version of the runner (deprecated in favor of apiVersion)
example: "0"
type: string
apiVersion:
deprecated: true
description: The api version of the runner
example: "0"
type: string
appVersion:
deprecated: true
description: The app version of the runner
example: v0.0.0-dev
type: string
required:
- apiVersion
- class
- cpu
- createdAt
- disk
- id
- memory
- name
- region
- state
- unschedulable
- updatedAt
- version
type: object
RunnerHealthMetrics:
properties:
currentCpuLoadAverage:
description: Current CPU load average
example: 0.98
type: number
currentCpuUsagePercentage:
description: Current CPU usage percentage
example: 45.5
type: number
currentMemoryUsagePercentage:
description: Current memory usage percentage
example: 60.2
type: number
currentDiskUsagePercentage:
description: Current disk usage percentage
example: 35.8
type: number
currentAllocatedCpu:
description: Currently allocated CPU cores
example: 8
type: number
currentAllocatedMemoryGiB:
description: Currently allocated memory in GiB
example: 16
type: number
currentAllocatedDiskGiB:
description: Currently allocated disk in GiB
example: 100
type: number
currentStartedBoxes:
description: Number of started boxes
example: 10
type: number
cpu:
description: Total CPU cores on the runner
example: 8
type: number
memoryGiB:
description: Total RAM in GiB on the runner
example: 16
type: number
diskGiB:
description: Total disk space in GiB on the runner
example: 100
type: number
required:
- cpu
- currentAllocatedCpu
- currentAllocatedDiskGiB
- currentAllocatedMemoryGiB
- currentCpuLoadAverage
- currentCpuUsagePercentage
- currentDiskUsagePercentage
- currentMemoryUsagePercentage
- currentStartedBoxes
- diskGiB
- memoryGiB
type: object
RunnerServiceHealth:
example:
serviceName: runner
healthy: false
errorReason: Cannot connect to the runner
properties:
serviceName:
description: Name of the service being checked
example: runner
type: string
healthy:
description: Whether the service is healthy
example: false
type: boolean
errorReason:
description: Error reason if the service is unhealthy
example: Cannot connect to the runner
type: string
required:
- healthy
- serviceName
type: object
RunnerDataDiskRef:
description: "Cloud identity of the runner data disk. diskType names the backend\
\ so the API can tell expandable block disks from backends with a different\
\ resize path (e.g. Filestore); runners predating the field are treated as\
\ hyperdisk_balanced, the only type infra provisions today."
properties:
provider:
description: Cloud provider of the data disk
example: gcp
type: string
project:
description: Cloud project the data disk lives in
example: boxlite-prod-project
type: string
zone:
description: Cloud zone the data disk lives in
example: us-central1-a
type: string
diskName:
description: "Name of the data disk, as the cloud API addresses it"
example: boxlite-runner-data-host-1
type: string
diskType:
description: "Backend behind the identity (hyperdisk_balanced, filestore,\
\ ...). Omitted by runner binaries predating the field; the API then assumes\
\ hyperdisk_balanced, the only data disk infra provisions today."
example: hyperdisk_balanced
type: string
required:
- diskName
- project
- provider
- zone
type: object
RunnerHealthcheck:
example:
nestedVirtualizationEnabled: true
supportsPrivileged: true
capabilities:
- filestore
metrics: ""
serviceHealth:
- serviceName: runner
healthy: false
errorReason: Cannot connect to the runner
- serviceName: runner
healthy: false
errorReason: Cannot connect to the runner
dataDiskRef: ""
domain: runner-123.boxlite.example.com
proxyUrl: http://proxy.boxlite.example.com:8080
apiUrl: http://api.boxlite.example.com:8080
appVersion: v0.0.0-dev
properties:
nestedVirtualizationEnabled:
description: Runner runtime authorizes nested virtualization
type: boolean
supportsPrivileged:
description: Runner preserves the guest privileged creation option
type: boolean
capabilities:
description: "Capabilities the runner binary supports (e.g. \"filestore\"\
). Absent from runners predating capability reporting, which the API treats\
\ as supporting none of them"
example:
- filestore
items:
type: string
type: array
metrics:
allOf:
- $ref: "#/components/schemas/RunnerHealthMetrics"
description: Runner metrics
serviceHealth:
description: Health status of individual services on the runner
items:
$ref: "#/components/schemas/RunnerServiceHealth"
type: array
dataDiskRef:
allOf:
- $ref: "#/components/schemas/RunnerDataDiskRef"
description: Cloud identity of the runner data disk; absent when the runner
has none (AWS or local)
domain:
description: Runner domain
example: runner-123.boxlite.example.com
type: string
proxyUrl:
description: Runner proxy URL
example: http://proxy.boxlite.example.com:8080
type: string
apiUrl:
description: Runner API URL
example: http://api.boxlite.example.com:8080
type: string
appVersion:
description: Runner app version
example: v0.0.0-dev
type: string
required:
- appVersion
type: object
VolumeState:
description: Volume state
enum:
- creating
- ready
- pending_create
- pending_delete
- deleting
- deleted
- error
type: string
VolumeDto:
example:
id: vol-12345678
name: my-volume
organizationId: 123e4567-e89b-12d3-a456-426614174000
state: ready
storageBackend: standard
instance: boxlite-dev-shared
createdAt: 2023-01-01T00:00:00.000Z
updatedAt: 2023-01-01T00:00:00.000Z
lastUsedAt: 2023-01-01T00:00:00.000Z
errorReason: Error processing volume
properties:
id:
description: Volume ID
example: vol-12345678
type: string
name:
description: Volume name
example: my-volume
type: string
organizationId:
description: Organization ID
example: 123e4567-e89b-12d3-a456-426614174000
type: string
state:
allOf:
- $ref: "#/components/schemas/VolumeState"
description: Volume state
example: ready
storageBackend:
description: The storage class of the volume
enum:
- standard
- performance
example: standard
type: string
instance:
description: Filestore instance name; filestore volumes only
example: boxlite-dev-shared
type: string
createdAt:
description: Creation timestamp
example: 2023-01-01T00:00:00.000Z
type: string
updatedAt:
description: Last update timestamp
example: 2023-01-01T00:00:00.000Z
type: string
lastUsedAt:
description: Last used timestamp
example: 2023-01-01T00:00:00.000Z
nullable: true
type: string
errorReason:
description: The error reason of the volume
example: Error processing volume
nullable: true
type: string
required:
- createdAt
- errorReason
- id
- name
- organizationId
- state
- storageBackend
- updatedAt
type: object
CreateVolume:
example:
name: my-data
storageBackend: performance
instance: boxlite-dev-shared
properties:
name:
example: my-data
type: string
storageBackend:
description: The storage class of the volume; defaults to standard
enum:
- standard
- performance
example: performance
type: string
instance:
description: The Filestore instance the volume stores its data on; filestore
volumes only. Omit to assign from configured instances.
example: boxlite-dev-shared
type: string
type: object
JobStatus:
enum:
- PENDING
- IN_PROGRESS
- COMPLETED
- FAILED
type: string
JobType:
description: The type of the job
enum:
- CREATE_BOX
- START_BOX
- STOP_BOX
- DESTROY_BOX
- EXPORT_BOX
- IMPORT_BOX
- ROLLBACK_EXPORT_BOX
- ROLLBACK_IMPORT_BOX
- DISCARD_EXPORTED_BOX
- EXPORT_CHECKPOINT
- UPLOAD_CHECKPOINT
- IMPORT_CHECKPOINT
type: string
Job:
example:
id: job123
type: CREATE_BOX
status: PENDING
resourceType: BOX
resourceId: box123
payload: payload
traceContext:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
errorMessage: Failed to create box
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
properties:
id:
description: The ID of the job
example: job123
type: string
type:
allOf:
- $ref: "#/components/schemas/JobType"
description: The type of the job
example: CREATE_BOX
status:
allOf:
- $ref: "#/components/schemas/JobStatus"
description: The status of the job
example: PENDING
resourceType:
description: The type of resource this job operates on
enum:
- BOX
- ARTIFACT
- BACKUP
- CHECKPOINT
example: BOX
type: string
resourceId:
description: "The ID of the resource this job operates on (boxId, etc.)"
example: box123
type: string
payload:
description: Job-specific JSON-encoded payload data (operational metadata)
type: string
traceContext:
additionalProperties: true
description: OpenTelemetry trace context for distributed tracing (W3C Trace
Context format)
example:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
type: object
errorMessage:
description: Error message if the job failed
example: Failed to create box
type: string
createdAt:
description: The creation timestamp of the job
example: 2024-10-01T12:00:00Z
type: string
updatedAt:
description: The last update timestamp of the job
example: 2024-10-01T12:00:00Z
type: string
required:
- createdAt
- id
- resourceId
- resourceType
- status
- type
type: object
PaginatedJobs:
example:
items:
- id: job123
type: CREATE_BOX
status: PENDING
resourceType: BOX
resourceId: box123
payload: payload
traceContext:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
errorMessage: Failed to create box
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
- id: job123
type: CREATE_BOX
status: PENDING
resourceType: BOX
resourceId: box123
payload: payload
traceContext:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
errorMessage: Failed to create box
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
total: 0.8008281904610115
page: 6.027456183070403
totalPages: 1.4658129805029452
properties:
items:
items:
$ref: "#/components/schemas/Job"
type: array
total:
type: number
page:
type: number
totalPages:
type: number
required:
- items
- page
- total
- totalPages
type: object
PollJobsResponse:
example:
jobs:
- id: job123
type: CREATE_BOX
status: PENDING
resourceType: BOX
resourceId: box123
payload: payload
traceContext:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
errorMessage: Failed to create box
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
- id: job123
type: CREATE_BOX
status: PENDING
resourceType: BOX
resourceId: box123
payload: payload
traceContext:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
errorMessage: Failed to create box
createdAt: 2024-10-01T12:00:00Z
updatedAt: 2024-10-01T12:00:00Z
properties:
jobs:
description: List of jobs
items:
$ref: "#/components/schemas/Job"
type: array
required:
- jobs
type: object
UpdateJobStatus:
example:
status: IN_PROGRESS
errorMessage: Failed to create box
resultMetadata: resultMetadata
properties:
status:
allOf:
- $ref: "#/components/schemas/JobStatus"
description: The new status of the job
example: IN_PROGRESS
errorMessage:
description: Error message if the job failed
example: Failed to create box
type: string
resultMetadata:
description: Result metadata for the job
type: string
required:
- status
type: object
RunnerCpuIncident:
example:
id: id
runnerId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
eventId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
highCpuSince: 2000-01-23T04:56:07.000+00:00
windowStartedAt: 2000-01-23T04:56:07.000+00:00
windowEndedAt: 2000-01-23T04:56:07.000+00:00
runnerCpuPercent: 0.8008281904610115
boxId: boxId
image: image
cpuSeconds: 6.027456183070403
samplingComplete: true
receivedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
description: Bigint row ID; keep as a string.
type: string
runnerId:
format: uuid
type: string
eventId:
format: uuid
type: string
highCpuSince:
format: date-time
type: string
windowStartedAt:
format: date-time
type: string
windowEndedAt:
format: date-time
type: string
runnerCpuPercent:
description: Host-wide percent at trigger.
type: number
boxId:
nullable: true
type: string
image:
description: Winning box Image string at capture time.
nullable: true
type: string
cpuSeconds:
description: Measured cumulative CPU-seconds across all cores.
type: number
samplingComplete:
type: boolean
receivedAt:
format: date-time
type: string
required:
- boxId
- cpuSeconds
- eventId
- highCpuSince
- id
- image
- receivedAt
- runnerCpuPercent
- runnerId
- samplingComplete
- windowEndedAt
- windowStartedAt
type: object
CpuIncidentListDto:
example:
items:
- id: id
runnerId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
eventId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
highCpuSince: 2000-01-23T04:56:07.000+00:00
windowStartedAt: 2000-01-23T04:56:07.000+00:00
windowEndedAt: 2000-01-23T04:56:07.000+00:00
runnerCpuPercent: 0.8008281904610115
boxId: boxId
image: image
cpuSeconds: 6.027456183070403
samplingComplete: true
receivedAt: 2000-01-23T04:56:07.000+00:00
- id: id
runnerId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
eventId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
highCpuSince: 2000-01-23T04:56:07.000+00:00
windowStartedAt: 2000-01-23T04:56:07.000+00:00
windowEndedAt: 2000-01-23T04:56:07.000+00:00
runnerCpuPercent: 0.8008281904610115
boxId: boxId
image: image
cpuSeconds: 6.027456183070403
samplingComplete: true
receivedAt: 2000-01-23T04:56:07.000+00:00
properties:
items:
items:
$ref: "#/components/schemas/RunnerCpuIncident"
type: array
required:
- items
type: object
BoxMemoryUsageDto:
example:
boxId: boxId
image: image
memoryBytes: memoryBytes
properties:
boxId:
description: Business Box ID.
type: string
image:
description: Exact image reference from the same Box snapshot; empty is
preserved.
type: string
memoryBytes:
description: "Current bytes as a decimal string, between 0 and 9223372036854775807."
type: string
required:
- boxId
- image
- memoryBytes
type: object
RunnerMemoryIncident:
example:
id: id
runnerId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
eventId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
sampledAt: 2000-01-23T04:56:07.000+00:00
runnerMemoryPercent: 0.8008281904610115
boxes:
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
samplingComplete: true
receivedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
description: Bigint row ID; keep as a string.
type: string
runnerId:
format: uuid
type: string
eventId:
format: uuid
type: string
sampledAt:
format: date-time
type: string
runnerMemoryPercent:
type: number
boxes:
description: Only Boxes whose maximum in the query range belongs to this
snapshot; ties use the smaller row ID.
items:
$ref: "#/components/schemas/BoxMemoryUsageDto"
maxItems: 5
type: array
samplingComplete:
type: boolean
receivedAt:
format: date-time
type: string
required:
- boxes
- eventId
- id
- receivedAt
- runnerId
- runnerMemoryPercent
- sampledAt
- samplingComplete
type: object
MemoryIncidentListDto:
example:
items:
- id: id
runnerId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
eventId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
sampledAt: 2000-01-23T04:56:07.000+00:00
runnerMemoryPercent: 0.8008281904610115
boxes:
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
samplingComplete: true
receivedAt: 2000-01-23T04:56:07.000+00:00
- id: id
runnerId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
eventId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
sampledAt: 2000-01-23T04:56:07.000+00:00
runnerMemoryPercent: 0.8008281904610115
boxes:
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
- boxId: boxId
image: image
memoryBytes: memoryBytes
samplingComplete: true
receivedAt: 2000-01-23T04:56:07.000+00:00
properties:
items:
items:
$ref: "#/components/schemas/RunnerMemoryIncident"
type: array
required:
- items
type: object
UserPublicKey:
example:
key: key
name: name
properties:
key:
description: Public key
type: string
name:
description: Key name
type: string
required:
- key
- name
type: object
User:
example:
id: id
name: name
email: email
publicKeys:
- key: key
name: name
- key: key
name: name
createdAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
description: User ID
type: string
name:
description: User name
type: string
email:
description: User email
type: string
publicKeys:
description: User public keys
items:
$ref: "#/components/schemas/UserPublicKey"
type: array
createdAt:
description: Creation timestamp
format: date-time
type: string
required:
- createdAt
- email
- id
- name
- publicKeys
type: object
CreateUser:
example:
id: id
name: name
email: email
defaultOrganizationDefaultRegionId: defaultOrganizationDefaultRegionId
personalOrganizationDefaultRegionId: personalOrganizationDefaultRegionId
role: admin
emailVerified: true
properties:
id:
type: string
name:
type: string
email:
type: string
defaultOrganizationDefaultRegionId:
type: string
personalOrganizationDefaultRegionId:
deprecated: true
description: Deprecated alias for defaultOrganizationDefaultRegionId.
type: string
role:
enum:
- admin
- user
type: string
emailVerified:
type: boolean
required:
- id
- name
type: object
AccountProvider:
example:
name: name
displayName: displayName
properties:
name:
type: string
displayName:
type: string
required:
- displayName
- name
type: object
CreateLinkedAccount:
example:
provider: provider
userId: userId
properties:
provider:
description: The authentication provider of the secondary account
type: string
userId:
description: The user ID of the secondary account
type: string
required:
- provider
- userId
type: object
OnboardingDto:
example:
useCase: coding-agent
note: note
submittedBy: submittedBy
submittedAt: 2000-01-23T04:56:07.000+00:00
properties:
useCase:
enum:
- coding-agent
- code-execution
- browser-agent
- long-running-agent
- application-deployments
- reinforcement-learning
- exploring
type: string
note:
maxLength: 2000
type: string
submittedBy:
type: string
submittedAt:
format: date-time
type: string
required:
- note
- submittedAt
- submittedBy
- useCase
type: object
PromptDraftDto:
example:
text: text
revision: 171976544
updatedAt: 2000-01-23T04:56:07.000+00:00
properties:
text:
maxLength: 16000
type: string
revision:
description: Last read revision; 0 creates a new draft.
format: int32
maximum: 2147483647
minimum: 0
type: integer
updatedAt:
format: date-time
type: string
required:
- revision
- text
- updatedAt
type: object
SaveOnboardingDto:
example:
useCase: coding-agent
note: note
properties:
useCase:
enum:
- coding-agent
- code-execution
- browser-agent
- long-running-agent
- application-deployments
- reinforcement-learning
- exploring
type: string
note:
maxLength: 2000
type: string
required:
- note
- useCase
type: object
SavePromptDraftDto:
example:
text: text
revision: 171976544
properties:
text:
maxLength: 16000
type: string
revision:
description: Last read revision; 0 creates a new draft.
format: int32
maximum: 2147483646
minimum: 0
type: integer
required:
- revision
- text
type: object
CreatePromptHandoffDto:
example:
requestId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
text: text
properties:
requestId:
format: uuid
type: string
text:
maxLength: 16000
type: string
required:
- requestId
- text
type: object
PromptHandoffDto:
example:
requestId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
text: text
createdAt: 2000-01-23T04:56:07.000+00:00
copiedAt: 2000-01-23T04:56:07.000+00:00
properties:
requestId:
format: uuid
type: string
text:
maxLength: 16000
type: string
createdAt:
format: date-time
type: string
copiedAt:
format: date-time
nullable: true
type: string
required:
- copiedAt
- createdAt
- requestId
- text
type: object
OrganizationRole:
example:
id: id
name: name
description: description
permissions:
- write:registries
- write:registries
isGlobal: true
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
description: Role ID
type: string
name:
description: Role name
type: string
description:
description: Role description
type: string
permissions:
description: Roles assigned to the user
items:
enum:
- write:registries
- delete:registries
- write:templates
- delete:templates
- write:boxes
- delete:boxes
- read:volumes
- write:volumes
- delete:volumes
- write:regions
- delete:regions
- read:runners
- write:runners
- delete:runners
- read:audit_logs
- read:images
- delete:images
- read:registries
- write:images
- read:members
- write:members
- read:apps
- write:apps
- delete:apps
- write:secrets
- read:secrets
type: string
type: array
isGlobal:
description: Global role flag
type: boolean
createdAt:
description: Creation timestamp
format: date-time
type: string
updatedAt:
description: Last update timestamp
format: date-time
type: string
required:
- createdAt
- description
- id
- isGlobal
- name
- permissions
- updatedAt
type: object
OrganizationInvitation:
example:
id: id
email: email
invitedBy: invitedBy
organizationId: organizationId
organizationName: organizationName
expiresAt: 2000-01-23T04:56:07.000+00:00
status: pending
role: owner
assignedRoles:
- id: id
name: name
description: description
permissions:
- write:registries
- write:registries
isGlobal: true
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
- id: id
name: name
description: description
permissions:
- write:registries
- write:registries
isGlobal: true
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
description: Invitation ID
type: string
email:
description: Email address of the invitee
type: string
invitedBy:
description: Email address of the inviter
type: string
organizationId:
description: Organization ID
type: string
organizationName:
description: Organization name
type: string
expiresAt:
description: Expiration date of the invitation
format: date-time
type: string
status:
description: Invitation status
enum:
- pending
- accepted
- declined
- cancelled
type: string
role:
description: Member role
enum:
- owner
- member
type: string
assignedRoles:
description: Assigned roles
items:
$ref: "#/components/schemas/OrganizationRole"
type: array
createdAt:
description: Creation timestamp
format: date-time
type: string
updatedAt:
description: Last update timestamp
format: date-time
type: string
required:
- assignedRoles
- createdAt
- email
- expiresAt
- id
- invitedBy
- organizationId
- organizationName
- role
- status
- updatedAt
type: object
CreateOrganization:
example:
name: My Organization
defaultRegionId: us
properties:
name:
description: The name of organization
example: My Organization
type: string
defaultRegionId:
description: The ID of the default region for the organization
example: us
type: string
required:
- defaultRegionId
- name
type: object
Organization:
example:
appHostingPermissions:
- read:apps
- read:apps
onboarding: "{}"
id: id
name: name
createdBy: createdBy
isDefaultForAuthenticatedUser: true
personal: true
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
suspended: true
suspendedAt: 2000-01-23T04:56:07.000+00:00
suspensionReason: suspensionReason
suspendedUntil: 2000-01-23T04:56:07.000+00:00
suspensionCleanupGracePeriodHours: 0.8008281904610115
maxCpuPerBox: 6.027456183070403
maxMemoryPerBox: 1.4658129805029452
maxDiskPerBox: 5.962133916683182
boxLimitedNetworkEgress: true
defaultRegionId: defaultRegionId
authenticatedRateLimit: 5.637376656633329
boxCreateRateLimit: 2.3021358869347655
boxLifecycleRateLimit: 7.061401241503109
experimentalConfig: "{}"
authenticatedRateLimitTtlSeconds: 9.301444243932576
boxCreateRateLimitTtlSeconds: 3.616076749251911
boxLifecycleRateLimitTtlSeconds: 2.027123023002322
properties:
appHostingPermissions:
description: App Hosting permissions enabled for this organization.
items:
enum:
- read:apps
- write:apps
- delete:apps
type: string
readOnly: true
type: array
onboarding:
allOf:
- $ref: "#/components/schemas/OnboardingDto"
nullable: true
type: object
id:
description: Organization ID
type: string
name:
description: Organization name
type: string
createdBy:
description: User ID of the organization creator
type: string
isDefaultForAuthenticatedUser:
description: Whether this organization is the authenticated user default
organization
type: boolean
personal:
deprecated: true
description: Deprecated alias for isDefaultForAuthenticatedUser. Kept for
backward compatibility with older REST clients.
type: boolean
createdAt:
description: Creation timestamp
format: date-time
type: string
updatedAt:
description: Last update timestamp
format: date-time
type: string
suspended:
description: Suspended flag
type: boolean
suspendedAt:
description: Suspended at
format: date-time
type: string
suspensionReason:
description: Suspended reason
type: string
suspendedUntil:
description: Suspended until
format: date-time
type: string
suspensionCleanupGracePeriodHours:
description: Suspension cleanup grace period hours
type: number
maxCpuPerBox:
description: Max CPU per box
type: number
maxMemoryPerBox:
description: Max memory per box
type: number
maxDiskPerBox:
description: Max disk per box
type: number
boxLimitedNetworkEgress:
description: Box default network block all
type: boolean
defaultRegionId:
description: Default region ID
type: string
authenticatedRateLimit:
description: Authenticated rate limit per minute
nullable: true
type: number
boxCreateRateLimit:
description: Box create rate limit per minute
nullable: true
type: number
boxLifecycleRateLimit:
description: Box lifecycle rate limit per minute
nullable: true
type: number
experimentalConfig:
description: Experimental configuration
type: object
authenticatedRateLimitTtlSeconds:
description: Authenticated rate limit TTL in seconds
nullable: true
type: number
boxCreateRateLimitTtlSeconds:
description: Box create rate limit TTL in seconds
nullable: true
type: number
boxLifecycleRateLimitTtlSeconds:
description: Box lifecycle rate limit TTL in seconds
nullable: true
type: number
required:
- appHostingPermissions
- authenticatedRateLimit
- authenticatedRateLimitTtlSeconds
- boxCreateRateLimit
- boxCreateRateLimitTtlSeconds
- boxLifecycleRateLimit
- boxLifecycleRateLimitTtlSeconds
- boxLimitedNetworkEgress
- createdAt
- createdBy
- experimentalConfig
- id
- isDefaultForAuthenticatedUser
- maxCpuPerBox
- maxDiskPerBox
- maxMemoryPerBox
- name
- personal
- suspended
- suspendedAt
- suspendedUntil
- suspensionCleanupGracePeriodHours
- suspensionReason
- updatedAt
type: object
UpdateOrganizationName:
example:
name: Default Organization
properties:
name:
description: The public name of the organization
example: Default Organization
type: string
required:
- name
type: object
UpdateOrganizationDefaultRegion:
example:
defaultRegionId: us
properties:
defaultRegionId:
description: The ID of the default region for the organization
example: us
type: string
required:
- defaultRegionId
type: object
OrganizationSuspension:
example:
reason: reason
until: 2000-01-23T04:56:07.000+00:00
suspensionCleanupGracePeriodHours: 0.08008281904610115
properties:
reason:
description: Suspension reason
type: string
until:
description: Suspension until
format: date-time
type: string
suspensionCleanupGracePeriodHours:
description: Suspension cleanup grace period hours
minimum: 0
type: number
required:
- reason
- until
type: object
OrganizationUnsuspension:
example:
ifReason: ifReason
properties:
ifReason:
description: Unsuspend only if the organization is currently suspended with
this exact reason
type: string
type: object
OtelConfig:
example:
endpoint: endpoint
headers:
x-api-key: my-api-key
properties:
endpoint:
description: Endpoint
type: string
headers:
additionalProperties:
type: string
description: Headers
example:
x-api-key: my-api-key
nullable: true
type: object
required:
- endpoint
type: object
OrganizationBoxDefaultLimitedNetworkEgress:
example:
boxDefaultLimitedNetworkEgress: true
properties:
boxDefaultLimitedNetworkEgress:
description: Box default limited network egress
type: boolean
required:
- boxDefaultLimitedNetworkEgress
type: object
CreateOrganizationRole:
example:
name: Maintainer
description: Can manage all resources
permissions:
- write:registries
- write:registries
properties:
name:
description: The name of the role
example: Maintainer
type: string
description:
description: The description of the role
example: Can manage all resources
type: string
permissions:
description: The list of permissions assigned to the role
items:
enum:
- write:registries
- delete:registries
- write:templates
- delete:templates
- write:boxes
- delete:boxes
- read:volumes
- write:volumes
- delete:volumes
- write:regions
- delete:regions
- read:runners
- write:runners
- delete:runners
- read:audit_logs
- read:images
- delete:images
- read:registries
- write:images
- read:members
- write:members
- read:apps
- write:apps
- delete:apps
- write:secrets
- read:secrets
type: string
type: array
required:
- description
- name
- permissions
type: object
UpdateOrganizationRole:
example:
name: Maintainer
description: Can manage all resources
permissions:
- write:registries
- write:registries
properties:
name:
description: The name of the role
example: Maintainer
type: string
description:
description: The description of the role
example: Can manage all resources
type: string
permissions:
description: The list of permissions assigned to the role
items:
enum:
- write:registries
- delete:registries
- write:templates
- delete:templates
- write:boxes
- delete:boxes
- read:volumes
- write:volumes
- delete:volumes
- write:regions
- delete:regions
- read:runners
- write:runners
- delete:runners
- read:audit_logs
- read:images
- delete:images
- read:registries
- write:images
- read:members
- write:members
- read:apps
- write:apps
- delete:apps
- write:secrets
- read:secrets
type: string
type: array
required:
- description
- name
- permissions
type: object
OrganizationUser:
example:
userId: userId
organizationId: organizationId
name: name
email: email
role: owner
isSystemAdmin: true
isDefaultForUser: true
assignedRoles:
- id: id
name: name
description: description
permissions:
- write:registries
- write:registries
isGlobal: true
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
- id: id
name: name
description: description
permissions:
- write:registries
- write:registries
isGlobal: true
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
createdAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
properties:
userId:
description: User ID
type: string
organizationId:
description: Organization ID
type: string
name:
description: User name
type: string
email:
description: User email
type: string
role:
description: Member role
enum:
- owner
- member
type: string
isSystemAdmin:
description: Set on the authenticated member when they are a system administrator.
readOnly: true
type: boolean
isDefaultForUser:
description: Whether this organization membership is the user default organization
type: boolean
assignedRoles:
description: Roles assigned to the user
items:
$ref: "#/components/schemas/OrganizationRole"
type: array
createdAt:
description: Creation timestamp
format: date-time
type: string
updatedAt:
description: Last update timestamp
format: date-time
type: string
required:
- assignedRoles
- createdAt
- email
- isDefaultForUser
- name
- organizationId
- role
- updatedAt
- userId
type: object
UpdateOrganizationMemberAccess:
example:
role: member
assignedRoleIds:
- assignedRoleIds
- assignedRoleIds
properties:
role:
default: member
description: Organization member role
enum:
- owner
- member
type: string
assignedRoleIds:
default: []
description: Array of assigned role IDs
items:
type: string
type: array
required:
- assignedRoleIds
- role
type: object
CreateOrganizationInvitation:
example:
email: [email protected]
role: member
assignedRoleIds:
- assignedRoleIds
- assignedRoleIds
expiresAt: 2021-12-31T23:59:59Z
properties:
email:
description: Email address of the invitee
example: [email protected]
type: string
role:
default: member
description: Organization member role for the invitee
enum:
- owner
- member
type: string
assignedRoleIds:
default: []
description: Array of assigned role IDs for the invitee
items:
type: string
type: array
expiresAt:
description: Expiration date of the invitation
example: 2021-12-31T23:59:59Z
format: date-time
type: string
required:
- assignedRoleIds
- email
- role
type: object
UpdateOrganizationInvitation:
example:
role: owner
assignedRoleIds:
- assignedRoleIds
- assignedRoleIds
expiresAt: 2021-12-31T23:59:59Z
properties:
role:
description: Organization member role
enum:
- owner
- member
type: string
assignedRoleIds:
description: Array of role IDs
items:
type: string
type: array
expiresAt:
description: Expiration date of the invitation
example: 2021-12-31T23:59:59Z
format: date-time
type: string
required:
- assignedRoleIds
- role
type: object
CreateRegion:
example:
name: us-east-1
proxyUrl: https://proxy.example.com
properties:
name:
description: Region name
example: us-east-1
type: string
proxyUrl:
description: Proxy URL for the region
example: https://proxy.example.com
nullable: true
type: string
required:
- name
type: object
CreateRegionResponse:
example:
id: region_12345
proxyApiKey: proxy-api-key-xyz
properties:
id:
description: ID of the created region
example: region_12345
type: string
proxyApiKey:
description: Proxy API key for the region
example: proxy-api-key-xyz
nullable: true
type: string
required:
- id
type: object
Region:
example:
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
properties:
id:
description: Region ID
example: "123456789012"
type: string
name:
description: Region name
example: us-east-1
type: string
organizationId:
description: Organization ID
example: 123e4567-e89b-12d3-a456-426614174000
nullable: true
type: string
regionType:
allOf:
- $ref: "#/components/schemas/RegionType"
description: The type of the region
example: shared
createdAt:
description: Creation timestamp
example: 2023-01-01T00:00:00.000Z
type: string
updatedAt:
description: Last update timestamp
example: 2023-01-01T00:00:00.000Z
type: string
proxyUrl:
description: Proxy URL for the region
example: https://proxy.example.com
nullable: true
type: string
required:
- createdAt
- id
- name
- regionType
- updatedAt
type: object
RegenerateApiKeyResponse:
example:
apiKey: api-key-xyz123
properties:
apiKey:
description: The newly generated API key
example: api-key-xyz123
type: string
required:
- apiKey
type: object
UpdateRegion:
example:
proxyUrl: https://proxy.example.com
properties:
proxyUrl:
description: Proxy URL for the region
example: https://proxy.example.com
nullable: true
type: string
type: object
UsageConcurrencyPointDto:
example:
observedAt: 2000-01-23T04:56:07.000+00:00
runningBoxes: 0
properties:
observedAt:
format: date-time
type: string
runningBoxes:
minimum: 0
type: integer
required:
- observedAt
- runningBoxes
type: object
UsageConcurrencySeriesDto:
example:
from: 2000-01-23T04:56:07.000+00:00
to: 2000-01-23T04:56:07.000+00:00
granularity: hour
current: 0
points:
- observedAt: 2000-01-23T04:56:07.000+00:00
runningBoxes: 0
- observedAt: 2000-01-23T04:56:07.000+00:00
runningBoxes: 0
properties:
from:
format: date-time
type: string
to:
format: date-time
type: string
granularity:
enum:
- hour
- day
type: string
current:
minimum: 0
type: integer
points:
items:
$ref: "#/components/schemas/UsageConcurrencyPointDto"
type: array
required:
- current
- from
- granularity
- points
- to
type: object
RegistryCredentialKind:
enum:
- basic
type: string
RegistryCredential:
example:
id: 123e4567-e89b-12d3-a456-426614174000
kind: basic
registryHost: ghcr.io
repositoryPrefix: acme/
username: acme-bot
createdBy: createdBy
createdAt: 2026-01-01T00:00:00.000Z
properties:
id:
example: 123e4567-e89b-12d3-a456-426614174000
type: string
kind:
allOf:
- $ref: "#/components/schemas/RegistryCredentialKind"
example: basic
registryHost:
example: ghcr.io
type: string
repositoryPrefix:
description: Empty for the whole registry
example: acme/
type: string
username:
example: acme-bot
type: string
createdBy:
description: The user who added it
nullable: true
type: string
createdAt:
example: 2026-01-01T00:00:00.000Z
type: string
required:
- createdAt
- createdBy
- id
- kind
- registryHost
- repositoryPrefix
- username
type: object
CreateRegistryCredential:
example:
registryHost: ghcr.io
repositoryPrefix: acme/
username: acme-bot
password: password
properties:
registryHost:
description: Registry the login is for
example: ghcr.io
type: string
repositoryPrefix:
default: ""
description: "Repositories it covers, as whole path segments ending in \"\
/\"; empty for the whole registry"
example: acme/
type: string
username:
description: Username the registry expects
example: acme-bot
type: string
password:
description: Password or access token. Never returned.
type: string
writeOnly: true
required:
- password
- registryHost
- username
type: object
UpdateRegistryCredential:
example:
username: acme-bot
password: password
properties:
username:
description: Username the registry expects
example: acme-bot
type: string
password:
description: Password or access token. Never returned.
type: string
writeOnly: true
required:
- password
- username
type: object
Image:
example:
name: quay.io/acme/app
id: 123e4567-e89b-12d3-a456-426614174000
curated: false
curatedRef: curatedRef
aliases:
- v1
- latest
versionCount: 2
sizeBytes: 26214400
lastUsedAt: 2026-01-01T00:00:00.000Z
createdAt: 2026-01-01T00:00:00.000Z
properties:
name:
description: "What to pass as a box image to boot from this: the curated\
\ short name, or the upstream repository path"
example: quay.io/acme/app
type: string
id:
description: "Catalog row ID. Null for curated images, which are operator\
\ configuration rather than rows"
example: 123e4567-e89b-12d3-a456-426614174000
nullable: true
type: string
curated:
description: Whether this is one of the operator-provided images every organization
shares. Curated images cannot be deleted and do not count against the
organization limit
example: false
type: boolean
curatedRef:
description: "The exact reference a curated image resolves to. Null for\
\ catalog images, which resolve through their versions"
nullable: true
type: string
example: null
aliases:
description: "Aliases recorded for this image. Empty for curated images,\
\ whose reference the operator pins"
example:
- v1
- latest
items:
type: string
type: array
versionCount:
description: How many pulled manifest digests this image holds
example: 2
type: number
sizeBytes:
description: "Sum of the pulled versions’ declared sizes, in bytes. Layers\
\ shared between versions are counted once per version. Null for curated\
\ images, whose bytes this system never measured"
example: 26214400
nullable: true
type: number
lastUsedAt:
description: When a box last booted from this image
example: 2026-01-01T00:00:00.000Z
nullable: true
type: string
createdAt:
description: When this image first entered the catalog. Null for curated
images
example: 2026-01-01T00:00:00.000Z
nullable: true
type: string
required:
- aliases
- createdAt
- curated
- curatedRef
- id
- lastUsedAt
- name
- sizeBytes
- versionCount
type: object
ImageUsage:
example:
count: 3
limit: 20
knownBytes: 78643200
properties:
count:
description: Images this organization holds. Curated images are the operator’s
and are not counted
example: 3
type: number
limit:
description: How many images this organization may hold
example: 20
type: number
knownBytes:
description: "Sum of the declared sizes of every pulled version, in bytes.\
\ A lower bound on what is stored: it counts what the manifests said,\
\ and counts a layer once per version that references it"
example: 78643200
type: number
required:
- count
- knownBytes
- limit
type: object
ImageVersion:
example:
id: 123e4567-e89b-12d3-a456-426614174000
digest: sha256:4a1c2f...
sizeBytes: 26214400
sourceRef: quay.io/acme/app:v1
aliases:
- stable
lastUsedAt: 2026-01-01T00:00:00.000Z
upstreamMissingAt: 2026-01-02T00:00:00.000Z
createdAt: 2026-01-01T00:00:00.000Z
properties:
id:
description: Version ID
example: 123e4567-e89b-12d3-a456-426614174000
type: string
digest:
description: OCI manifest digest this version was pulled at
example: sha256:4a1c2f...
type: string
sizeBytes:
description: "Sum of the layer sizes the manifest declared, in bytes"
example: 26214400
type: number
sourceRef:
description: "The reference the caller asked for, kept verbatim as provenance"
example: quay.io/acme/app:v1
type: string
aliases:
description: "Aliases that point at this version now, so a reference with\
\ one of them boots it"
example:
- stable
items:
type: string
type: array
lastUsedAt:
description: When a box last started from this version. Null when none has
since this was recorded
example: 2026-01-01T00:00:00.000Z
nullable: true
type: string
upstreamMissingAt:
description: "When a pull of this version first failed because its registry\
\ no longer has it. Runners that cached it still start it; elsewhere,\
\ create a new alias for a version the registry still has. Null while\
\ no pull has found it gone"
example: 2026-01-02T00:00:00.000Z
nullable: true
type: string
createdAt:
description: When this version was first recorded
example: 2026-01-01T00:00:00.000Z
type: string
required:
- aliases
- createdAt
- digest
- id
- lastUsedAt
- sizeBytes
- sourceRef
- upstreamMissingAt
type: object
ImageAliasEvent:
example:
aliasName: stable
fromVersionId: 123e4567-e89b-12d3-a456-426614174000
fromDigest: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
toVersionId: 123e4567-e89b-12d3-a456-426614174001
toDigest: sha256:b5ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
actorId: auth0|6512bd43d9caa6e02c990b0a
createdAt: 2026-01-01T00:00:00.000Z
properties:
aliasName:
description: The alias that moved
example: stable
type: string
fromVersionId:
description: Version the alias pointed at before. Null when the alias did
not exist yet
example: 123e4567-e89b-12d3-a456-426614174000
nullable: true
type: string
fromDigest:
description: Previous digest in historical records. Null for alias creation
example: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
nullable: true
type: string
toVersionId:
description: Version selected by the alias
example: 123e4567-e89b-12d3-a456-426614174001
type: string
toDigest:
description: Digest selected by the alias
example: sha256:b5ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
type: string
actorId:
description: Who created the alias. Null when a registry pull seeded it
example: auth0|6512bd43d9caa6e02c990b0a
nullable: true
type: string
createdAt:
description: When the alias was recorded
example: 2026-01-01T00:00:00.000Z
type: string
required:
- actorId
- aliasName
- createdAt
- fromDigest
- fromVersionId
- toDigest
- toVersionId
type: object
ImageDetail:
example:
name: quay.io/acme/app
id: 123e4567-e89b-12d3-a456-426614174000
curated: false
curatedRef: curatedRef
aliases:
- v1
- latest
versionCount: 2
sizeBytes: 26214400
lastUsedAt: 2026-01-01T00:00:00.000Z
createdAt: 2026-01-01T00:00:00.000Z
versions:
- id: 123e4567-e89b-12d3-a456-426614174000
digest: sha256:4a1c2f...
sizeBytes: 26214400
sourceRef: quay.io/acme/app:v1
aliases:
- stable
lastUsedAt: 2026-01-01T00:00:00.000Z
upstreamMissingAt: 2026-01-02T00:00:00.000Z
createdAt: 2026-01-01T00:00:00.000Z
- id: 123e4567-e89b-12d3-a456-426614174000
digest: sha256:4a1c2f...
sizeBytes: 26214400
sourceRef: quay.io/acme/app:v1
aliases:
- stable
lastUsedAt: 2026-01-01T00:00:00.000Z
upstreamMissingAt: 2026-01-02T00:00:00.000Z
createdAt: 2026-01-01T00:00:00.000Z
history:
- aliasName: stable
fromVersionId: 123e4567-e89b-12d3-a456-426614174000
fromDigest: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
toVersionId: 123e4567-e89b-12d3-a456-426614174001
toDigest: sha256:b5ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
actorId: auth0|6512bd43d9caa6e02c990b0a
createdAt: 2026-01-01T00:00:00.000Z
- aliasName: stable
fromVersionId: 123e4567-e89b-12d3-a456-426614174000
fromDigest: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
toVersionId: 123e4567-e89b-12d3-a456-426614174001
toDigest: sha256:b5ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
actorId: auth0|6512bd43d9caa6e02c990b0a
createdAt: 2026-01-01T00:00:00.000Z
properties:
name:
description: "What to pass as a box image to boot from this: the curated\
\ short name, or the upstream repository path"
example: quay.io/acme/app
type: string
id:
description: "Catalog row ID. Null for curated images, which are operator\
\ configuration rather than rows"
example: 123e4567-e89b-12d3-a456-426614174000
nullable: true
type: string
curated:
description: Whether this is one of the operator-provided images every organization
shares. Curated images cannot be deleted and do not count against the
organization limit
example: false
type: boolean
curatedRef:
description: "The exact reference a curated image resolves to. Null for\
\ catalog images, which resolve through their versions"
nullable: true
type: string
example: null
aliases:
description: "Aliases recorded for this image. Empty for curated images,\
\ whose reference the operator pins"
example:
- v1
- latest
items:
type: string
type: array
versionCount:
description: How many pulled manifest digests this image holds
example: 2
type: number
sizeBytes:
description: "Sum of the pulled versions’ declared sizes, in bytes. Layers\
\ shared between versions are counted once per version. Null for curated\
\ images, whose bytes this system never measured"
example: 26214400
nullable: true
type: number
lastUsedAt:
description: When a box last booted from this image
example: 2026-01-01T00:00:00.000Z
nullable: true
type: string
createdAt:
description: When this image first entered the catalog. Null for curated
images
example: 2026-01-01T00:00:00.000Z
nullable: true
type: string
versions:
description: "Every pulled version, newest first"
items:
$ref: "#/components/schemas/ImageVersion"
type: array
history:
description: "Alias registration history, newest first and at most 100 events.\
\ Empty for curated images"
items:
$ref: "#/components/schemas/ImageAliasEvent"
type: array
required:
- aliases
- createdAt
- curated
- curatedRef
- history
- id
- lastUsedAt
- name
- sizeBytes
- versionCount
- versions
type: object
CreateImageAlias:
example:
alias: stable
versionId: 123e4567-e89b-12d3-a456-426614174000
properties:
alias:
description: New catalog alias; existing aliases are refused
example: stable
type: string
versionId:
description: Version to point the tag at. It must be a ready version of
this image
example: 123e4567-e89b-12d3-a456-426614174000
type: string
required:
- alias
- versionId
type: object
Announcement:
properties:
text:
description: The announcement text
example: New feature available!
type: string
learnMoreUrl:
description: URL to learn more about the announcement
example: https://example.com/learn-more
type: string
required:
- text
type: object
TurnstileConfig:
example:
sitekey: sitekey
action: signup
properties:
sitekey:
description: Public Turnstile widget sitekey
type: string
action:
description: Turnstile challenge action
enum:
- signup
type: string
required:
- action
- sitekey
type: object
PosthogConfig:
properties:
apiKey:
description: PostHog API key
example: phc_abc123
type: string
host:
description: PostHog host URL
example: https://app.posthog.com
type: string
required:
- apiKey
- host
type: object
OidcConfig:
properties:
issuer:
description: OIDC issuer
example: https://auth.example.com
type: string
clientId:
description: OIDC client ID
example: boxlite-client
type: string
audience:
description: OIDC audience
example: boxlite-api
type: string
endSessionEndpoint:
description: OIDC end-session endpoint. Set when the IdP does not advertise
one via discovery (e.g. Dex) and BoxLite hosts a compatible logout endpoint.
example: https://api.example.com/api/auth/end-session
type: string
required:
- audience
- clientId
- issuer
type: object
RateLimitEntry:
properties:
ttl:
description: Rate limit TTL in seconds
example: 60
type: number
limit:
description: Rate limit max requests
example: 100
type: number
type: object
RateLimitConfig:
properties:
failedAuth:
allOf:
- $ref: "#/components/schemas/RateLimitEntry"
description: Failed authentication rate limit
authenticated:
allOf:
- $ref: "#/components/schemas/RateLimitEntry"
description: Authenticated rate limit
boxCreate:
allOf:
- $ref: "#/components/schemas/RateLimitEntry"
description: Box create rate limit
boxLifecycle:
allOf:
- $ref: "#/components/schemas/RateLimitEntry"
description: Box lifecycle rate limit
type: object
BoxliteConfiguration:
example:
turnstile:
sitekey: sitekey
action: signup
version: 0.0.1
posthog: ""
oidc: ""
linkedAccountsEnabled: true
announcements:
feature-update:
text: New feature available!
learnMoreUrl: https://example.com
pylonAppId: pylon-app-123
proxyTemplateUrl: "https://{{PORT}}-{{boxId}}.proxy.example.com"
dashboardUrl: https://dashboard.example.com
maintananceMode: false
environment: production
billingApiUrl: https://billing.example.com
analyticsApiUrl: https://analytics.example.com
rateLimit: ""
properties:
turnstile:
$ref: "#/components/schemas/TurnstileConfig"
version:
description: BoxLite version
example: 0.0.1
type: string
posthog:
allOf:
- $ref: "#/components/schemas/PosthogConfig"
description: PostHog configuration
oidc:
allOf:
- $ref: "#/components/schemas/OidcConfig"
description: OIDC configuration
linkedAccountsEnabled:
description: Whether linked accounts are enabled
example: true
type: boolean
announcements:
additionalProperties:
$ref: "#/components/schemas/Announcement"
description: System announcements
example:
feature-update:
text: New feature available!
learnMoreUrl: https://example.com
type: object
pylonAppId:
description: Pylon application ID
example: pylon-app-123
type: string
proxyTemplateUrl:
description: Proxy template URL
example: "https://{{PORT}}-{{boxId}}.proxy.example.com"
type: string
dashboardUrl:
description: Dashboard URL
example: https://dashboard.example.com
type: string
maintananceMode:
description: Whether maintenance mode is enabled
example: false
type: boolean
environment:
description: Current environment
example: production
type: string
billingApiUrl:
description: Billing API URL
example: https://billing.example.com
type: string
analyticsApiUrl:
description: Analytics API URL
example: https://analytics.example.com
type: string
rateLimit:
allOf:
- $ref: "#/components/schemas/RateLimitConfig"
description: Rate limit configuration
required:
- announcements
- dashboardUrl
- environment
- linkedAccountsEnabled
- maintananceMode
- oidc
- proxyTemplateUrl
- version
type: object
CreateApiKey:
example:
name: My API Key
permissions:
- write:registries
- write:registries
expiresAt: 2025-06-09T12:00:00Z
properties:
name:
description: The name of the API key
example: My API Key
type: string
permissions:
description: "When omitted, requests all non-App permissions and the App\
\ Hosting permissions enabled for the organization. The caller must be\
\ allowed to grant every requested permission."
items:
enum:
- write:registries
- delete:registries
- write:templates
- delete:templates
- write:boxes
- delete:boxes
- read:volumes
- write:volumes
- delete:volumes
- write:regions
- delete:regions
- read:runners
- write:runners
- delete:runners
- read:audit_logs
- read:images
- delete:images
- read:registries
- write:images
- read:members
- write:members
- read:apps
- write:apps
- delete:apps
- write:secrets
- read:secrets
type: string
type: array
expiresAt:
description: When the API key expires
example: 2025-06-09T12:00:00Z
format: date-time
nullable: true
type: string
required:
- name
type: object
ApiKeyResponse:
example:
name: My API Key
value: bb_sk_1234567890abcdef
createdAt: 2024-03-14T12:00:00Z
permissions:
- write:registries
- write:registries
expiresAt: 2025-06-09T12:00:00Z
properties:
name:
description: The name of the API key
example: My API Key
type: string
value:
description: The API key value
example: bb_sk_1234567890abcdef
type: string
createdAt:
description: When the API key was created
example: 2024-03-14T12:00:00Z
format: date-time
type: string
permissions:
description: The list of organization resource permissions assigned to the
API key
items:
enum:
- write:registries
- delete:registries
- write:templates
- delete:templates
- write:boxes
- delete:boxes
- read:volumes
- write:volumes
- delete:volumes
- write:regions
- delete:regions
- read:runners
- write:runners
- delete:runners
- read:audit_logs
- read:images
- delete:images
- read:registries
- write:images
- read:members
- write:members
- read:apps
- write:apps
- delete:apps
- write:secrets
- read:secrets
type: string
type: array
expiresAt:
description: When the API key expires
example: 2025-06-09T12:00:00Z
format: date-time
nullable: true
type: string
required:
- createdAt
- expiresAt
- name
- permissions
- value
type: object
ApiKeyList:
example:
name: My API Key
value: bb_********************def
createdAt: 2024-03-14T12:00:00Z
permissions:
- write:registries
- write:registries
lastUsedAt: 2024-03-14T12:00:00Z
expiresAt: 2024-03-14T12:00:00Z
userId: "123"
properties:
name:
description: The name of the API key
example: My API Key
type: string
value:
description: The masked API key value
example: bb_********************def
type: string
createdAt:
description: When the API key was created
example: 2024-03-14T12:00:00Z
format: date-time
type: string
permissions:
description: The list of organization resource permissions assigned to the
API key
items:
enum:
- write:registries
- delete:registries
- write:templates
- delete:templates
- write:boxes
- delete:boxes
- read:volumes
- write:volumes
- delete:volumes
- write:regions
- delete:regions
- read:runners
- write:runners
- delete:runners
- read:audit_logs
- read:images
- delete:images
- read:registries
- write:images
- read:members
- write:members
- read:apps
- write:apps
- delete:apps
- write:secrets
- read:secrets
type: string
type: array
lastUsedAt:
description: When the API key was last used
example: 2024-03-14T12:00:00Z
format: date-time
nullable: true
type: string
expiresAt:
description: When the API key expires
example: 2024-03-14T12:00:00Z
format: date-time
nullable: true
type: string
userId:
description: The user ID of the user who created the API key
example: "123"
type: string
required:
- createdAt
- expiresAt
- lastUsedAt
- name
- permissions
- userId
- value
type: object
AuditLog:
example:
id: id
actorId: actorId
actorEmail: actorEmail
organizationId: organizationId
action: action
targetType: targetType
targetId: targetId
statusCode: 0.8008281904610115
errorMessage: errorMessage
ipAddress: ipAddress
userAgent: userAgent
source: source
metadata:
key: ""
createdAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
type: string
actorId:
type: string
actorEmail:
type: string
organizationId:
type: string
action:
type: string
targetType:
type: string
targetId:
type: string
statusCode:
type: number
errorMessage:
type: string
ipAddress:
type: string
userAgent:
type: string
source:
type: string
metadata:
additionalProperties: true
type: object
createdAt:
format: date-time
type: string
required:
- action
- actorEmail
- actorId
- createdAt
- id
type: object
PaginatedAuditLogs:
example:
items:
- id: id
actorId: actorId
actorEmail: actorEmail
organizationId: organizationId
action: action
targetType: targetType
targetId: targetId
statusCode: 0.8008281904610115
errorMessage: errorMessage
ipAddress: ipAddress
userAgent: userAgent
source: source
metadata:
key: ""
createdAt: 2000-01-23T04:56:07.000+00:00
- id: id
actorId: actorId
actorEmail: actorEmail
organizationId: organizationId
action: action
targetType: targetType
targetId: targetId
statusCode: 0.8008281904610115
errorMessage: errorMessage
ipAddress: ipAddress
userAgent: userAgent
source: source
metadata:
key: ""
createdAt: 2000-01-23T04:56:07.000+00:00
total: 6.027456183070403
page: 1.4658129805029452
totalPages: 5.962133916683182
nextToken: nextToken
properties:
items:
items:
$ref: "#/components/schemas/AuditLog"
type: array
total:
type: number
page:
type: number
totalPages:
type: number
nextToken:
description: Token for next page in cursor-based pagination
type: string
required:
- items
- page
- total
- totalPages
type: object
AdminCreateRunner:
example:
regionId: regionId
name: name
apiKey: apiKey
apiVersion: "2"
domain: runner1.example.com
apiUrl: https://api.runner1.example.com
proxyUrl: https://proxy.runner1.example.com
cpu: 8
memoryGiB: 16
diskGiB: 100
properties:
regionId:
type: string
name:
type: string
apiKey:
type: string
apiVersion:
description: The api version of the runner to create
example: "2"
pattern: ^(0|2)$
type: string
domain:
description: The domain of the runner
example: runner1.example.com
type: string
apiUrl:
description: The API URL of the runner
example: https://api.runner1.example.com
type: string
proxyUrl:
description: The proxy URL of the runner
example: https://proxy.runner1.example.com
type: string
cpu:
description: The CPU capacity of the runner
example: 8
type: number
memoryGiB:
description: The memory capacity of the runner in GiB
example: 16
type: number
diskGiB:
description: The disk capacity of the runner in GiB
example: 100
type: number
required:
- apiKey
- apiVersion
- name
- regionId
type: object
AdminRunner:
example:
id: runner123
domain: runner1.example.com
apiUrl: https://api.runner1.example.com
proxyUrl: https://proxy.runner1.example.com
cpu: 8
memory: 16
disk: 100
gpu: 1
gpuType: gpuType
class: small
currentCpuUsagePercentage: 45.6
currentMemoryUsagePercentage: 68.2
currentDiskUsagePercentage: 33.8
currentAllocatedCpu: 4000
currentAllocatedMemoryGiB: 8000
currentAllocatedDiskGiB: 50000
currentStartedBoxes: 5
availabilityScore: 85
region: us
name: runner1
state: initializing
lastChecked: 2024-10-01T12:00:00Z
unschedulable: false
createdAt: 2023-10-01T12:00:00Z
updatedAt: 2023-10-01T12:00:00Z
version: "0"
apiVersion: "0"
appVersion: v0.0.0-dev
regionType: shared
properties:
id:
description: The ID of the runner
example: runner123
type: string
domain:
description: The domain of the runner
example: runner1.example.com
type: string
apiUrl:
description: The API URL of the runner
example: https://api.runner1.example.com
type: string
proxyUrl:
description: The proxy URL of the runner
example: https://proxy.runner1.example.com
type: string
cpu:
description: The CPU capacity of the runner
example: 8
type: number
memory:
description: The memory capacity of the runner in GiB
example: 16
type: number
disk:
description: The disk capacity of the runner in GiB
example: 100
type: number
gpu:
description: The GPU capacity of the runner
example: 1
type: number
gpuType:
description: The type of GPU
type: string
class:
allOf:
- $ref: "#/components/schemas/BoxClass"
description: The class of the runner
example: small
currentCpuUsagePercentage:
description: Current CPU usage percentage
example: 45.6
type: number
currentMemoryUsagePercentage:
description: Current RAM usage percentage
example: 68.2
type: number
currentDiskUsagePercentage:
description: Current disk usage percentage
example: 33.8
type: number
currentAllocatedCpu:
description: Current allocated CPU
example: 4000
type: number
currentAllocatedMemoryGiB:
description: Current allocated memory in GiB
example: 8000
type: number
currentAllocatedDiskGiB:
description: Current allocated disk in GiB
example: 50000
type: number
currentStartedBoxes:
description: Current number of started boxes
example: 5
type: number
availabilityScore:
description: Runner availability score
example: 85
type: number
region:
description: The region of the runner
example: us
type: string
name:
description: The name of the runner
example: runner1
type: string
state:
allOf:
- $ref: "#/components/schemas/RunnerState"
description: The state of the runner
example: initializing
lastChecked:
description: The last time the runner was checked
example: 2024-10-01T12:00:00Z
type: string
unschedulable:
description: Whether the runner is unschedulable
example: false
type: boolean
createdAt:
description: The creation timestamp of the runner
example: 2023-10-01T12:00:00Z
type: string
updatedAt:
description: The last update timestamp of the runner
example: 2023-10-01T12:00:00Z
type: string
version:
deprecated: true
description: The version of the runner (deprecated in favor of apiVersion)
example: "0"
type: string
apiVersion:
deprecated: true
description: The api version of the runner
example: "0"
type: string
appVersion:
deprecated: true
description: The app version of the runner
example: v0.0.0-dev
type: string
regionType:
allOf:
- $ref: "#/components/schemas/RegionType"
description: The region type of the runner
example: shared
required:
- apiVersion
- class
- cpu
- createdAt
- disk
- id
- memory
- name
- region
- state
- unschedulable
- updatedAt
- version
type: object
AdminRegionOverview:
example:
id: id
name: name
type: type
state: critical
runnerCount: 6.027456183070403
boxCount: 1.4658129805029452
queueDepth: 5.962133916683182
cpuCapacityMillis: 5.637376656633329
memoryCapacityBytes: memoryCapacityBytes
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
type: string
name:
type: string
type:
type: string
state:
enum:
- critical
- degraded
- healthy
- unknown
type: string
runnerCount:
type: number
boxCount:
type: number
queueDepth:
type: number
cpuCapacityMillis:
nullable: true
type: number
memoryCapacityBytes:
description: Integer encoded as a decimal string
nullable: true
type: string
observedAt:
format: date-time
nullable: true
type: string
required:
- boxCount
- id
- name
- queueDepth
- runnerCount
- state
- type
type: object
AdminRegionOverviewPage:
example:
nextCursor: nextCursor
limit: 16.93648099017413
items:
- id: id
name: name
type: type
state: critical
runnerCount: 6.027456183070403
boxCount: 1.4658129805029452
queueDepth: 5.962133916683182
cpuCapacityMillis: 5.637376656633329
memoryCapacityBytes: memoryCapacityBytes
observedAt: 2000-01-23T04:56:07.000+00:00
- id: id
name: name
type: type
state: critical
runnerCount: 6.027456183070403
boxCount: 1.4658129805029452
queueDepth: 5.962133916683182
cpuCapacityMillis: 5.637376656633329
memoryCapacityBytes: memoryCapacityBytes
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
nextCursor:
description: Opaque cursor for the next page
nullable: true
type: string
limit:
maximum: 200
minimum: 1
type: number
items:
items:
$ref: "#/components/schemas/AdminRegionOverview"
type: array
required:
- items
- limit
type: object
AdminBoxOverview:
example:
id: id
name: name
image: image
organizationId: organizationId
runnerId: runnerId
regionId: regionId
desiredState: desiredState
observedState: observedState
health: critical
cpuMillis: 6.027456183070403
memoryBytes: memoryBytes
storageBytes: storageBytes
activeJobCount: 1.4658129805029452
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
type: string
name:
type: string
image:
description: "Stored Box image reference, when available. Null when no image\
\ is stored."
nullable: true
type: string
organizationId:
type: string
runnerId:
nullable: true
type: string
regionId:
type: string
desiredState:
type: string
observedState:
type: string
health:
enum:
- critical
- degraded
- healthy
- unknown
type: string
cpuMillis:
nullable: true
type: number
memoryBytes:
description: Integer encoded as a decimal string
nullable: true
type: string
storageBytes:
description: Integer encoded as a decimal string
nullable: true
type: string
activeJobCount:
type: number
observedAt:
format: date-time
nullable: true
type: string
required:
- activeJobCount
- desiredState
- health
- id
- name
- observedState
- organizationId
- regionId
type: object
AdminBoxOverviewPage:
example:
nextCursor: nextCursor
limit: 16.93648099017413
items:
- id: id
name: name
image: image
organizationId: organizationId
runnerId: runnerId
regionId: regionId
desiredState: desiredState
observedState: observedState
health: critical
cpuMillis: 6.027456183070403
memoryBytes: memoryBytes
storageBytes: storageBytes
activeJobCount: 1.4658129805029452
observedAt: 2000-01-23T04:56:07.000+00:00
- id: id
name: name
image: image
organizationId: organizationId
runnerId: runnerId
regionId: regionId
desiredState: desiredState
observedState: observedState
health: critical
cpuMillis: 6.027456183070403
memoryBytes: memoryBytes
storageBytes: storageBytes
activeJobCount: 1.4658129805029452
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
nextCursor:
description: Opaque cursor for the next page
nullable: true
type: string
limit:
maximum: 200
minimum: 1
type: number
items:
items:
$ref: "#/components/schemas/AdminBoxOverview"
type: array
required:
- items
- limit
type: object
AdminBoxJobReference:
example:
id: id
type: type
properties:
id:
type: string
type:
type: string
required:
- id
- type
type: object
AdminBoxJobReferencePage:
example:
nextCursor: nextCursor
limit: 30.16967831200861
items:
- id: id
type: type
- id: id
type: type
properties:
nextCursor:
description: Opaque cursor for the next page
nullable: true
type: string
limit:
maximum: 200
minimum: 1
type: number
items:
items:
$ref: "#/components/schemas/AdminBoxJobReference"
type: array
required:
- items
- limit
type: object
AdminBoxDetail:
example:
id: id
name: name
image: image
organizationId: organizationId
runnerId: runnerId
regionId: regionId
desiredState: desiredState
observedState: observedState
health: critical
cpuMillis: 0.8008281904610115
memoryBytes: memoryBytes
storageBytes: storageBytes
activeJobCount: 6.027456183070403
observedAt: 2000-01-23T04:56:07.000+00:00
jobs:
nextCursor: nextCursor
limit: 30.16967831200861
items:
- id: id
type: type
- id: id
type: type
properties:
id:
type: string
name:
type: string
image:
description: "Stored Box image reference, when available. Null when no image\
\ is stored."
nullable: true
type: string
organizationId:
type: string
runnerId:
nullable: true
type: string
regionId:
type: string
desiredState:
type: string
observedState:
type: string
health:
enum:
- critical
- degraded
- healthy
- unknown
type: string
cpuMillis:
nullable: true
type: number
memoryBytes:
description: Integer encoded as a decimal string
nullable: true
type: string
storageBytes:
description: Integer encoded as a decimal string
nullable: true
type: string
activeJobCount:
type: number
observedAt:
format: date-time
nullable: true
type: string
jobs:
$ref: "#/components/schemas/AdminBoxJobReferencePage"
required:
- activeJobCount
- desiredState
- health
- id
- jobs
- name
- observedState
- organizationId
- regionId
type: object
AdminJobOverview:
example:
id: id
type: type
status: status
runnerId: runnerId
resourceType: resourceType
resourceId: resourceId
createdAt: 2000-01-23T04:56:07.000+00:00
startedAt: 2000-01-23T04:56:07.000+00:00
finishedAt: 2000-01-23T04:56:07.000+00:00
durationMs: 6.027456183070403
errorCategory: capacity
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
type: string
type:
type: string
status:
type: string
runnerId:
nullable: true
type: string
resourceType:
type: string
resourceId:
type: string
createdAt:
format: date-time
nullable: true
type: string
startedAt:
format: date-time
nullable: true
type: string
finishedAt:
format: date-time
nullable: true
type: string
durationMs:
nullable: true
type: number
errorCategory:
enum:
- capacity
- network
- image
- storage
- timeout
- unknown
nullable: true
type: string
observedAt:
format: date-time
nullable: true
type: string
required:
- id
- resourceId
- resourceType
- status
- type
type: object
AdminJobOverviewPage:
example:
nextCursor: nextCursor
limit: 16.93648099017413
items:
- id: id
type: type
status: status
runnerId: runnerId
resourceType: resourceType
resourceId: resourceId
createdAt: 2000-01-23T04:56:07.000+00:00
startedAt: 2000-01-23T04:56:07.000+00:00
finishedAt: 2000-01-23T04:56:07.000+00:00
durationMs: 6.027456183070403
errorCategory: capacity
observedAt: 2000-01-23T04:56:07.000+00:00
- id: id
type: type
status: status
runnerId: runnerId
resourceType: resourceType
resourceId: resourceId
createdAt: 2000-01-23T04:56:07.000+00:00
startedAt: 2000-01-23T04:56:07.000+00:00
finishedAt: 2000-01-23T04:56:07.000+00:00
durationMs: 6.027456183070403
errorCategory: capacity
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
nextCursor:
description: Opaque cursor for the next page
nullable: true
type: string
limit:
maximum: 200
minimum: 1
type: number
items:
items:
$ref: "#/components/schemas/AdminJobOverview"
type: array
required:
- items
- limit
type: object
AdminComponentVersionCount:
example:
version: version
count: 0.8008281904610115
properties:
version:
nullable: true
type: string
count:
type: number
required:
- count
type: object
AdminComponentIdentities:
example:
api:
version: version
runners:
- version: version
count: 0.8008281904610115
- version: version
count: 0.8008281904610115
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
api:
$ref: "#/components/schemas/AdminComponentIdentities_api"
runners:
items:
$ref: "#/components/schemas/AdminComponentVersionCount"
type: array
observedAt:
format: date-time
type: string
required:
- api
- observedAt
- runners
type: object
AdminOrganizationVerifiedCreator:
properties:
userId:
type: string
email:
description: "Current email, not necessarily the email at registration."
format: email
nullable: true
type: string
displayName:
type: string
emailVerified:
description: Current verification state from the creator account.
type: boolean
required:
- displayName
- email
- userId
type: object
AdminOrganizationOverview:
example:
createdAt: 2000-01-23T04:56:07.000+00:00
createdBy: createdBy
creator: "{}"
organizationId: organizationId
name: name
memberCount: 6.027456183070403
boxCount: 1.4658129805029452
impactState: impacted
memberEmails:
- memberEmails
- memberEmails
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
createdAt:
description: Organization creation time.
format: date-time
type: string
createdBy:
description: Stored creator ID; account linking replaces it with the primary
user ID.
type: string
creator:
allOf:
- $ref: "#/components/schemas/AdminOrganizationVerifiedCreator"
description: Current creator identity.
nullable: true
type: object
organizationId:
type: string
name:
type: string
memberCount:
type: number
boxCount:
type: number
impactState:
enum:
- impacted
- not_impacted
type: string
memberEmails:
description: Up to 200 non-empty member emails ordered by user ID; present
only with include=memberEmails.
items:
type: string
type: array
observedAt:
format: date-time
type: string
required:
- boxCount
- createdAt
- createdBy
- creator
- impactState
- memberCount
- name
- observedAt
- organizationId
type: object
AdminOrganizationOverviewPage:
example:
nextCursor: nextCursor
limit: 16.93648099017413
items:
- createdAt: 2000-01-23T04:56:07.000+00:00
createdBy: createdBy
creator: "{}"
organizationId: organizationId
name: name
memberCount: 6.027456183070403
boxCount: 1.4658129805029452
impactState: impacted
memberEmails:
- memberEmails
- memberEmails
observedAt: 2000-01-23T04:56:07.000+00:00
- createdAt: 2000-01-23T04:56:07.000+00:00
createdBy: createdBy
creator: "{}"
organizationId: organizationId
name: name
memberCount: 6.027456183070403
boxCount: 1.4658129805029452
impactState: impacted
memberEmails:
- memberEmails
- memberEmails
observedAt: 2000-01-23T04:56:07.000+00:00
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
nextCursor:
description: Opaque cursor for the next page
nullable: true
type: string
limit:
maximum: 200
minimum: 1
type: number
items:
items:
$ref: "#/components/schemas/AdminOrganizationOverview"
type: array
observedAt:
format: date-time
nullable: true
type: string
required:
- items
- limit
type: object
AdminOrganizationCreator:
properties:
userId:
type: string
email:
description: "Current email, not necessarily the email at registration."
format: email
nullable: true
type: string
displayName:
type: string
required:
- displayName
- email
- userId
type: object
AdminOrganizationMember:
example:
userId: userId
email: email
displayName: displayName
organizationRole: organizationRole
joinedAt: 2000-01-23T04:56:07.000+00:00
properties:
userId:
type: string
email:
type: string
displayName:
type: string
organizationRole:
type: string
joinedAt:
format: date-time
type: string
required:
- displayName
- email
- joinedAt
- organizationRole
- userId
type: object
AdminOrganizationMemberPage:
example:
nextCursor: nextCursor
limit: 16.93648099017413
items:
- userId: userId
email: email
displayName: displayName
organizationRole: organizationRole
joinedAt: 2000-01-23T04:56:07.000+00:00
- userId: userId
email: email
displayName: displayName
organizationRole: organizationRole
joinedAt: 2000-01-23T04:56:07.000+00:00
properties:
nextCursor:
description: Opaque cursor for the next page
nullable: true
type: string
limit:
maximum: 200
minimum: 1
type: number
items:
items:
$ref: "#/components/schemas/AdminOrganizationMember"
type: array
required:
- items
- limit
type: object
AdminOrganizationBox:
example:
id: id
name: name
observedState: observedState
desiredState: desiredState
runnerId: runnerId
region: region
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
id:
type: string
name:
type: string
observedState:
type: string
desiredState:
type: string
runnerId:
nullable: true
type: string
region:
type: string
observedAt:
format: date-time
type: string
required:
- desiredState
- id
- name
- observedAt
- observedState
- region
type: object
AdminOrganizationBoxPage:
example:
nextCursor: nextCursor
limit: 120.94637804310102
items:
- id: id
name: name
observedState: observedState
desiredState: desiredState
runnerId: runnerId
region: region
observedAt: 2000-01-23T04:56:07.000+00:00
- id: id
name: name
observedState: observedState
desiredState: desiredState
runnerId: runnerId
region: region
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
nextCursor:
description: Opaque cursor for the next page
nullable: true
type: string
limit:
maximum: 200
minimum: 1
type: number
items:
items:
$ref: "#/components/schemas/AdminOrganizationBox"
type: array
required:
- items
- limit
type: object
AdminOrganizationImpactEvidence:
example:
boxId: boxId
observedAt: 2000-01-23T04:56:07.000+00:00
summary: summary
properties:
boxId:
type: string
observedAt:
format: date-time
type: string
summary:
type: string
required:
- boxId
- observedAt
- summary
type: object
AdminOrganizationImpact:
example:
state: impacted
evidence:
- boxId: boxId
observedAt: 2000-01-23T04:56:07.000+00:00
summary: summary
- boxId: boxId
observedAt: 2000-01-23T04:56:07.000+00:00
summary: summary
properties:
state:
enum:
- impacted
- not_impacted
type: string
evidence:
items:
$ref: "#/components/schemas/AdminOrganizationImpactEvidence"
type: array
required:
- evidence
- state
type: object
AdminOrganizationUsage:
example:
periodStart: 2000-01-23T04:56:07.000+00:00
periodEnd: 2000-01-23T04:56:07.000+00:00
computeSeconds: computeSeconds
storageByteSeconds: storageByteSeconds
properties:
periodStart:
format: date-time
type: string
periodEnd:
format: date-time
type: string
computeSeconds:
description: Integer encoded as a decimal string
type: string
storageByteSeconds:
description: Integer encoded as a decimal string
type: string
required:
- computeSeconds
- periodEnd
- periodStart
- storageByteSeconds
type: object
AdminOrganizationActivation:
properties:
organizationId:
format: uuid
type: string
lastBoxCreatedAt:
description: Maximum retained Box creation or warm-pool claim time; survives
Box deletion. Null means none was recorded; organizations older than tracking
only have retained creation times.
format: date-time
nullable: true
type: string
lastBoxModifiedAt:
description: "Maximum observed successful-start or accepted-deletion time;\
\ cleanup, stops and label edits do not advance it. Null means none was\
\ recorded since tracking began."
format: date-time
nullable: true
type: string
observedAt:
format: date-time
type: string
required:
- lastBoxCreatedAt
- lastBoxModifiedAt
- observedAt
- organizationId
type: object
AdminOrganizationDetail:
example:
createdAt: 2000-01-23T04:56:07.000+00:00
createdBy: createdBy
creator: "{}"
organizationId: organizationId
name: name
suspended: true
members:
nextCursor: nextCursor
limit: 16.93648099017413
items:
- userId: userId
email: email
displayName: displayName
organizationRole: organizationRole
joinedAt: 2000-01-23T04:56:07.000+00:00
- userId: userId
email: email
displayName: displayName
organizationRole: organizationRole
joinedAt: 2000-01-23T04:56:07.000+00:00
boxes:
nextCursor: nextCursor
limit: 120.94637804310102
items:
- id: id
name: name
observedState: observedState
desiredState: desiredState
runnerId: runnerId
region: region
observedAt: 2000-01-23T04:56:07.000+00:00
- id: id
name: name
observedState: observedState
desiredState: desiredState
runnerId: runnerId
region: region
observedAt: 2000-01-23T04:56:07.000+00:00
impact:
state: impacted
evidence:
- boxId: boxId
observedAt: 2000-01-23T04:56:07.000+00:00
summary: summary
- boxId: boxId
observedAt: 2000-01-23T04:56:07.000+00:00
summary: summary
usage:
periodStart: 2000-01-23T04:56:07.000+00:00
periodEnd: 2000-01-23T04:56:07.000+00:00
computeSeconds: computeSeconds
storageByteSeconds: storageByteSeconds
activation: "{}"
observedAt: 2000-01-23T04:56:07.000+00:00
properties:
createdAt:
description: Organization creation time.
format: date-time
type: string
createdBy:
description: Stored creator ID; account linking replaces it with the primary
user ID.
type: string
creator:
allOf:
- $ref: "#/components/schemas/AdminOrganizationCreator"
description: Current creator identity.
nullable: true
type: object
organizationId:
type: string
name:
type: string
suspended:
description: Stored organization suspension flag; does not evaluate suspendedUntil.
Older servers may omit it.
readOnly: true
type: boolean
members:
$ref: "#/components/schemas/AdminOrganizationMemberPage"
boxes:
$ref: "#/components/schemas/AdminOrganizationBoxPage"
impact:
$ref: "#/components/schemas/AdminOrganizationImpact"
usage:
$ref: "#/components/schemas/AdminOrganizationUsage"
activation:
allOf:
- $ref: "#/components/schemas/AdminOrganizationActivation"
description: Only with include=activation.
nullable: true
type: object
observedAt:
format: date-time
type: string
required:
- boxes
- createdAt
- createdBy
- creator
- impact
- members
- name
- observedAt
- organizationId
type: object
AdminUsageQuery:
example:
from: 2000-01-23T04:56:07.000+00:00
to: 2000-01-23T04:56:07.000+00:00
granularity: window
metrics:
- computeVcpuSeconds
- computeVcpuSeconds
groupBy:
- organizationId
- organizationId
organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
regionId: regionId
boxId: boxId
properties:
from:
format: date-time
type: string
to:
format: date-time
type: string
granularity:
enum:
- window
- hour
- day
type: string
metrics:
items:
enum:
- computeVcpuSeconds
- storageByteSeconds
- memoryGibSeconds
type: string
type: array
groupBy:
items:
enum:
- organizationId
- regionId
- boxId
type: string
maxItems: 2
minItems: 1
type: array
organizationId:
format: uuid
type: string
regionId:
maxLength: 128
type: string
boxId:
maxLength: 128
type: string
required:
- from
- granularity
- groupBy
- metrics
- to
type: object
AdminUsageCoverage:
example:
status: unknown
reason: usage_events_not_backfilled
properties:
status:
enum:
- unknown
type: string
reason:
enum:
- usage_events_not_backfilled
type: string
required:
- reason
- status
type: object
AdminUsageDimensions:
example:
organizationId: organizationId
regionId: regionId
boxId: boxId
properties:
organizationId:
type: string
regionId:
type: string
boxId:
type: string
type: object
AdminUsageValues:
example:
computeVcpuSeconds: computeVcpuSeconds
storageByteSeconds: storageByteSeconds
memoryGibSeconds: memoryGibSeconds
properties:
computeVcpuSeconds:
description: Recorded allocated vCPU-seconds as an exact decimal string.
type: string
storageByteSeconds:
description: Recorded allocated byte-seconds as an exact decimal string.
type: string
memoryGibSeconds:
description: Recorded allocated GiB-seconds as an exact decimal string.
type: string
type: object
AdminUsageItem:
example:
from: 2000-01-23T04:56:07.000+00:00
to: 2000-01-23T04:56:07.000+00:00
dimensions:
organizationId: organizationId
regionId: regionId
boxId: boxId
values:
computeVcpuSeconds: computeVcpuSeconds
storageByteSeconds: storageByteSeconds
memoryGibSeconds: memoryGibSeconds
sourcePeriodCount: 16017
properties:
from:
format: date-time
type: string
to:
format: date-time
type: string
dimensions:
$ref: "#/components/schemas/AdminUsageDimensions"
values:
$ref: "#/components/schemas/AdminUsageValues"
sourcePeriodCount:
maximum: 200000
minimum: 1
type: integer
required:
- dimensions
- from
- sourcePeriodCount
- to
- values
type: object
AdminUsagePage:
example:
queryId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
generatedAt: 2000-01-23T04:56:07.000+00:00
expiresAt: 2000-01-23T04:56:07.000+00:00
definitionVersion: resource-usage-v1
query:
from: 2000-01-23T04:56:07.000+00:00
to: 2000-01-23T04:56:07.000+00:00
granularity: window
metrics:
- computeVcpuSeconds
- computeVcpuSeconds
groupBy:
- organizationId
- organizationId
organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
regionId: regionId
boxId: boxId
coverage:
status: unknown
reason: usage_events_not_backfilled
items:
- from: 2000-01-23T04:56:07.000+00:00
to: 2000-01-23T04:56:07.000+00:00
dimensions:
organizationId: organizationId
regionId: regionId
boxId: boxId
values:
computeVcpuSeconds: computeVcpuSeconds
storageByteSeconds: storageByteSeconds
memoryGibSeconds: memoryGibSeconds
sourcePeriodCount: 16017
- from: 2000-01-23T04:56:07.000+00:00
to: 2000-01-23T04:56:07.000+00:00
dimensions:
organizationId: organizationId
regionId: regionId
boxId: boxId
values:
computeVcpuSeconds: computeVcpuSeconds
storageByteSeconds: storageByteSeconds
memoryGibSeconds: memoryGibSeconds
sourcePeriodCount: 16017
nextCursor: nextCursor
properties:
queryId:
format: uuid
type: string
generatedAt:
format: date-time
type: string
expiresAt:
format: date-time
type: string
definitionVersion:
enum:
- resource-usage-v1
type: string
query:
$ref: "#/components/schemas/AdminUsageQuery"
coverage:
$ref: "#/components/schemas/AdminUsageCoverage"
items:
items:
$ref: "#/components/schemas/AdminUsageItem"
type: array
nextCursor:
nullable: true
type: string
required:
- coverage
- definitionVersion
- expiresAt
- generatedAt
- items
- nextCursor
- query
- queryId
type: object
AdminUsageError:
example:
statusCode: 6
code: invalid_usage_query
message: message
properties:
statusCode:
enum:
- 400
- 410
- 422
- 503
type: integer
code:
enum:
- invalid_usage_query
- usage_query_expired
- usage_query_too_large
- usage_source_unavailable
type: string
message:
type: string
required:
- code
- message
- statusCode
type: object
AdminOrganizationNestedVirtualization:
example:
enabled: true
properties:
enabled:
description: Allow new boxes to use nesting when their selected Runner supports
it.
type: boolean
required:
- enabled
type: object
OrganizationAppHostingPermissionsDto:
example:
appHostingPermissions:
- read:apps
- read:apps
properties:
appHostingPermissions:
description: App Hosting scopes enabled for the organization. An empty list
disables access.
items:
enum:
- read:apps
- write:apps
- delete:apps
type: string
type: array
required:
- appHostingPermissions
type: object
WebhookAppPortalAccess:
example:
token: appsk_...
url: https://app.svix.com/app_1234567890
properties:
token:
description: The authentication token for the Svix consumer app portal
example: appsk_...
type: string
url:
description: The URL to the webhook app portal
example: https://app.svix.com/app_1234567890
type: string
required:
- token
- url
type: object
WebhookEvent:
description: The type of event being sent
enum:
- box.created
- box.state.updated
- template.created
- template.state.updated
- template.removed
- volume.created
- volume.state.updated
type: string
SendWebhookDto:
example:
eventType: box.created
payload:
id: box-123
name: My Box
eventId: evt_1234567890abcdef
properties:
eventType:
allOf:
- $ref: "#/components/schemas/WebhookEvent"
description: The type of event being sent
example: box.created
payload:
description: The payload data to send
example:
id: box-123
name: My Box
type: object
eventId:
description: Optional event ID for idempotency
example: evt_1234567890abcdef
type: string
required:
- eventType
- payload
type: object
WebhookInitializationStatus:
example:
organizationId: 123e4567-e89b-12d3-a456-426614174000
svixApplicationId: app_1234567890
lastError: Failed to create Svix application
retryCount: 3
createdAt: 2023-01-01T00:00:00.000Z
updatedAt: 2023-01-01T00:00:00.000Z
properties:
organizationId:
description: Organization ID
example: 123e4567-e89b-12d3-a456-426614174000
type: string
svixApplicationId:
description: The ID of the Svix application
example: app_1234567890
nullable: true
type: string
lastError:
description: The error reason for the last initialization attempt
example: Failed to create Svix application
nullable: true
type: string
retryCount:
description: The number of times the initialization has been attempted
example: 3
type: number
createdAt:
description: When the webhook initialization was created
example: 2023-01-01T00:00:00.000Z
type: string
updatedAt:
description: When the webhook initialization was last updated
example: 2023-01-01T00:00:00.000Z
type: string
required:
- createdAt
- lastError
- organizationId
- retryCount
- svixApplicationId
- updatedAt
type: object
adminSetOrganizationNestedVirtualization_request:
additionalProperties: false
properties:
enabled:
description: Allow new boxes to use nesting when their selected Runner supports
it.
type: boolean
required:
- enabled
type: object
WebhookController_getStatus_200_response:
example:
enabled: true
properties:
enabled:
type: boolean
type: object
HealthController_check_200_response_info_value:
additionalProperties: true
properties:
status:
type: string
required:
- status
type: object
HealthController_check_200_response:
example:
status: ok
info:
database:
status: up
error: {}
details:
database:
status: up
properties:
status:
example: ok
type: string
info:
additionalProperties:
$ref: "#/components/schemas/HealthController_check_200_response_info_value"
example:
database:
status: up
nullable: true
type: object
error:
additionalProperties:
$ref: "#/components/schemas/HealthController_check_200_response_info_value"
example: {}
nullable: true
type: object
details:
additionalProperties:
$ref: "#/components/schemas/HealthController_check_200_response_info_value"
example:
database:
status: up
type: object
type: object
AdminComponentIdentities_api:
example:
version: version
properties:
version:
nullable: true
type: string
type: object
securitySchemes:
bearer:
bearerFormat: JWT
description: API Key access
scheme: bearer
type: http
oauth2:
openIdConnectUrl: http://localhost:3000/.well-known/openid-configuration
type: openIdConnect