Skip to content

Login user​

POST
/auth/login

Authenticate user and return access token.

Parameters

username : str
User's username provided via form data
password : str
User's password provided via form data

Returns

TokenResponse
Response containing access_token, token_type, and username

Raises

HTTPException
401 if authentication fails due to incorrect username or password

Authorizations​

BearerAuth

Bearer token authentication. Use the access_token from login response.

Type
HTTP (bearer)

Request Body​

application/x-www-form-urlencoded

Responses​

Successful Response

application/json
JSON
{
  
"access_token": "string",
  
"token_type": "bearer",
  
"user_id": "string",
  
"username": "string",
  
"default_project_id": "string",
  
"must_change_password": false
}

Playground​

Authorization
Body

Samples​


Register a new user (admin only)​

POST
/auth/register

Register a new user account (admin only).

Parameters

user_data : UserCreate
User registration data including username, password, and optional display_name
current_user : User
Current authenticated admin user
auth_service : AuthService
The auth service instance

Returns

UserWithToken
Newly created user information including access_token

Raises

HTTPException
403 if the current user is not an admin
400 if the username is already registered

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"username": "string",
  
"password": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"create_default_project": false
}

Responses​

Successful Response

application/json
JSON
{
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"disabled": true,
  
"default_project_id": "string",
  
"must_change_password": false,
  
"system_role": "user",
  
"access_token": "string",
  
"initial_password": "string"
}

Playground​

Authorization
Body

Samples​


Get current user​

GET
/auth/me

Get current authenticated user information.

Parameters

current_user : User
Current authenticated user injected via dependency

Returns

User
Current user's profile information

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"disabled": true,
  
"default_project_id": "string",
  
"must_change_password": false,
  
"system_role": "user"
}

Playground​

Authorization

Samples​


Update current user profile​

PATCH
/auth/me

Update the current user's editable profile fields.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"display_name": "string",
  
"avatar_key": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"disabled": true,
  
"default_project_id": "string",
  
"must_change_password": false,
  
"system_role": "user"
}

Playground​

Authorization
Body

Samples​


Logout user​

POST
/auth/logout

Logout the current user.

Returns

dict[str, str]
Success message confirming logout

Authorizations​

BearerAuth

Bearer token authentication. Use the access_token from login response.

Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization

Samples​


Change user password​

POST
/auth/change-password

Change the current user's password.

Parameters

password_data : PasswordChange
Contains current_password and new_password
current_user : User
Current authenticated user injected via dependency
auth_service : AuthService
The auth service instance

Returns

dict[str, str]
Success message confirming password change

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"current_password": "string",
  
"new_password": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Body

Samples​


Reset user password (admin only)​

POST
/auth/reset-password

Reset a user's password (admin only).

Parameters

password_data : PasswordReset
Contains the target username
admin : User
Current authenticated admin user
auth_service : AuthService
The auth service instance

Returns

PasswordResetResponse
Generated temporary password, returned only in this response

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"username": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"message": "string",
  
"initial_password": "string"
}

Playground​

Authorization
Body

Samples​


Reload configuration caches​

POST
/admin/config/reload

Reload cached YAML configuration (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"cleared": [
  
  
"string"
  
]
}

Playground​

Authorization

Samples​


List all users​

GET
/admin/users

List all users in the system (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

skip
Type
integer
Default
0
limit
Type
integer
Default
100

Responses​

Successful Response

application/json
JSON
{
  
"users": [
  
  
{
  
  
  
"user_id": "string",
  
  
  
"username": "string",
  
  
  
"display_name": "string",
  
  
  
"organization": "string",
  
  
  
"avatar_key": "string",
  
  
  
"disabled": false,
  
  
  
"system_role": "user",
  
  
  
"default_project_id": "string",
  
  
  
"must_change_password": false
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Variables
Key
Value

Samples​


Get user details​

GET
/admin/users/{username}

Get detailed information about a specific user (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

username*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"disabled": false,
  
"system_role": "user",
  
"default_project_id": "string",
  
"must_change_password": false,
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Update user settings​

PUT
/admin/users/{username}

Update user settings (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

username*
Type
string
Required

Request Body​

application/json
JSON
{
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"disabled": true,
  
"system_role": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"disabled": false,
  
"system_role": "user",
  
"default_project_id": "string",
  
"must_change_password": false,
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Delete user​

DELETE
/admin/users/{username}

Delete a user account (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

username*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Bulk import users from CSV​

POST
/admin/users/bulk-import

Create users from a CSV file and return generated temporary passwords.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

multipart/form-data
Format"binary"

Responses​

Successful Response

application/json
JSON
{
  
"results": [
  
  
{
  
  
  
"row_number": 0,
  
  
  
"username": "string",
  
  
  
"display_name": "string",
  
  
  
"organization": "string",
  
  
  
"system_role": "user",
  
  
  
"initial_password": "string",
  
  
  
"status": "string",
  
  
  
"message": "string"
  
  
}
  
],
  
"created": 0,
  
"skipped": 0,
  
"failed": 0,
  
"total": 0
}

Playground​

Authorization
Body

Samples​


List all projects​

GET
/admin/projects

List all projects in the system (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

skip
Type
integer
Default
0
limit
Type
integer
Default
100

Responses​

Successful Response

application/json
JSON
{
  
"projects": [
  
  
{
  
  
  
"project_id": "string",
  
  
  
"name": "string",
  
  
  
"owner_user_id": "string",
  
  
  
"owner_username": "string",
  
  
  
"description": "string",
  
  
  
"member_count": 0,
  
  
  
"created_at": "string"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Variables
Key
Value

Samples​


Delete project​

DELETE
/admin/projects/{project_id}

Delete a project and all its memberships (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


List project members​

GET
/admin/projects/{project_id}/members

List all members of a project (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"members": [
  
  
{
  
  
  
"user_id": "string",
  
  
  
"username": "string",
  
  
  
"display_name": "string",
  
  
  
"organization": "string",
  
  
  
"avatar_key": "string",
  
  
  
"role": "string",
  
  
  
"status": "active"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Variables
Key
Value

Samples​


Add member to project​

POST
/admin/projects/{project_id}/members

Add a member to a project (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"username": "string",
  
"role": "viewer"
}

Responses​

Successful Response

application/json
JSON
{
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"role": "string",
  
"status": "active"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Remove member from project​

DELETE
/admin/projects/{project_id}/members/{username}

Remove a member from a project (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*
Type
string
Required
username*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Create project for user​

POST
/admin/users/{username}/project

Create a default project for a user who doesn't have one (admin only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

username*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"disabled": false,
  
"system_role": "user",
  
"default_project_id": "string",
  
"must_change_password": false,
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


List user's projects​

GET
/projects

List all projects the user has access to.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"projects": [
  
  
{
  
  
  
"project_id": "string",
  
  
  
"owner_user_id": "string",
  
  
  
"owner_username": "string",
  
  
  
"name": "string",
  
  
  
"description": "string",
  
  
  
"tags": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"default_role": "string",
  
  
  
"created_at": "string",
  
  
  
"updated_at": "string"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization

Samples​


Create a new project​

POST
/projects

Create a new project with the current user as owner.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"name": "string",
  
"description": "string",
  
"tags": [
  
  
"string"
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"project_id": "string",
  
"owner_user_id": "string",
  
"owner_username": "string",
  
"name": "string",
  
"description": "string",
  
"tags": [
  
  
"string"
  
],
  
"default_role": "string",
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Body

Samples​


Get project details​

GET
/projects/{project_id}

Get details of a specific project.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*

Project identifier

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"project_id": "string",
  
"owner_user_id": "string",
  
"owner_username": "string",
  
"name": "string",
  
"description": "string",
  
"tags": [
  
  
"string"
  
],
  
"default_role": "string",
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Delete project​

DELETE
/projects/{project_id}

Delete a project. Owner only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*

Project identifier

Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Variables
Key
Value

Samples​


Update project​

PATCH
/projects/{project_id}

Update project settings. Owner only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*

Project identifier

Type
string
Required

Request Body​

application/json
JSON
{
  
"name": "string",
  
"description": "string",
  
"tags": [
  
  
"string"
  
],
  
"default_role": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"project_id": "string",
  
"owner_user_id": "string",
  
"owner_username": "string",
  
"name": "string",
  
"description": "string",
  
"tags": [
  
  
"string"
  
],
  
"default_role": "string",
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


List project members​

GET
/projects/{project_id}/members

List active members of a project.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*

Project identifier

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"members": [
  
  
{
  
  
  
"project_id": "string",
  
  
  
"user_id": "string",
  
  
  
"username": "string",
  
  
  
"display_name": "string",
  
  
  
"organization": "string",
  
  
  
"avatar_key": "string",
  
  
  
"role": "string",
  
  
  
"status": "string",
  
  
  
"invited_by_user_id": "string",
  
  
  
"invited_by": "string",
  
  
  
"last_accessed_at": "string"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Variables
Key
Value

Samples​


Invite a member​

POST
/projects/{project_id}/members

Invite a user to the project. Owner only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*

Project identifier

Type
string
Required

Request Body​

application/json
JSON
{
  
"username": "string",
  
"role": "viewer"
}

Responses​

Successful Response

application/json
JSON
{
  
"project_id": "string",
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"role": "string",
  
"status": "string",
  
"invited_by_user_id": "string",
  
"invited_by": "string",
  
"last_accessed_at": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Remove member​

DELETE
/projects/{project_id}/members/{username}

Remove a member from the project. Owner only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

username*
Type
string
Required
project_id*

Project identifier

Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Variables
Key
Value

Samples​


Update member role​

PATCH
/projects/{project_id}/members/{username}

Update a member's role. Owner only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

username*
Type
string
Required
project_id*

Project identifier

Type
string
Required

Request Body​

application/json
JSON
{
  
"role": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"project_id": "string",
  
"user_id": "string",
  
"username": "string",
  
"display_name": "string",
  
"organization": "string",
  
"avatar_key": "string",
  
"role": "string",
  
"status": "string",
  
"invited_by_user_id": "string",
  
"invited_by": "string",
  
"last_accessed_at": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Transfer project ownership​

POST
/projects/{project_id}/transfer

Transfer project ownership to another user. Admin only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

project_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"username": "string",
  
"role": "viewer"
}

Responses​

Successful Response

application/json
JSON
{
  
"project_id": "string",
  
"owner_user_id": "string",
  
"owner_username": "string",
  
"name": "string",
  
"description": "string",
  
"tags": [
  
  
"string"
  
],
  
"default_role": "string",
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Get a calibration figure by its path​

GET
/executions/figure

Fetch a calibration figure by its file path.

Retrieves a PNG image file from the server's filesystem and returns it
as a streaming response.

Parameters

path : str
Absolute file path to the calibration figure image

Returns

FileResponse
PNG image data as a file response with media type "image/png"

Raises

HTTPException
404 if the file does not exist at the specified path

Authorizations​

BearerAuth

Bearer token authentication. Use the access_token from login response.

Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Variables
Key
Value

Samples​


Download a calibration artifact by its path​

GET
/executions/artifact

Download a calibration artifact such as figure JSON or raw NetCDF data.

Authorizations​

BearerAuth

Bearer token authentication. Use the access_token from login response.

Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Variables
Key
Value

Samples​


Download calibration artifacts as a ZIP archive​

GET
/executions/artifacts/archive

Download multiple figure JSON and raw NetCDF artifacts as one ZIP file.

Authorizations​

BearerAuth

Bearer token authentication. Use the access_token from login response.

Type
HTTP (bearer)

Parameters​

Query Parameters

paths*
Type
array
Required
Min Items
1
Max Items
100

Responses​

Successful Response

application/zip

Playground​

Authorization
Variables
Key
Value

Samples​


Preview a NetCDF calibration artifact​

GET
/executions/artifact/preview

Return a size-limited table preview of a NetCDF calibration artifact.

Authorizations​

BearerAuth

Bearer token authentication. Use the access_token from login response.

Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"filename": "string",
  
"target": "string",
  
"source_type": "string",
  
"shape": [
  
  
0
  
],
  
"dtype": "string",
  
"columns": [
  
  
"string"
  
],
  
"rows": [
  
  
{
  
  
  
"additionalProperties": 0
  
  
}
  
],
  
"total_rows": 0,
  
"truncated": true
}

Playground​

Authorization
Variables
Key
Value

Samples​


Get the execution lock status​

GET
/executions/lock-status

Fetch the current status of the execution lock.

The execution lock prevents concurrent calibration workflows from running
simultaneously. This endpoint checks whether a lock is currently held.

Parameters

ctx : ProjectContext
Project context with user and project information
execution_service : ExecutionService
Service for execution operations

Returns

ExecutionLockStatusResponse
Response containing lock status (True if locked, False if available)

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"lock": true,
  
"execution_id": "string",
  
"chip_id": "string",
  
"name": "string",
  
"status": "string"
}

Playground​

Authorization
Headers

Samples​


Check resource availability without starting an execution​

POST
/executions/check-availability

Read project-scoped hardware conflicts; this does not reserve resources.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"flow_name": "string",
  
"parameters": {
  
  
"additionalProperties": "string"
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"available": true,
  
"reason": "string"
}

Playground​

Authorization
Headers
Body

Samples​


List executions​

GET
/executions

List executions for a given chip with pagination, optionally for one calendar day.

Parameters

ctx : ProjectContext
Project context with user and project information
execution_service : ExecutionService
Service for execution operations
chip_id : str
ID of the chip to fetch executions for
skip : int
Number of items to skip (default: 0)
limit : int
Number of items to return (default: 20, max: 100)

Returns

ListExecutionsResponse
Wrapped list of executions for the chip

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id*

Chip ID to filter executions

Type
string
Required
skip

Number of items to skip

Type
integer
Minimum
0
Default
0
limit

Number of items to return

Type
integer
Maximum
100
Minimum
1
Default
20
date

Only executions started on this day, YYYYMMDD

timezone

IANA time zone that defines the day for date

Type
string
Default
"UTC"

Responses​

Successful Response

application/json
JSON
{
  
"executions": [
  
  
{
  
  
  
"name": "string",
  
  
  
"execution_id": "string",
  
  
  
"status": "string",
  
  
  
"message": "",
  
  
  
"user_id": "string",
  
  
  
"username": "",
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"tags": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
}
  
],
  
"total": 0,
  
"skip": 0,
  
"limit": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Count executions per day or per 6-hour slot​

GET
/executions/activity

Count executions per bucket, by status, over a trailing window.

With chip_id only that chip's executions count; without it, every execution in the
caller's current project counts. Executions of other projects are never included.
Every bucket of the window is returned, empty ones included, so a chart can draw a
continuous axis. Buckets follow wall-clock time in timezone so they match what the
user sees: one per calendar day ending today, or with granularity=6h four per day
(local 00:00, 06:00, 12:00, 18:00) ending with the slot that contains the current time.
Each bucket carries its start and exclusive end.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id

Chip ID to count executions for; omit to count every chip in the project

days

Trailing window in calendar days

Type
integer
Maximum
365
Minimum
1
Default
30
timezone

IANA time zone used to assign executions to buckets

Type
string
Default
"UTC"
granularity

Bucket length: day (default) or 6h. 6h returns days x 4 buckets and accepts at most 31 days

Type
string
Valid values
"day""6h"
Default
"day"

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"days": 0,
  
"timezone": "string",
  
"granularity": "string",
  
"since": "string",
  
"until": "string",
  
"buckets": [
  
  
{
  
  
  
"date": "string",
  
  
  
"start": "string",
  
  
  
"end": "string",
  
  
  
"completed": 0,
  
  
  
"failed": 0,
  
  
  
"running": 0,
  
  
  
"scheduled": 0,
  
  
  
"cancelled": 0,
  
  
  
"other": 0,
  
  
  
"total": 0
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get an execution by its ID​

GET
/executions/{execution_id}

Return the execution detail by its ID.

Parameters

execution_id : str
ID of the execution to fetch
ctx : ProjectContext
Project context with user and project information
execution_service : ExecutionService
Service for execution operations

Returns

ExecutionResponseDetail
Detailed execution information

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

execution_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"status": "string",
  
"message": "",
  
"flow_name": "",
  
"user_id": "string",
  
"username": "",
  
"start_at": "string",
  
"end_at": "string",
  
"elapsed_time": "string",
  
"task": [
  
  
{
  
  
  
"user_id": "string",
  
  
  
"username": "",
  
  
  
"task_id": "string",
  
  
  
"qid": "string",
  
  
  
"name": "",
  
  
  
"upstream_id": "string",
  
  
  
"status": "pending",
  
  
  
"message": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameter_names": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"raw_data_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"task_type": "string",
  
  
  
"default_view": true
  
  
}
  
],
  
"note": {
  
  
"additionalProperties": "string"
  
},
  
"tags": [
  
  
[
  
  
]
  
],
  
"chip_id": "",
  
"pipeline": {
  
  
"name": "string",
  
  
"flow_run_id": "string",
  
  
"root_execution_id": "string",
  
  
"status": "string",
  
  
"steps": [
  
  
  
{
  
  
  
  
"index": 0,
  
  
  
  
"name": "string",
  
  
  
  
"type": "",
  
  
  
  
"kind": "calibration",
  
  
  
  
"execution_id": "string",
  
  
  
  
"status": "string",
  
  
  
  
"task_total": 0,
  
  
  
  
"task_finished": 0,
  
  
  
  
"task_failed": 0,
  
  
  
  
"figure_paths": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
}
  
  
]
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Cancel a running or scheduled execution​

POST
/executions/{flow_run_id}/cancel

Cancel a running or scheduled execution via Prefect.

Sends a cancellation request to Prefect for the specified flow run.
The flow_run_id is the Prefect flow run UUID, which can be obtained from
the execution detail's note.flow_run_id field.
Only executions in SCHEDULED, PENDING, RUNNING, or PAUSED state can be cancelled.

Parameters

flow_run_id : str
Prefect flow run UUID
ctx : ProjectContext
Project context with user and project information
execution_service : ExecutionService
Service for execution operations

Returns

CancelExecutionResponse
Cancellation result with status

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

flow_run_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"execution_id": "string",
  
"status": "string",
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Download file​

GET
/files/raw-data

Download a raw data file from the server.

Parameters

path : str
Absolute file path to the file to download

Returns

FileResponse
The file as a downloadable response

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Variables
Key
Value

Samples​


Download file or directory as zip​

GET
/files/zip

Download a file or directory as a ZIP archive.

Parameters

path : str
Absolute path to the file or directory to archive

Returns

FileResponse
ZIP archive as a downloadable response

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Variables
Key
Value

Samples​


Get file tree of the config directory​

GET
/config/files/tree

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
[
  
{
  
  
"name": "string",
  
  
"path": "string",
  
  
"type": "string",
  
  
"children": [
  
  
  
{
  
  
  
}
  
  
]
  
}
]

Playground​

Authorization

Samples​


Get config file content for editing​

GET
/config/files/content

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Save config file content​

PUT
/config/files/content

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"path": "string",
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Body

Samples​


Get an image from the config directory​

GET
/config/files/image

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required

Responses​

Successful Response

image/*

Playground​

Authorization
Variables
Key
Value

Samples​


Validate file content (YAML/JSON)​

POST
/config/files/validate

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"content": "string",
  
"file_type": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Body

Samples​


Get Git status of the config directory​

GET
/config/files/git/status

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization

Samples​


Pull the latest config from its Git repository​

POST
/config/files/git/pull

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization

Samples​


Open a pull request with the config changes​

POST
/config/files/git/push

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"commit_message": "Update files from UI"
}

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Body

Samples​


Create an agent session​

POST
/agent-sessions

Create a bounded authorization scope for a user-operated local agent.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"policy": {
  
  
"qids": [
  
  
  
"string"
  
  
],
  
  
"allowed_tasks": [
  
  
  
"string"
  
  
],
  
  
"allowed_actions": [
  
  
  
"string"
  
  
],
  
  
"allowed_overrides": {
  
  
  
"additionalProperties": {
  
  
  
  
"minimum": 0,
  
  
  
  
"maximum": 0
  
  
  
}
  
  
},
  
  
"quality_gates": {
  
  
  
"additionalProperties": {
  
  
  
  
"minimum": 0,
  
  
  
  
"maximum": 0
  
  
  
}
  
  
},
  
  
"allow_reconfigure": false,
  
  
"max_actions": 100,
  
  
"autonomy": "confirm_each",
  
  
"max_rounds_per_target": 3
  
},
  
"expires_in_seconds": 21600,
  
"skill_name": "",
  
"skill_version": "",
  
"skill_hash": "",
  
"model_name": ""
}

Responses​

Successful Response

application/json
JSON
{
  
"session_id": "string",
  
"project_id": "string",
  
"chip_id": "string",
  
"created_by": "string",
  
"policy": {
  
  
"qids": [
  
  
  
"string"
  
  
],
  
  
"allowed_tasks": [
  
  
  
"string"
  
  
],
  
  
"allowed_actions": [
  
  
  
"string"
  
  
],
  
  
"allowed_overrides": {
  
  
  
"additionalProperties": {
  
  
  
  
"minimum": 0,
  
  
  
  
"maximum": 0
  
  
  
}
  
  
},
  
  
"quality_gates": {
  
  
  
"additionalProperties": {
  
  
  
  
"minimum": 0,
  
  
  
  
"maximum": 0
  
  
  
}
  
  
},
  
  
"allow_reconfigure": false,
  
  
"max_actions": 100,
  
  
"autonomy": "confirm_each",
  
  
"max_rounds_per_target": 3
  
},
  
"skill_name": "string",
  
"skill_version": "string",
  
"skill_hash": "string",
  
"model_name": "string",
  
"status": "string",
  
"state_version": 0,
  
"action_count": 0,
  
"created_at": "string",
  
"updated_at": "string",
  
"expires_at": "string"
}

Playground​

Authorization
Headers
Body

Samples​


Get an agent session​

GET
/agent-sessions/{session_id}

Get authoritative state for an agent session.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"session_id": "string",
  
"project_id": "string",
  
"chip_id": "string",
  
"created_by": "string",
  
"policy": {
  
  
"qids": [
  
  
  
"string"
  
  
],
  
  
"allowed_tasks": [
  
  
  
"string"
  
  
],
  
  
"allowed_actions": [
  
  
  
"string"
  
  
],
  
  
"allowed_overrides": {
  
  
  
"additionalProperties": {
  
  
  
  
"minimum": 0,
  
  
  
  
"maximum": 0
  
  
  
}
  
  
},
  
  
"quality_gates": {
  
  
  
"additionalProperties": {
  
  
  
  
"minimum": 0,
  
  
  
  
"maximum": 0
  
  
  
}
  
  
},
  
  
"allow_reconfigure": false,
  
  
"max_actions": 100,
  
  
"autonomy": "confirm_each",
  
  
"max_rounds_per_target": 3
  
},
  
"skill_name": "string",
  
"skill_version": "string",
  
"skill_hash": "string",
  
"model_name": "string",
  
"status": "string",
  
"state_version": 0,
  
"action_count": 0,
  
"created_at": "string",
  
"updated_at": "string",
  
"expires_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Evaluate an agent candidate​

POST
/agent-sessions/{session_id}/candidate-gate

Evaluate a numeric candidate against session-owned bounds without writing it.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"parameter_name": "string",
  
"value": 0
}

Responses​

Successful Response

application/json
JSON
{
  
"session_id": "string",
  
"parameter_name": "string",
  
"value": 0,
  
"accepted": true,
  
"reason": "string",
  
"minimum": 0,
  
"maximum": 0
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List agent actions​

GET
/agent-sessions/{session_id}/actions

List the ordered audit trail for an agent session.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"action_id": "string",
  
  
  
"session_id": "string",
  
  
  
"idempotency_key": "string",
  
  
  
"action_type": "string",
  
  
  
"task_name": "string",
  
  
  
"qids": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"parameter_overrides": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"diagnosis": "string",
  
  
  
"decision": "string",
  
  
  
"reason": "string",
  
  
  
"execution_status": "string",
  
  
  
"operation_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"state_version_before": 0,
  
  
  
"state_version_after": 0,
  
  
  
"created_at": "string"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Submit an agent action​

POST
/agent-sessions/{session_id}/actions

Authorize and audit an action proposal without executing it.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"idempotency_key": "string",
  
"expected_state_version": 0,
  
"action_type": "string",
  
"task_name": "string",
  
"qids": [
  
  
"string"
  
],
  
"parameter_overrides": {
  
  
"additionalProperties": 0
  
},
  
"diagnosis": ""
}

Responses​

Successful Response

application/json
JSON
{
  
"action_id": "string",
  
"session_id": "string",
  
"idempotency_key": "string",
  
"action_type": "string",
  
"task_name": "string",
  
"qids": [
  
  
"string"
  
],
  
"parameter_overrides": {
  
  
"additionalProperties": 0
  
},
  
"diagnosis": "string",
  
"decision": "string",
  
"reason": "string",
  
"execution_status": "string",
  
"operation_id": "string",
  
"execution_id": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List agent action candidates​

GET
/agent-sessions/{session_id}/actions/{action_id}/candidates

Read candidates and provenance from an action's authoritative task result.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required
action_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"session_id": "string",
  
  
  
"action_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"source_parameter_name": "string",
  
  
  
"parameter_name": "string",
  
  
  
"value": 0,
  
  
  
"error": 0,
  
  
  
"unit": "",
  
  
  
"value_type": "float",
  
  
  
"quality_metrics": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"accepted": true,
  
  
  
"reason": "string",
  
  
  
"minimum": 0,
  
  
  
"maximum": 0
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Commit an agent action candidate​

POST
/agent-sessions/{session_id}/actions/{action_id}/candidates/{parameter_name}/commit

Commit a revalidated task-result candidate into QDash calibration state.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required
action_id*
Type
string
Required
parameter_name*
Type
string
Required

Request Body​

application/json
JSON
{
  
"idempotency_key": "string",
  
"expected_state_version": 0,
  
"task_id": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"commit_id": "string",
  
"session_id": "string",
  
"action_id": "string",
  
"idempotency_key": "string",
  
"execution_id": "string",
  
"task_id": "string",
  
"task_name": "string",
  
"qid": "string",
  
"parameter_name": "string",
  
"value": 0,
  
"status": "string",
  
"reason": "string",
  
"before_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"after_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"committed_by": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string",
  
"committed_at": "string",
  
"backend_status": "not_started",
  
"backend_operation_id": "string",
  
"backend_name": "",
  
"backend_target_files": [
  
  
"string"
  
],
  
"backend_changed_files": [
  
  
"string"
  
],
  
"backend_verified": false,
  
"backend_base_git_commit": "string",
  
"backend_git_commit": "string",
  
"backend_error": "",
  
"backend_requested_at": "string",
  
"backend_applied_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Commit the final agent candidate set​

POST
/agent-sessions/{session_id}/candidate-set-commits

Validate a final candidate set and persist it with one Qubit save.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"idempotency_key": "string",
  
"expected_state_version": 0,
  
"candidates": [
  
  
{
  
  
  
"action_id": "string",
  
  
  
"parameter_name": "string",
  
  
  
"task_id": "string"
  
  
}
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"commit_id": "string",
  
"session_id": "string",
  
"idempotency_key": "string",
  
"chip_id": "string",
  
"qid": "string",
  
"candidates": [
  
  
{
  
  
  
"session_id": "string",
  
  
  
"action_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"source_parameter_name": "string",
  
  
  
"parameter_name": "string",
  
  
  
"value": 0,
  
  
  
"error": 0,
  
  
  
"unit": "",
  
  
  
"value_type": "float",
  
  
  
"quality_metrics": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"accepted": true,
  
  
  
"reason": "string",
  
  
  
"minimum": 0,
  
  
  
"maximum": 0
  
  
}
  
],
  
"status": "string",
  
"reason": "string",
  
"before_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"after_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"committed_by": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string",
  
"committed_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Get an agent candidate set commit​

GET
/agent-sessions/{session_id}/candidate-set-commits/{commit_id}

Get one audited final candidate-set commit.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required
commit_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"commit_id": "string",
  
"session_id": "string",
  
"idempotency_key": "string",
  
"chip_id": "string",
  
"qid": "string",
  
"candidates": [
  
  
{
  
  
  
"session_id": "string",
  
  
  
"action_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"source_parameter_name": "string",
  
  
  
"parameter_name": "string",
  
  
  
"value": 0,
  
  
  
"error": 0,
  
  
  
"unit": "",
  
  
  
"value_type": "float",
  
  
  
"quality_metrics": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"accepted": true,
  
  
  
"reason": "string",
  
  
  
"minimum": 0,
  
  
  
"maximum": 0
  
  
}
  
],
  
"status": "string",
  
"reason": "string",
  
"before_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"after_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"committed_by": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string",
  
"committed_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get an agent candidate commit​

GET
/agent-sessions/{session_id}/commits/{commit_id}

Get commit persistence and worker-side backend apply state.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required
commit_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"commit_id": "string",
  
"session_id": "string",
  
"action_id": "string",
  
"idempotency_key": "string",
  
"execution_id": "string",
  
"task_id": "string",
  
"task_name": "string",
  
"qid": "string",
  
"parameter_name": "string",
  
"value": 0,
  
"status": "string",
  
"reason": "string",
  
"before_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"after_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"committed_by": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string",
  
"committed_at": "string",
  
"backend_status": "not_started",
  
"backend_operation_id": "string",
  
"backend_name": "",
  
"backend_target_files": [
  
  
"string"
  
],
  
"backend_changed_files": [
  
  
"string"
  
],
  
"backend_verified": false,
  
"backend_base_git_commit": "string",
  
"backend_git_commit": "string",
  
"backend_error": "",
  
"backend_requested_at": "string",
  
"backend_applied_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Apply an agent candidate commit to the backend​

POST
/agent-sessions/{session_id}/commits/{commit_id}/apply

Dispatch a committed, gated candidate to the worker-side backend.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required
commit_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"idempotency_key": "string",
  
"expected_state_version": 0,
  
"push_to_github": false
}

Responses​

Successful Response

application/json
JSON
{
  
"commit_id": "string",
  
"session_id": "string",
  
"action_id": "string",
  
"idempotency_key": "string",
  
"execution_id": "string",
  
"task_id": "string",
  
"task_name": "string",
  
"qid": "string",
  
"parameter_name": "string",
  
"value": 0,
  
"status": "string",
  
"reason": "string",
  
"before_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"after_snapshot": {
  
  
"additionalProperties": "string"
  
},
  
"committed_by": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string",
  
"committed_at": "string",
  
"backend_status": "not_started",
  
"backend_operation_id": "string",
  
"backend_name": "",
  
"backend_target_files": [
  
  
"string"
  
],
  
"backend_changed_files": [
  
  
"string"
  
],
  
"backend_verified": false,
  
"backend_base_git_commit": "string",
  
"backend_git_commit": "string",
  
"backend_error": "",
  
"backend_requested_at": "string",
  
"backend_applied_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Get an agent action​

GET
/agent-sessions/{session_id}/actions/{action_id}

Get one action and its current dispatch status.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required
action_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"action_id": "string",
  
"session_id": "string",
  
"idempotency_key": "string",
  
"action_type": "string",
  
"task_name": "string",
  
"qids": [
  
  
"string"
  
],
  
"parameter_overrides": {
  
  
"additionalProperties": 0
  
},
  
"diagnosis": "string",
  
"decision": "string",
  
"reason": "string",
  
"execution_status": "string",
  
"operation_id": "string",
  
"execution_id": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Execute an authorized agent action​

POST
/agent-sessions/{session_id}/actions/{action_id}/execute

Dispatch one authorized run-task action to the system workflow.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

session_id*
Type
string
Required
action_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"source_execution_id": "string",
  
"update_params": false,
  
"reconfigure": false
}

Responses​

Successful Response

application/json
JSON
{
  
"action_id": "string",
  
"session_id": "string",
  
"idempotency_key": "string",
  
"action_type": "string",
  
"task_name": "string",
  
"qids": [
  
  
"string"
  
],
  
"parameter_overrides": {
  
  
"additionalProperties": 0
  
},
  
"diagnosis": "string",
  
"decision": "string",
  
"reason": "string",
  
"execution_status": "string",
  
"operation_id": "string",
  
"execution_id": "string",
  
"state_version_before": 0,
  
"state_version_after": 0,
  
"created_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Retry Calibration Github Sync​

POST
/calibrations/manual-edits/{task_id}/github-sync

Publish current mapped YAML for a completed manual edit without changing DB values.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"status": "disabled",
  
"commit": "string",
  
"message": ""
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get the calibration note​

GET
/calibrations/note

Get the latest calibration note for the master task.

Retrieves the most recent calibration note from the database, sorted by timestamp
in descending order. The note contains metadata about calibration parameters
and configuration.

Parameters

ctx : ProjectContext
Project context with user and project information
calibration_service : CalibrationService
Service for calibration operations

Returns

CalibrationNoteResponse
The latest calibration note containing username, execution_id, task_id,
note content, and timestamp

Raises

HTTPException
404 if no calibration note is found

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"username": "string",
  
"execution_id": "string",
  
"task_id": "string",
  
"note": {
  
  
"additionalProperties": "string"
  
},
  
"timestamp": "string"
}

Playground​

Authorization
Headers

Samples​


Import seed parameters from qubex or manual input​

POST
/calibrations/seed-import

Import initial calibration parameters from qubex params or manual input.

This endpoint allows importing seed parameters that are typically loaded
from qubex's params directory (e.g., qubit_frequency, readout_amplitude)
into QDash's calibration database for tracking and provenance.

Parameters

ctx : ProjectContext
Project context with user and project information
service : SeedImportService
Service for seed import operations
request : SeedImportRequest
Import request specifying source, chip_id, and parameters

Returns

SeedImportResponse
Results of the import operation including counts and individual results

Examples

Import from qubex params:

{
    "chip_id": "64Qv3",
    "source": "qubex_params",
    "parameters": ["qubit_frequency", "readout_amplitude"]
}

Manual import:

{
    "chip_id": "64Qv3",
    "source": "manual",
    "manual_data": {
        "qubit_frequency": {"Q00": 7.9, "Q01": 8.6}
    }
}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"source": "qubex_params",
  
"parameters": [
  
  
"string"
  
],
  
"qids": [
  
  
"string"
  
],
  
"manual_data": {
  
  
"additionalProperties": {
  
  
  
"additionalProperties": "string"
  
  
}
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"source": "string",
  
"imported_count": 0,
  
"skipped_count": 0,
  
"error_count": 0,
  
"results": [
  
  
{
  
  
  
"parameter_name": "string",
  
  
  
"qid": "string",
  
  
  
"value": 0,
  
  
  
"unit": "string",
  
  
  
"status": "string",
  
  
  
"message": "string"
  
  
}
  
],
  
"provenance_activity_id": "string"
}

Playground​

Authorization
Headers
Body

Samples​


Get available seed parameters for a chip​

GET
/calibrations/seed-parameters/{chip_id}

Get list of available parameter files in qubex params directory.

Parameters

ctx : ProjectContext
Project context with user and project information
service : SeedImportService
Service for seed import operations
chip_id : str
Chip ID to check parameters for

Returns

list[str]
List of available parameter names (e.g., ["qubit_frequency", "readout_amplitude"])

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
[
  
"string"
]

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Compare YAML seed values with QDash values​

GET
/calibrations/seed-compare/{chip_id}

Compare seed parameter values from YAML files with current QDash values.

This endpoint allows users to preview what will be imported and see
the difference between YAML source values and current QDash values.

Parameters

ctx : ProjectContext
Project context with user and project information
service : SeedImportService
Service for seed import operations
chip_id : str
Chip ID to compare parameters for
parameters : str | None
Comma-separated list of parameters to compare (None = all available)

Returns

dict
Comparison data with structure:
{
"chip_id": str,
"parameters": {
"param_name": {
"unit": str,
"qubits": {
"Q0": {
"yaml_value": float | None,
"qdash_value": float | None,
"status": "new" | "same" | "different"
}
}
}
}
}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

parameters

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Manually update calibration parameters​

PATCH
/calibrations/parameters

Manually update calibration parameters for a qubit or coupling.

Updates the specified parameters in the database and records provenance.
The target type (qubit vs coupling) is determined by the qid format:
"0" for qubit, "0-1" for coupling.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"qid": "string",
  
"parameters": {
  
  
"additionalProperties": {
  
  
  
"additionalProperties": "string"
  
  
}
  
},
  
"source_task_id": "string",
  
"correction_point": {
  
  
"x": 0,
  
  
"y": 0
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"updated_count": 0,
  
"task_id": "string",
  
"execution_id": "string",
  
"provenance_activity_id": "string",
  
"github_sync": {
  
  
"status": "disabled",
  
  
"commit": "string",
  
  
"message": ""
  
}
}

Playground​

Authorization
Headers
Body

Samples​


Delete a current calibration parameter​

DELETE
/calibrations/parameters/{chip_id}/{qid}/{parameter_name}

Delete one current qubit or coupling value without deleting its history.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required
parameter_name*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"qid": "string",
  
"parameter_name": "string",
  
"deleted": true
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get manual edits for a qubit or coupling​

GET
/calibrations/manual-edits/{qid}

Get the most recent manual edit for each parameter of a qid.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

qid*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"qid": "string",
  
"edits": [
  
  
{
  
  
  
"parameter_name": "string",
  
  
  
"value": 0,
  
  
  
"unit": "",
  
  
  
"edited_at": "string",
  
  
  
"execution_id": ""
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Step types, tasks, and spec schema for writing a calibration pipeline​

GET
/calibration-pipelines/catalog

Everything an agent needs to compose a spec: step types with their
dependencies and default tasks, the backend's tasks by type, and the JSON
schema of the spec.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

backend_name

Responses​

Successful Response

application/json
JSON
{
  
"backend_name": "string",
  
"step_types": [
  
  
{
  
  
  
"type": "string",
  
  
  
"kind": "string",
  
  
  
"description": "string",
  
  
  
"requires": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"provides": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"task_scope": "string",
  
  
  
"default_tasks": [
  
  
  
  
"string"
  
  
  
]
  
  
}
  
],
  
"one_qubit_modes": [
  
  
"string"
  
],
  
"tasks": {
  
  
"additionalProperties": [
  
  
  
"string"
  
  
]
  
},
  
"spec_schema": {
  
  
"additionalProperties": "string"
  
},
  
"example": {
  
  
"additionalProperties": "string"
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Check a calibration pipeline spec without running it​

POST
/calibration-pipelines/validate

Dry run: reports every problem with a path into the spec, and the
resolved steps and tasks when it would run.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"spec": {
  
  
"additionalProperties": "string"
  
},
  
"backend_name": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"valid": true,
  
"problems": [
  
  
{
  
  
  
"path": "string",
  
  
  
"message": "string"
  
  
}
  
],
  
"backend_name": "string",
  
"spec": {
  
  
"additionalProperties": "string"
  
},
  
"targets": {
  
  
"qids": [
  
  
  
"string"
  
  
],
  
  
"mux_ids": [
  
  
  
0
  
  
],
  
  
"exclude_qids": [
  
  
  
"string"
  
  
]
  
},
  
"steps": [
  
  
{
  
  
  
"index": 0,
  
  
  
"type": "string",
  
  
  
"name": "string",
  
  
  
"kind": "string",
  
  
  
"tasks": [
  
  
  
  
"string"
  
  
  
]
  
  
}
  
],
  
"task_run_count": 0
}

Playground​

Authorization
Headers
Body

Samples​


Validate and run a calibration pipeline spec​

POST
/calibration-pipelines/execute

Runs the spec as one execution through the worker's calibration-pipeline
deployment. A spec with problems is rejected with 422 and the same problem
list that /validate returns.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"spec": {
  
  
"additionalProperties": "string"
  
},
  
"backend_name": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"execution_id": "string",
  
"flow_run_id": "string",
  
"flow_run_url": "string",
  
"qdash_ui_url": "string",
  
"message": "string",
  
"steps": [
  
  
{
  
  
  
"index": 0,
  
  
  
"type": "string",
  
  
  
"name": "string",
  
  
  
"kind": "string",
  
  
  
"tasks": [
  
  
  
  
"string"
  
  
  
]
  
  
}
  
],
  
"targets": {
  
  
"qids": [
  
  
  
"string"
  
  
],
  
  
"mux_ids": [
  
  
  
0
  
  
],
  
  
"exclude_qids": [
  
  
  
"string"
  
  
]
  
}
}

Playground​

Authorization
Headers
Body

Samples​


Get Copilot configuration​

GET
/copilot/config

Get Copilot configuration for the metrics assistant.

Retrieves the Copilot configuration from YAML, including:

  • enabled: Whether Copilot is enabled
  • chat_models: The planner models the UI offers
  • evaluation_models: The calibration evaluation model

Returns

dict[str, Any]
Copilot configuration dictionary

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization

Samples​


List the current user's chat sessions​

GET
/copilot/chat/sessions

Return all persisted chat sessions owned by the current user.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"sessions": [
  
  
{
  
  
  
"session_id": "string",
  
  
  
"title": "string",
  
  
  
"context": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"message_count": 0,
  
  
  
"created_at": "string",
  
  
  
"updated_at": "string"
  
  
}
  
]
}

Playground​

Authorization

Samples​


Create a new chat session​

POST
/copilot/chat/sessions

Create a new chat session owned by the current user.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"session_id": "string",
  
"title": "New Chat",
  
"context": {
  
  
"additionalProperties": "string"
  
},
  
"messages": [
  
  
{
  
  
  
"role": "string",
  
  
  
"content": "string",
  
  
  
"attached_image": "string",
  
  
  
"created_at": "string"
  
  
}
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"session_id": "string",
  
"title": "string",
  
"context": {
  
  
"additionalProperties": "string"
  
},
  
"messages": [
  
  
{
  
  
  
"role": "string",
  
  
  
"content": "string",
  
  
  
"attached_image": "string",
  
  
  
"created_at": "string"
  
  
}
  
],
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Body

Samples​


Get a chat session with messages​

GET
/copilot/chat/sessions/{session_id}

Return one chat session including the full message list.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

session_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"session_id": "string",
  
"title": "string",
  
"context": {
  
  
"additionalProperties": "string"
  
},
  
"messages": [
  
  
{
  
  
  
"role": "string",
  
  
  
"content": "string",
  
  
  
"attached_image": "string",
  
  
  
"created_at": "string"
  
  
}
  
],
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Delete a chat session​

DELETE
/copilot/chat/sessions/{session_id}

Delete a chat session owned by the current user.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

session_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": true
}

Playground​

Authorization
Variables
Key
Value

Samples​


Update a chat session​

PATCH
/copilot/chat/sessions/{session_id}

Update title, context, or messages of an existing chat session.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

session_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"title": "string",
  
"context": {
  
  
"additionalProperties": "string"
  
},
  
"messages": [
  
  
{
  
  
  
"role": "string",
  
  
  
"content": "string",
  
  
  
"attached_image": "string",
  
  
  
"created_at": "string"
  
  
}
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"session_id": "string",
  
"title": "string",
  
"context": {
  
  
"additionalProperties": "string"
  
},
  
"messages": [
  
  
{
  
  
  
"role": "string",
  
  
  
"content": "string",
  
  
  
"attached_image": "string",
  
  
  
"created_at": "string"
  
  
}
  
],
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


List the source trees the Copilot can read​

GET
/copilot/source/roots

QDash and allowlisted dependency source served read-only, with known revisions.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"roots": [
  
  
{
  
  
  
"name": "string",
  
  
  
"kind": "string",
  
  
  
"version": "string",
  
  
  
"revision": "string",
  
  
  
"revision_source": "string",
  
  
  
"dirty": true
  
  
}
  
],
  
"missing_dependencies": [
  
  
"string"
  
],
  
"execution_revision_recorded": false
}

Playground​

Authorization

Samples​


Search the source the Copilot can read​

GET
/copilot/source/search

Literal search in file contents or file paths; read-only and size-limited.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

query*
Type
string
Required
Min Length
1
Max Length
200
root
path_prefix
mode
Type
string
Pattern
"^(content|path)$"
Default
"content"
case_sensitive
Type
boolean
Default
false
limit
Type
integer
Maximum
200
Minimum
1
Default
50

Responses​

Successful Response

application/json
JSON
{
  
"query": "string",
  
"mode": "string",
  
"matches": [
  
  
{
  
  
  
"root": "string",
  
  
  
"path": "string",
  
  
  
"line": 0,
  
  
  
"text": "string"
  
  
}
  
],
  
"truncated": true
}

Playground​

Authorization
Variables
Key
Value

Samples​


Read a line range of a source file​

GET
/copilot/source/file

Read up to 400 numbered lines; without root the path is matched as a traceback prints it.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

path*
Type
string
Required
Min Length
1
Max Length
500
root
start_line
Type
integer
Minimum
1
Default
1
end_line

Responses​

Successful Response

application/json
JSON
{
  
"root": "string",
  
"path": "string",
  
"start_line": 0,
  
"end_line": 0,
  
"total_lines": 0,
  
"content": "string",
  
"truncated": true,
  
"revision": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Get the current user's Copilot preferences​

GET
/copilot/preferences

The instructions this user added to their chats.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"instructions": "",
  
"max_instructions_chars": 2000
}

Playground​

Authorization

Samples​


Update the current user's Copilot preferences​

PUT
/copilot/preferences

Replace this user's chat instructions; an empty text clears them.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"instructions": ""
}

Responses​

Successful Response

application/json
JSON
{
  
"instructions": "",
  
"max_instructions_chars": 2000
}

Playground​

Authorization
Body

Samples​


Show what QDash tells the chat model​

GET
/copilot/system-prompt

QDash's chat system prompt and this user's instructions as appended to it (read-only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"system_prompt": "string",
  
"user_preferences": "string",
  
"tools": [
  
  
"string"
  
]
}

Playground​

Authorization

Samples​


settings​

Operations​


Get settings​

GET
/settings

Get settings from the server

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"env": "string",
  
"client_url": "",
  
"api_cors_origins": [
  
  
[
  
  
]
  
],
  
"prefect_api_url": "string",
  
"slack_channel_id": "",
  
"postgres_data_path": "string",
  
"mongo_data_path": "string",
  
"calib_data_path": "string",
  
"mongo_db_name": "qdash",
  
"mongo_port": 27017,
  
"mongo_express_port": 8081,
  
"postgres_port": 5432,
  
"prefect_port": 4200,
  
"api_port": 5715,
  
"ui_port": 5714,
  
"log_level": "INFO",
  
"timezone": "Asia/Tokyo"
}

Playground​

Authorization

Samples​


List all chips​

GET
/chips

List all chips with summary information.

Returns chip metadata (id, size, topology, qubit/coupling counts).
For detailed qubit/coupling data, use the dedicated endpoints.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"chips": [
  
  
{
  
  
  
"chip_id": "string",
  
  
  
"size": 64,
  
  
  
"topology_id": "string",
  
  
  
"qubit_count": 0,
  
  
  
"coupling_count": 0,
  
  
  
"installed_at": "string",
  
  
  
"activity_status": "active",
  
  
  
"current_cooldown_id": "string",
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
}
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Headers

Samples​


Create a new chip​

POST
/chips

Create a new chip in the current project.

Besides the database records, this creates <chip_id>/ in the Qubex
configuration tree (system_id == chip_id) unless config.create is
false or the directory already exists. Wiring and hardware files are copied
from config.source_system_id when given; parameter files always start
from QDash's templates. config.preset writes a complete virtual
configuration instead; the fake preset is accepted only when the
deployment backend is fake and the chip uses the preset's topology.

Parameters

request : CreateChipRequest
Chip creation request containing chip_id, size and configuration options
ctx : ProjectContext
Project context with editor permission
scaffolder : ChipConfigScaffolder
Writer of the chip's configuration directory

Returns

CreateChipResponse
Created chip information and the configuration outcome

Raises

HTTPException
If chip_id already exists, size is invalid, or the configuration
source cannot be used

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"size": 64,
  
"topology_id": "string",
  
"config": {
  
  
"create": true,
  
  
"source_system_id": "string",
  
  
"backend": "string",
  
  
"preset": "string"
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"size": 64,
  
"topology_id": "string",
  
"qubit_count": 0,
  
"coupling_count": 0,
  
"installed_at": "string",
  
"activity_status": "active",
  
"current_cooldown_id": "string",
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"config": {
  
  
"status": "string",
  
  
"path": "string",
  
  
"source_system_id": "string",
  
  
"backend": "string",
  
  
"preset": "string",
  
  
"files": [
  
  
  
"string"
  
  
],
  
  
"message": ""
  
}
}

Playground​

Authorization
Headers
Body

Samples​


List systems a new chip can copy wiring from​

GET
/chips/config-sources

List the systems in the Qubex configuration tree that have a wiring file.

QDash runs every chip with system_id == chip_id, so each entry is also a
chip directory of the tree.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"available": true,
  
"sources": [
  
  
{
  
  
  
"system_id": "string",
  
  
  
"backend": "string",
  
  
  
"mux_count": 0,
  
  
  
"files": [
  
  
  
  
"string"
  
  
  
]
  
  
}
  
],
  
"deployment_backend": "string",
  
"presets": [
  
  
{
  
  
  
"preset_id": "string",
  
  
  
"name": "string",
  
  
  
"description": "string",
  
  
  
"topology_id": "string",
  
  
  
"n_qubits": 0,
  
  
  
"mux_count": 0,
  
  
  
"workflow_template_id": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers

Samples​


Get chip details​

GET
/chips/{chip_id}

Get chip details including metadata and counts.

Returns chip metadata (size, topology, qubit/coupling counts).
For detailed qubit/coupling data, use the dedicated endpoints.

Parameters

chip_id : str
ID of the chip
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

ChipResponse
Chip details

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"size": 64,
  
"topology_id": "string",
  
"qubit_count": 0,
  
"coupling_count": 0,
  
"installed_at": "string",
  
"activity_status": "active",
  
"current_cooldown_id": "string",
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Delete a chip (refuses if related data exists unless force=true)​

DELETE
/chips/{chip_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

force

If true, also delete the chip's qubits and couplings (history retained for audit).

Type
boolean
Default
false

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Update chip metadata (topology_id, note)​

PATCH
/chips/{chip_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"topology_id": "string",
  
"activity_status": "string",
  
"note": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"size": 64,
  
"topology_id": "string",
  
"qubit_count": 0,
  
"coupling_count": 0,
  
"installed_at": "string",
  
"activity_status": "active",
  
"current_cooldown_id": "string",
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Preview what would be affected by deleting this chip​

GET
/chips/{chip_id}/deletion-impact

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"qubits": 0,
  
"couplings": 0,
  
"task_results": 0,
  
"qubit_history_snapshots": 0,
  
"coupling_history_snapshots": 0,
  
"cooldowns_referencing": 0,
  
"can_delete_safely": true
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get available dates for a chip​

GET
/chips/{chip_id}/dates

Fetch available dates for a chip from execution counter.

Parameters

chip_id : str
ID of the chip
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

ChipDatesResponse
List of available dates

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"data": [
  
  
"string"
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get multiplexer details​

GET
/chips/{chip_id}/muxes/{mux_id}

Get the multiplexer details.

Parameters

chip_id : str
ID of the chip
mux_id : int
ID of the multiplexer
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

MuxDetailResponse
Multiplexer details

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
mux_id*
Type
integer
Required

Responses​

Successful Response

application/json
JSON
{
  
"mux_id": 0,
  
"detail": {
  
  
"additionalProperties": {
  
  
  
"additionalProperties": {
  
  
  
  
"task_id": "string",
  
  
  
  
"qid": "string",
  
  
  
  
"name": "",
  
  
  
  
"upstream_id": "string",
  
  
  
  
"status": "pending",
  
  
  
  
"message": "string",
  
  
  
  
"input_parameters": {
  
  
  
  
  
"additionalProperties": {
  
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"required": false,
  
  
  
  
  
  
"value": "string",
  
  
  
  
  
  
"value_type": "",
  
  
  
  
  
  
"error": 0,
  
  
  
  
  
  
"unit": "",
  
  
  
  
  
  
"description": "",
  
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
  
"task_id": "",
  
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"output_parameters": {
  
  
  
  
  
"additionalProperties": {
  
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"required": false,
  
  
  
  
  
  
"value": "string",
  
  
  
  
  
  
"value_type": "",
  
  
  
  
  
  
"error": 0,
  
  
  
  
  
  
"unit": "",
  
  
  
  
  
  
"description": "",
  
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
  
"task_id": "",
  
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
  
{
  
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
  
}
  
  
  
  
  
  
],
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"output_parameter_names": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"note": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"figure_path": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"json_figure_path": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"raw_data_path": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"start_at": "string",
  
  
  
  
"end_at": "string",
  
  
  
  
"elapsed_time": "string",
  
  
  
  
"task_type": "string"
  
  
  
}
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List all multiplexers for a chip​

GET
/chips/{chip_id}/muxes

List all multiplexers for a chip.

Parameters

chip_id : str
ID of the chip
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

ListMuxResponse
List of multiplexer details

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"muxes": {
  
  
"additionalProperties": {
  
  
  
"mux_id": 0,
  
  
  
"detail": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"additionalProperties": {
  
  
  
  
  
  
"task_id": "string",
  
  
  
  
  
  
"qid": "string",
  
  
  
  
  
  
"name": "",
  
  
  
  
  
  
"upstream_id": "string",
  
  
  
  
  
  
"status": "pending",
  
  
  
  
  
  
"message": "string",
  
  
  
  
  
  
"input_parameters": {
  
  
  
  
  
  
  
"additionalProperties": {
  
  
  
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
  
  
"required": false,
  
  
  
  
  
  
  
  
"value": "string",
  
  
  
  
  
  
  
  
"value_type": "",
  
  
  
  
  
  
  
  
"error": 0,
  
  
  
  
  
  
  
  
"unit": "",
  
  
  
  
  
  
  
  
"description": "",
  
  
  
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
  
  
  
"task_id": "",
  
  
  
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
  
  
}
  
  
  
  
  
  
},
  
  
  
  
  
  
"output_parameters": {
  
  
  
  
  
  
  
"additionalProperties": {
  
  
  
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
  
  
"required": false,
  
  
  
  
  
  
  
  
"value": "string",
  
  
  
  
  
  
  
  
"value_type": "",
  
  
  
  
  
  
  
  
"error": 0,
  
  
  
  
  
  
  
  
"unit": "",
  
  
  
  
  
  
  
  
"description": "",
  
  
  
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
  
  
  
"task_id": "",
  
  
  
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
  
  
  
{
  
  
  
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
  
  
  
}
  
  
  
  
  
  
  
  
],
  
  
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
  
  
}
  
  
  
  
  
  
},
  
  
  
  
  
  
"output_parameter_names": [
  
  
  
  
  
  
  
"string"
  
  
  
  
  
  
],
  
  
  
  
  
  
"note": {
  
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
  
},
  
  
  
  
  
  
"figure_path": [
  
  
  
  
  
  
  
"string"
  
  
  
  
  
  
],
  
  
  
  
  
  
"json_figure_path": [
  
  
  
  
  
  
  
"string"
  
  
  
  
  
  
],
  
  
  
  
  
  
"raw_data_path": [
  
  
  
  
  
  
  
"string"
  
  
  
  
  
  
],
  
  
  
  
  
  
"start_at": "string",
  
  
  
  
  
  
"end_at": "string",
  
  
  
  
  
  
"elapsed_time": "string",
  
  
  
  
  
  
"task_type": "string"
  
  
  
  
  
}
  
  
  
  
}
  
  
  
}
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get chip note​

GET
/chips/{chip_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

cooldown_id
start_at
end_at

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Upsert chip note​

PUT
/chips/{chip_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

cooldown_id
start_at
end_at

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Clear chip note​

DELETE
/chips/{chip_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

cooldown_id
start_at
end_at

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List qubits for a chip​

GET
/chips/{chip_id}/qubits

List qubits for a chip with pagination.

Retrieves qubit data from the separate QubitDocument collection.
Supports filtering by specific qubit IDs.

Parameters

chip_id : str
ID of the chip
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations
limit : int
Maximum number of qubits to return (default 50, max 256)
offset : int
Number of qubits to skip for pagination
qids : list[str] | None
Optional list of specific qubit IDs to fetch

Returns

ListQubitsResponse
List of qubits with pagination info

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

limit
Type
integer
Maximum
256
Minimum
1
Default
50
offset
Type
integer
Minimum
0
Default
0
qids

Responses​

Successful Response

application/json
JSON
{
  
"qubits": [
  
  
{
  
  
  
"qid": "string",
  
  
  
"chip_id": "string",
  
  
  
"status": "pending",
  
  
  
"data": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
},
  
  
  
"metric_notes": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"content": "",
  
  
  
  
  
"updated_by": "",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
],
  
"total": 0,
  
"limit": 0,
  
"offset": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get a single qubit​

GET
/chips/{chip_id}/qubits/{qid}

Get a single qubit by ID.

This is 10-18x faster than fetching the full chip and extracting one qubit.

Parameters

chip_id : str
ID of the chip
qid : str
ID of the qubit
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

QubitResponse
Qubit data

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"qid": "string",
  
"chip_id": "string",
  
"status": "pending",
  
"data": {
  
  
"additionalProperties": "string"
  
},
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"metric_notes": {
  
  
"additionalProperties": {
  
  
  
"content": "",
  
  
  
"updated_by": "",
  
  
  
"updated_at": "string"
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Re-run resonator spectroscopy analysis on a stored task result (preview)​

POST
/chips/{chip_id}/qubits/{qid}/reanalyze/resonator-spectroscopy

Re-run the resonator-spectroscopy analysis on a previously stored figure.

Returns the marked figure and the re-estimated readout_frequency for
the requested qubit. The DB is not mutated; this is a preview only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required

Request Body​

application/json
JSON
{
  
"source_task_id": "string",
  
"parameters": {
  
  
"num_resonators": 0,
  
  
"high_power_min": 0,
  
  
"high_power_max": 0,
  
  
"low_power": 0,
  
  
"bare_shift_estimator_type": "string",
  
  
"bare_shift_strength_limit": 0,
  
  
"resonator_assignment_order": [
  
  
  
0
  
  
]
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"source_task_id": "string",
  
"source_task_name": "string",
  
"qid": "string",
  
"figure": {
  
  
"additionalProperties": "string"
  
},
  
"output_parameters": [
  
  
{
  
  
  
"name": "string",
  
  
  
"value": 0,
  
  
  
"unit": ""
  
  
}
  
],
  
"committed": false
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Re-run qubit spectroscopy analysis on a stored task result (preview)​

POST
/chips/{chip_id}/qubits/{qid}/reanalyze/qubit-spectroscopy

Re-run the qubit-spectroscopy analysis on a previously stored figure.

Returns the marked figure and the re-estimated qubit_frequency,
f01_repr_db, f01_quality_level, and qubit_anharmonicity for the requested
qubit. The DB is not mutated; this is a preview only.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required

Request Body​

application/json
JSON
{
  
"source_task_id": "string",
  
"parameters": {
  
  
"binarize_threshold_sigma_plus": 0,
  
  
"binarize_threshold_sigma_minus": 0,
  
  
"top_power": 0,
  
  
"f01_height_min": 0,
  
  
"f12_distance_min": 0,
  
  
"f12_distance_max": 0,
  
  
"f12_height_min": 0,
  
  
"retry_with_trim": true
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"source_task_id": "string",
  
"source_task_name": "string",
  
"qid": "string",
  
"figure": {
  
  
"additionalProperties": "string"
  
},
  
"output_parameters": [
  
  
{
  
  
  
"name": "string",
  
  
  
"value": 0,
  
  
  
"unit": ""
  
  
}
  
],
  
"committed": false
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List couplings for a chip​

GET
/chips/{chip_id}/couplings

List couplings for a chip with pagination.

Retrieves coupling data from the separate CouplingDocument collection.

Parameters

chip_id : str
ID of the chip
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations
limit : int
Maximum number of couplings to return (default 100, max 512)
offset : int
Number of couplings to skip for pagination

Returns

ListCouplingsResponse
List of couplings with pagination info

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

limit
Type
integer
Maximum
512
Minimum
1
Default
100
offset
Type
integer
Minimum
0
Default
0

Responses​

Successful Response

application/json
JSON
{
  
"couplings": [
  
  
{
  
  
  
"qid": "string",
  
  
  
"chip_id": "string",
  
  
  
"status": "pending",
  
  
  
"data": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
},
  
  
  
"metric_notes": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"content": "",
  
  
  
  
  
"updated_by": "",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
],
  
"total": 0,
  
"limit": 0,
  
"offset": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get a single coupling​

GET
/chips/{chip_id}/couplings/{coupling_id}

Get a single coupling by ID.

Parameters

chip_id : str
ID of the chip
coupling_id : str
ID of the coupling (e.g., "0-1")
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

CouplingResponse
Coupling data

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"qid": "string",
  
"chip_id": "string",
  
"status": "pending",
  
"data": {
  
  
"additionalProperties": "string"
  
},
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"metric_notes": {
  
  
"additionalProperties": {
  
  
  
"content": "",
  
  
  
"updated_by": "",
  
  
  
"updated_at": "string"
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get aggregated metrics summary​

GET
/chips/{chip_id}/metrics/summary

Get aggregated metrics summary for a chip.

Computes statistics (averages, counts) on the database side.
Returns ~0.1KB of data, ideal for dashboard overview.

Parameters

chip_id : str
ID of the chip
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

MetricsSummaryResponse
Aggregated metrics summary

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"qubit_count": 0,
  
"averages": {
  
  
"additionalProperties": 0
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get heatmap data for a single metric​

GET
/chips/{chip_id}/metrics/heatmap/{metric}

Get heatmap data for a single metric.

Returns only the values needed for heatmap visualization (~5KB).
Much more efficient than fetching full chip data (~300KB+).

Supported metrics:

  • Qubit: t1, t2_echo, t2_star, qubit_frequency, qubit_anharmonicity,
    average_readout_fidelity, x90_gate_fidelity, x180_gate_fidelity
  • Coupling: zx90_gate_fidelity, bell_state_fidelity, static_zz_interaction,
    qubit_qubit_coupling_strength

Coupling strength is stored, returned, and displayed in MHz.

Parameters

chip_id : str
ID of the chip
metric : str
Name of the metric to retrieve
ctx : ProjectContext
Project context with user and project information
chip_service : ChipService
Service for chip operations

Returns

MetricHeatmapResponse
Metric values keyed by qubit/coupling ID

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
metric*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"metric": "string",
  
"values": {
  
  
"additionalProperties": 0
  
},
  
"unit": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List all tasks​

GET
/tasks

List all tasks.

Parameters

ctx : ProjectContext
The project context with user and project information.
service : TaskService
The task service instance.
backend : str | None
Optional backend name to filter tasks by.

Returns

ListTaskResponse
The list of tasks.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

backend

Optional backend name to filter tasks by

Responses​

Successful Response

application/json
JSON
{
  
"tasks": [
  
  
{
  
  
  
"name": "string",
  
  
  
"description": "string",
  
  
  
"backend": "string",
  
  
  
"task_type": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"unit": "",
  
  
  
  
  
"value_type": "float",
  
  
  
  
  
"value": [
  
  
  
  
  
  
"string"
  
  
  
  
  
],
  
  
  
  
  
"description": ""
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"unit": "",
  
  
  
  
  
"value_type": "float",
  
  
  
  
  
"value": [
  
  
  
  
  
  
"string"
  
  
  
  
  
],
  
  
  
  
  
"description": ""
  
  
  
  
}
  
  
  
}
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Execute a single task from the task catalog​

POST
/tasks/{task_name}/execute

Execute one task without requiring a previous execution snapshot.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_name*
Type
string
Required

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"qid": "string",
  
"backend_name": "string",
  
"source_task_id": "string",
  
"input_parameter_overrides": {
  
  
"additionalProperties": "string"
  
},
  
"run_parameter_overrides": {
  
  
"additionalProperties": "string"
  
},
  
"reconfigure": false,
  
"persist_output_parameters": false,
  
"update_params": false
}

Responses​

Successful Response

application/json
JSON
{
  
"execution_id": "string",
  
"flow_run_id": "string",
  
"flow_run_url": "string",
  
"qdash_ui_url": "string",
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Get task result by task ID​

GET
/tasks/{task_id}/result

Get task result by task_id.

Parameters

task_id : str
The task ID to search for.
ctx : ProjectContext
The project context with user and project information.
service : TaskService
The task service instance.

Returns

TaskResultResponse
The task result information including figure paths.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"task_id": "string",
  
"task_name": "string",
  
"qid": "string",
  
"chip_id": "",
  
"status": "string",
  
"execution_id": "string",
  
"flow_name": "",
  
"user_id": "string",
  
"username": "",
  
"figure_path": [
  
  
"string"
  
],
  
"json_figure_path": [
  
  
"string"
  
],
  
"raw_data_path": [
  
  
"string"
  
],
  
"input_parameters": {
  
  
"additionalProperties": {
  
  
  
"parameter_name": "",
  
  
  
"qid_role": "",
  
  
  
"source": "string",
  
  
  
"required": false,
  
  
  
"value": "string",
  
  
  
"value_type": "",
  
  
  
"error": 0,
  
  
  
"unit": "",
  
  
  
"description": "",
  
  
  
"calibrated_at": "string",
  
  
  
"execution_id": "",
  
  
  
"task_id": "",
  
  
  
"ui_group": "",
  
  
  
"ui_group_collapsed": false,
  
  
  
"additionalProperties": "string"
  
  
}
  
},
  
"output_parameters": {
  
  
"additionalProperties": {
  
  
  
"parameter_name": "",
  
  
  
"qid_role": "",
  
  
  
"source": "string",
  
  
  
"required": false,
  
  
  
"value": "string",
  
  
  
"value_type": "",
  
  
  
"error": 0,
  
  
  
"unit": "",
  
  
  
"description": "",
  
  
  
"calibrated_at": "string",
  
  
  
"execution_id": "",
  
  
  
"task_id": "",
  
  
  
"previous_database_value": "string",
  
  
  
"database_updated": false,
  
  
  
"database_updates": [
  
  
  
  
{
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
"updated": false
  
  
  
  
}
  
  
  
],
  
  
  
"additionalProperties": "string"
  
  
}
  
},
  
"output_parameter_names": [
  
  
"string"
  
],
  
"run_parameters": {
  
  
"additionalProperties": "string"
  
},
  
"note": {
  
  
"additionalProperties": "string"
  
},
  
"tags": [
  
  
[
  
  
]
  
],
  
"message": "",
  
"stack_trace": "",
  
"source_task_id": "string",
  
"re_executions": [
  
  
{
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"status": "string",
  
  
  
"start_at": "string"
  
  
}
  
],
  
"start_at": "string",
  
"end_at": "string",
  
"elapsed_time": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List all task knowledge entries​

GET
/task-knowledge

List all available task knowledge entries with summary info.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"name": "string",
  
  
  
"category": "",
  
  
  
"summary": "string",
  
  
  
"example_count": 0,
  
  
  
"figure_count": 0
  
  
}
  
],
  
"categories": {
  
  
"additionalProperties": "string"
  
}
}

Playground​

Authorization

Samples​


Get raw markdown for a task knowledge entry​

GET
/tasks/{task_name}/knowledge/markdown

Get raw markdown content for a task knowledge entry.

Returns the task.md content with image references replaced
by inline base64 data URIs for self-contained rendering.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

task_name*
Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Variables
Key
Value

Samples​


Download a task's knowledge directory as a zip​

GET
/tasks/{task_name}/knowledge/archive

The task's task.md, examples and figures, zipped under <task_name>/.

The zip is the starting point of a knowledge draft: edit it locally and
upload it from the evaluation dialog. Raises 404 when the task has no
knowledge directory.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

task_name*
Type
string
Required

Responses​

Successful Response

application/zip

Playground​

Authorization
Variables
Key
Value

Samples​


Preview the prompts an AI evaluation of a task would send​

GET
/tasks/{task_name}/evaluation-prompts

The prompts the evaluation model would receive for a task.

The Agent Runtime builds them the way a direct evaluation does, from the
task's reference in Knowledge, or from an uploaded draft, and its labeled
examples when asked, as the requesting user, without a figure or a model
call.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_name*
Type
string
Required

Query Parameters

with_examples

Lay out the task's labeled examples, as an in-context evaluation

Type
boolean
Default
false
knowledge_draft_id

Build the prompts from this uploaded knowledge draft

Responses​

Successful Response

application/json
JSON
{
  
"task_name": "string",
  
"with_examples": false,
  
"model": "string",
  
"questions": [
  
  
{
  
  
  
"key": "string",
  
  
  
"prompt": "string"
  
  
}
  
],
  
"knowledge_chars": 0,
  
"knowledge_sha256": "string",
  
"examples": [
  
  
{
  
  
  
"id": "",
  
  
  
"title": "",
  
  
  
"outcome": "",
  
  
  
"status": "",
  
  
  
"figures": [
  
  
  
  
{
  
  
  
  
  
"sha256": "string",
  
  
  
  
  
"mime_type": "string",
  
  
  
  
  
"bytes": 0,
  
  
  
  
  
"path": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
],
  
"examples_used": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get task knowledge for LLM analysis​

GET
/tasks/{task_name}/knowledge

Get structured domain knowledge for a calibration task.

Returns LLM-oriented knowledge including physical principles,
expected behavior, evaluation criteria, and failure modes.

Parameters

task_name : str
The task name (e.g. "CheckT1", "CheckRabi").
service : TaskService
The task service instance.
backend : str
The backend name (default "qubex").

Returns

TaskKnowledgeResponse
Structured task knowledge.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

task_name*
Type
string
Required

Query Parameters

backend

Backend name

Type
string
Default
"qubex"

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"category": "",
  
"background": "",
  
"figures": [
  
  
{
  
  
  
"alt": "",
  
  
  
"path": "string",
  
  
  
"base64_data": "",
  
  
  
"mime_type": ""
  
  
}
  
],
  
"examples": [
  
  
{
  
  
  
"id": "string",
  
  
  
"title": "string",
  
  
  
"date": "",
  
  
  
"chip": "",
  
  
  
"qid": "",
  
  
  
"outcome": "string",
  
  
  
"fit_quality": "",
  
  
  
"verdict": "",
  
  
  
"source": "",
  
  
  
"status": "",
  
  
  
"suggested_range": "",
  
  
  
"parameters": "",
  
  
  
"figures": [
  
  
  
  
{
  
  
  
  
  
"alt": "",
  
  
  
  
  
"path": "string",
  
  
  
  
  
"base64_data": "",
  
  
  
  
  
"mime_type": ""
  
  
  
  
}
  
  
  
],
  
  
  
"diagnosis": "",
  
  
  
"label": ""
  
  
}
  
],
  
"prompt_text": "string",
  
"next_actions": {
  
  
"additionalProperties": {
  
  
  
"action": "string",
  
  
  
"task": "string",
  
  
  
"overrides": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"suggested_range_parameter": "string",
  
  
  
"note": ""
  
  
}
  
},
  
"reference": {
  
  
"background": "",
  
  
"guidance": [
  
  
  
"string"
  
  
],
  
  
"parameters": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"statuses": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"range_format": "string"
  
}
}

Playground​

Authorization
Variables
Key
Value

Samples​


Get task file settings​

GET
/task-files/settings

Get task file settings from config/app/settings.yaml.

Returns

Task file settings including default backend

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"default_backend": "string",
  
"default_view_mode": "string",
  
"sort_order": "string"
}

Playground​

Authorization

Samples​


List available task file backends​

GET
/task-files/backends

List all available backend directories in calibtasks.

Returns

List of backend names and paths

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"backends": [
  
  
{
  
  
  
"name": "string",
  
  
  
"path": "string"
  
  
}
  
]
}

Playground​

Authorization

Samples​


Get backend configuration​

GET
/task-files/backend-config

Get backend configuration from config/app/backend.yaml.

Returns

Backend configuration

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"default_backend": "qubex",
  
"backends": {
  
  
"additionalProperties": {
  
  
  
"description": "",
  
  
  
"tasks": [
  
  
  
  
[
  
  
  
  
]
  
  
  
]
  
  
}
  
},
  
"categories": {
  
  
"additionalProperties": [
  
  
  
"string"
  
  
]
  
}
}

Playground​

Authorization

Samples​


List all tasks in a backend​

GET
/task-files/tasks

List all task definitions found in a backend directory.

Args:

backend: Backend name (e.g., "qubex", "fake")
sort_order: Sort order for tasks
enabled_only: If True, only return tasks that are enabled

Returns:

List of task information

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

backend*
Type
string
Required
sort_order
enabled_only
Type
boolean
Default
false

Responses​

Successful Response

application/json
JSON
{
  
"tasks": [
  
  
{
  
  
  
"name": "string",
  
  
  
"class_name": "string",
  
  
  
"task_type": "string",
  
  
  
"description": "string",
  
  
  
"file_path": "string",
  
  
  
"category": "string",
  
  
  
"enabled": true,
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": [
  
  
  
  
"string"
  
  
  
]
  
  
}
  
]
}

Playground​

Authorization
Variables
Key
Value

Samples​


List task results​

GET
/task-results

List task results for cross-task investigation.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

status

Task status filter

chip_id

Chip ID filter

task_name

Task name filter

qid

Qubit or coupling ID filter

execution_id

Execution ID filter

username

Username filter

start_from

Inclusive start time lower bound

start_to

Inclusive start time upper bound

message_contains

Case-insensitive message search

skip

Number of rows to skip

Type
integer
Minimum
0
Default
0
limit

Maximum rows to return

Type
integer
Maximum
100
Minimum
1
Default
50

Responses​

Successful Response

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"chip_id": "string",
  
  
  
"status": "string",
  
  
  
"execution_id": "string",
  
  
  
"user_id": "string",
  
  
  
"username": "",
  
  
  
"message": "",
  
  
  
"has_stack_trace": false,
  
  
  
"source_task_id": "string",
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string"
  
  
}
  
],
  
"total": 0,
  
"skip": 0,
  
"limit": 0,
  
"status_counts": {
  
  
"additionalProperties": 0
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get latest qubit task results​

GET
/task-results/qubits/latest

Get the latest qubit task results for all qubits on a chip.

Retrieves the most recent task result for each qubit on the specified chip.
Results include fidelity threshold status based on x90 gate fidelity.

Parameters

chip_id : str
ID of the chip to fetch results for
task : str
Name of the task to fetch results for
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service

Returns

LatestTaskResultResponse
Task results for all qubits, keyed by qubit ID

Raises

ValueError
If the chip is not found for the current project

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id*

Chip ID

Type
string
Required
task*

Task name

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"task_name": "string",
  
"result": {
  
  
"additionalProperties": {
  
  
  
"task_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"qid": "string",
  
  
  
"name": "",
  
  
  
"upstream_id": "string",
  
  
  
"status": "pending",
  
  
  
"message": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameter_names": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"raw_data_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"task_type": "string",
  
  
  
"default_view": true
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get historical qubit task results​

GET
/task-results/qubits/history

Get historical qubit task results for a specific date.

Retrieves task results from a specific historical date using chip history
snapshots. Results are filtered to tasks executed within the specified
day in JST timezone.

Parameters

chip_id : str
ID of the chip to fetch results for
task : str
Name of the task to fetch results for
date : str
Date in YYYYMMDD format (JST timezone)
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service

Returns

LatestTaskResultResponse
Historical task results for all qubits, keyed by qubit ID

Raises

ValueError
If the chip history is not found for the specified date

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id*

Chip ID

Type
string
Required
task*

Task name

Type
string
Required
date*

Date in YYYYMMDD format

Type
string
Required
start_at

Inclusive start time lower bound

end_at

Exclusive end time upper bound

Responses​

Successful Response

application/json
JSON
{
  
"task_name": "string",
  
"result": {
  
  
"additionalProperties": {
  
  
  
"task_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"qid": "string",
  
  
  
"name": "",
  
  
  
"upstream_id": "string",
  
  
  
"status": "pending",
  
  
  
"message": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameter_names": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"raw_data_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"task_type": "string",
  
  
  
"default_view": true
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get qubit task history​

GET
/task-results/qubits/{qid}/history

Get complete task history for a specific qubit.

Retrieves all historical task results for a specific qubit, sorted by
end time in descending order. Useful for tracking calibration trends
over time.

Parameters

qid : str
Qubit ID to fetch history for
chip_id : str
ID of the chip containing the qubit
task : str
Name of the task to fetch history for
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service

Returns

TaskHistoryResponse
All historical task results, keyed by task_id

Raises

ValueError
If the chip is not found for the current project

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

qid*
Type
string
Required

Query Parameters

chip_id*

Chip ID

Type
string
Required
task*

Task name

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"data": {
  
  
"additionalProperties": {
  
  
  
"task_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"qid": "string",
  
  
  
"name": "",
  
  
  
"upstream_id": "string",
  
  
  
"status": "pending",
  
  
  
"message": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameter_names": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"raw_data_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"task_type": "string",
  
  
  
"default_view": true
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get latest coupling task results​

GET
/task-results/couplings/latest

Get the latest coupling task results for all couplings on a chip.

Retrieves the most recent task result for each coupling (qubit pair) on
the specified chip. Results include fidelity threshold status based on
Bell state fidelity.

Parameters

chip_id : str
ID of the chip to fetch results for
task : str
Name of the task to fetch results for
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service

Returns

LatestTaskResultResponse
Task results for all couplings, keyed by coupling ID (e.g., "0-1")

Raises

ValueError
If the chip is not found for the current project

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id*

Chip ID

Type
string
Required
task*

Task name

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"task_name": "string",
  
"result": {
  
  
"additionalProperties": {
  
  
  
"task_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"qid": "string",
  
  
  
"name": "",
  
  
  
"upstream_id": "string",
  
  
  
"status": "pending",
  
  
  
"message": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameter_names": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"raw_data_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"task_type": "string",
  
  
  
"default_view": true
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get historical coupling task results​

GET
/task-results/couplings/history

Get historical coupling task results for a specific date.

Retrieves task results from a specific historical date using chip history
snapshots. Results are filtered to tasks executed within the specified
day in JST timezone.

Parameters

chip_id : str
ID of the chip to fetch results for
task : str
Name of the task to fetch results for
date : str
Date in YYYYMMDD format (JST timezone)
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service

Returns

LatestTaskResultResponse
Historical task results for all couplings, keyed by coupling ID

Raises

ValueError
If the chip history is not found for the specified date

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id*

Chip ID

Type
string
Required
task*

Task name

Type
string
Required
date*

Date in YYYYMMDD format

Type
string
Required
start_at

Inclusive start time lower bound

end_at

Exclusive end time upper bound

Responses​

Successful Response

application/json
JSON
{
  
"task_name": "string",
  
"result": {
  
  
"additionalProperties": {
  
  
  
"task_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"qid": "string",
  
  
  
"name": "",
  
  
  
"upstream_id": "string",
  
  
  
"status": "pending",
  
  
  
"message": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameter_names": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"raw_data_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"task_type": "string",
  
  
  
"default_view": true
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get coupling task history​

GET
/task-results/couplings/{coupling_id}/history

Get complete task history for a specific coupling.

Retrieves all historical task results for a specific coupling (qubit pair),
sorted by end time in descending order. Useful for tracking two-qubit
calibration trends over time.

Parameters

coupling_id : str
Coupling ID to fetch history for (e.g., "0-1")
chip_id : str
ID of the chip containing the coupling
task : str
Name of the task to fetch history for
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service

Returns

TaskHistoryResponse
All historical task results, keyed by task_id

Raises

ValueError
If the chip is not found for the current project

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

coupling_id*
Type
string
Required

Query Parameters

chip_id*

Chip ID

Type
string
Required
task*

Task name

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"data": {
  
  
"additionalProperties": {
  
  
  
"task_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"qid": "string",
  
  
  
"name": "",
  
  
  
"upstream_id": "string",
  
  
  
"status": "pending",
  
  
  
"message": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameter_names": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"run_parameters": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"note": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"raw_data_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"start_at": "string",
  
  
  
"end_at": "string",
  
  
  
"elapsed_time": "string",
  
  
  
"task_type": "string",
  
  
  
"default_view": true
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get timeseries task results by tag and parameter​

GET
/task-results/timeseries

Get timeseries task results filtered by tag and parameter.

Retrieves time series data for calibration parameters, optionally filtered
to a specific qubit. Useful for plotting parameter trends over time.

Parameters

chip_id : str
ID of the chip to fetch results for
tag : str
Tag to filter tasks by (e.g., calibration category)
parameter : str
Name of the output parameter to retrieve
start_at : str
Start time in ISO format for the time range
end_at : str
End time in ISO format for the time range
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service
qid : str | None
Optional qubit ID to filter results to a specific qubit

Returns

TimeSeriesData
Time series data keyed by qubit ID, each containing a list of
parameter values with timestamps

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id*

Chip ID

Type
string
Required
parameter*

Parameter name

Type
string
Required
start_at*

Start time in ISO format

Type
string
Required
end_at*

End time in ISO format

Type
string
Required
tag

Tag to filter by

qid

Optional qubit ID to filter by

Responses​

Successful Response

application/json
JSON
{
  
"data": {
  
  
"additionalProperties": [
  
  
  
{
  
  
  
  
"parameter_name": "",
  
  
  
  
"qid_role": "",
  
  
  
  
"source": "string",
  
  
  
  
"required": false,
  
  
  
  
"value": 0,
  
  
  
  
"value_type": "float",
  
  
  
  
"error": 0,
  
  
  
  
"unit": "",
  
  
  
  
"description": "",
  
  
  
  
"calibrated_at": "string",
  
  
  
  
"execution_id": "",
  
  
  
  
"task_id": ""
  
  
  
}
  
  
]
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Re-execute a single task from its task result​

POST
/task-results/{task_id}/re-execute

Re-execute a single task using the system single-task-executor deployment.

Looks up the TaskResultHistoryDocument to extract task_name, qid, chip_id,
execution_id, and tags, then delegates to FlowService to create a Prefect
flow run via the system deployment.

Parameters

task_id : str
The task result ID to re-execute
ctx : ProjectContext
Project context with user and project information
service : TaskResultService
Injected task result service
flow_service : FlowService
Injected flow service

Returns

ExecuteFlowResponse
Execution result with IDs and URLs

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"parameter_overrides": {
  
  
"additionalProperties": {
  
  
  
"additionalProperties": "string"
  
  
}
  
},
  
"update_params": true,
  
"reconfigure": false
}

Responses​

Successful Response

application/json
JSON
{
  
"execution_id": "string",
  
"flow_run_id": "string",
  
"flow_run_url": "string",
  
"qdash_ui_url": "string",
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Toggle exclusion of a task result from metrics aggregations​

POST
/task-results/{task_id}/exclude

Toggle the excluded flag on a task result.

Excluded measurements are skipped when aggregating metrics for the
dashboard / metrics screens. Raw data is preserved.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"excluded": true,
  
"reason": ""
}

Responses​

Successful Response

application/json
JSON
{
  
"task_id": "string",
  
"excluded": true,
  
"excluded_reason": "string",
  
"excluded_by_user_id": "string",
  
"excluded_by": "string",
  
"excluded_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Download multiple figures as a ZIP file​

POST
/task-results/figures/download

Download multiple calibration figures as a ZIP file.

Creates a ZIP archive on temporary storage and serves it without retaining
the completed archive in API worker memory.

Parameters

body.paths : list[str]
List of absolute file paths to the calibration figures
body.filename : str
Filename for the ZIP archive (default: "figures.zip")

Returns

FileResponse
ZIP archive streamed from a temporary file

Raises

HTTPException
400 if no paths are provided or if any path does not exist

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"paths": [
  
  
[
  
  
]
  
],
  
"filename": "figures.zip"
}

Responses​

Successful Response

application/zip

Playground​

Authorization
Headers
Body

Samples​


List calibration evaluation runs​

GET
/evaluations/runs

List runs of the project, newest first.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

chip_id

Only runs on this chip

task

Only runs of this task

limit

Newest runs to return

Type
integer
Maximum
200
Minimum
1
Default
20

Responses​

Successful Response

application/json
JSON
{
  
"runs": [
  
  
{
  
  
  
"run_id": "string",
  
  
  
"chip_id": "string",
  
  
  
"task_name": "string",
  
  
  
"entity_type": "string",
  
  
  
"date": "string",
  
  
  
"question": "string",
  
  
  
"knowledge_draft_id": "string",
  
  
  
"knowledge_draft_name": "string",
  
  
  
"trigger": "string",
  
  
  
"mode": "string",
  
  
  
"with_examples": false,
  
  
  
"planner_model": "string",
  
  
  
"evaluation_model": "string",
  
  
  
"requested_by": "string",
  
  
  
"requested_at": "string",
  
  
  
"completed_at": "string",
  
  
  
"status": "string",
  
  
  
"total": 0,
  
  
  
"completed_count": 0,
  
  
  
"failed_count": 0,
  
  
  
"interrupted_count": 0,
  
  
  
"cancelled_count": 0,
  
  
  
"pending_count": 0,
  
  
  
"parsed_count": 0,
  
  
  
"complete_count": 0,
  
  
  
"elapsed_ms": 0,
  
  
  
"duration_ms_total": 0,
  
  
  
"success_count": 0,
  
  
  
"agree_count": 0,
  
  
  
"disagree_count": 0,
  
  
  
"reference_used_count": 0,
  
  
  
"examples_used_count": 0,
  
  
  
"model": "string",
  
  
  
"models": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"evaluator": {
  
  
  
  
"name": "string",
  
  
  
  
"version": "string",
  
  
  
  
"source": "string",
  
  
  
  
"commit": "string"
  
  
  
},
  
  
  
"evaluators": [
  
  
  
  
{
  
  
  
  
  
"name": "string",
  
  
  
  
  
"version": "string",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"commit": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Start a bulk calibration evaluation run​

POST
/evaluations/runs

Queue the latest evaluable result of a task for every entity on a chip.

The evaluations run in the background as the requesting user; poll the run
for progress. Entities without an evaluable result are reported as skipped.
With knowledge_draft_id the run reads that uploaded draft instead of the
task's shared knowledge.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"chip_id": "string",
  
"task": "string",
  
"entity_type": "qubit",
  
"date": "string",
  
"task_ids": [
  
  
"string"
  
],
  
"qids": [
  
  
"string"
  
],
  
"knowledge_draft_id": "string",
  
"trigger": "bulk",
  
"with_examples": false,
  
"mode": "direct",
  
"evaluation_model": {
  
  
"provider": "string",
  
  
"name": "string"
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"run": {
  
  
"run_id": "string",
  
  
"chip_id": "string",
  
  
"task_name": "string",
  
  
"entity_type": "string",
  
  
"date": "string",
  
  
"question": "string",
  
  
"knowledge_draft_id": "string",
  
  
"knowledge_draft_name": "string",
  
  
"trigger": "string",
  
  
"mode": "string",
  
  
"with_examples": false,
  
  
"planner_model": "string",
  
  
"evaluation_model": "string",
  
  
"requested_by": "string",
  
  
"requested_at": "string",
  
  
"completed_at": "string",
  
  
"status": "string",
  
  
"total": 0,
  
  
"completed_count": 0,
  
  
"failed_count": 0,
  
  
"interrupted_count": 0,
  
  
"cancelled_count": 0,
  
  
"pending_count": 0,
  
  
"parsed_count": 0,
  
  
"complete_count": 0,
  
  
"elapsed_ms": 0,
  
  
"duration_ms_total": 0,
  
  
"success_count": 0,
  
  
"agree_count": 0,
  
  
"disagree_count": 0,
  
  
"reference_used_count": 0,
  
  
"examples_used_count": 0,
  
  
"model": "string",
  
  
"models": [
  
  
  
"string"
  
  
],
  
  
"evaluator": {
  
  
  
"name": "string",
  
  
  
"version": "string",
  
  
  
"source": "string",
  
  
  
"commit": "string"
  
  
},
  
  
"evaluators": [
  
  
  
{
  
  
  
  
"name": "string",
  
  
  
  
"version": "string",
  
  
  
  
"source": "string",
  
  
  
  
"commit": "string"
  
  
  
}
  
  
]
  
},
  
"task_ids": [
  
  
"string"
  
],
  
"skipped": {
  
  
"additionalProperties": "string"
  
}
}

Playground​

Authorization
Headers
Body

Samples​


Get a calibration evaluation run​

GET
/evaluations/runs/{run_id}

One run with every evaluation, including what the model saw and answered.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

run_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"run": {
  
  
"run_id": "string",
  
  
"chip_id": "string",
  
  
"task_name": "string",
  
  
"entity_type": "string",
  
  
"date": "string",
  
  
"question": "string",
  
  
"knowledge_draft_id": "string",
  
  
"knowledge_draft_name": "string",
  
  
"trigger": "string",
  
  
"mode": "string",
  
  
"with_examples": false,
  
  
"planner_model": "string",
  
  
"evaluation_model": "string",
  
  
"requested_by": "string",
  
  
"requested_at": "string",
  
  
"completed_at": "string",
  
  
"status": "string",
  
  
"total": 0,
  
  
"completed_count": 0,
  
  
"failed_count": 0,
  
  
"interrupted_count": 0,
  
  
"cancelled_count": 0,
  
  
"pending_count": 0,
  
  
"parsed_count": 0,
  
  
"complete_count": 0,
  
  
"elapsed_ms": 0,
  
  
"duration_ms_total": 0,
  
  
"success_count": 0,
  
  
"agree_count": 0,
  
  
"disagree_count": 0,
  
  
"reference_used_count": 0,
  
  
"examples_used_count": 0,
  
  
"model": "string",
  
  
"models": [
  
  
  
"string"
  
  
],
  
  
"evaluator": {
  
  
  
"name": "string",
  
  
  
"version": "string",
  
  
  
"source": "string",
  
  
  
"commit": "string"
  
  
},
  
  
"evaluators": [
  
  
  
{
  
  
  
  
"name": "string",
  
  
  
  
"version": "string",
  
  
  
  
"source": "string",
  
  
  
  
"commit": "string"
  
  
  
}
  
  
]
  
},
  
"evaluations": [
  
  
{
  
  
  
"evaluation_id": "string",
  
  
  
"run_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"execution_id": "string",
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"status": "string",
  
  
  
"requested_at": "string",
  
  
  
"started_at": "string",
  
  
  
"completed_at": "string",
  
  
  
"error": "string",
  
  
  
"input": {
  
  
  
  
"context": "string",
  
  
  
  
"prompt": "string",
  
  
  
  
"system_prompt": "string",
  
  
  
  
"question": "string",
  
  
  
  
"knowledge_chars": 0,
  
  
  
  
"knowledge_sha256": "string",
  
  
  
  
"reference_requested": true,
  
  
  
  
"reference_used": false,
  
  
  
  
"examples_requested": false,
  
  
  
  
"examples_used": 0,
  
  
  
  
"figures": [
  
  
  
  
  
{
  
  
  
  
  
  
"sha256": "string",
  
  
  
  
  
  
"mime_type": "string",
  
  
  
  
  
  
"bytes": 0,
  
  
  
  
  
  
"path": "string"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"examples": [
  
  
  
  
  
{
  
  
  
  
  
  
"id": "",
  
  
  
  
  
  
"title": "",
  
  
  
  
  
  
"outcome": "",
  
  
  
  
  
  
"status": "",
  
  
  
  
  
  
"figures": [
  
  
  
  
  
  
  
{
  
  
  
  
  
  
  
  
"sha256": "string",
  
  
  
  
  
  
  
  
"mime_type": "string",
  
  
  
  
  
  
  
  
"bytes": 0,
  
  
  
  
  
  
  
  
"path": "string"
  
  
  
  
  
  
  
}
  
  
  
  
  
  
]
  
  
  
  
  
}
  
  
  
  
]
  
  
  
},
  
  
  
"output": {
  
  
  
  
"model": "string",
  
  
  
  
"fallback": false,
  
  
  
  
"diagnosis": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"raw": "string",
  
  
  
  
"answers": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"questions": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"parsed": false,
  
  
  
  
"complete": false,
  
  
  
  
"missing_keys": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"attempts": 0,
  
  
  
  
"structured": true,
  
  
  
  
"stop_reason": "string",
  
  
  
  
"calls": [
  
  
  
  
  
{
  
  
  
  
  
  
"question": "string",
  
  
  
  
  
  
"duration_ms": 0,
  
  
  
  
  
  
"stop_reason": "string",
  
  
  
  
  
  
"structured": false,
  
  
  
  
  
  
"input_tokens": 0,
  
  
  
  
  
  
"output_tokens": 0,
  
  
  
  
  
  
"missing_keys": [
  
  
  
  
  
  
  
"string"
  
  
  
  
  
  
]
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"duration_ms": 0,
  
  
  
  
"usage": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"context_window": 0
  
  
  
},
  
  
  
"evaluator": {
  
  
  
  
"name": "string",
  
  
  
  
"version": "string",
  
  
  
  
"source": "string",
  
  
  
  
"commit": "string"
  
  
  
},
  
  
  
"planner": {
  
  
  
  
"model": "string",
  
  
  
  
"answer": "",
  
  
  
  
"tool_calls": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"duration_ms": 0
  
  
  
},
  
  
  
"verdict": {
  
  
  
  
"agree": true,
  
  
  
  
"note": "string",
  
  
  
  
"issues": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"username": "string",
  
  
  
  
"updated_at": "string"
  
  
  
},
  
  
  
"verdicts": [
  
  
  
  
{
  
  
  
  
  
"agree": true,
  
  
  
  
  
"note": "string",
  
  
  
  
  
"issues": [
  
  
  
  
  
  
"string"
  
  
  
  
  
],
  
  
  
  
  
"username": "string",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"verdict_history": [
  
  
  
  
{
  
  
  
  
  
"agree": true,
  
  
  
  
  
"note": "string",
  
  
  
  
  
"issues": [
  
  
  
  
  
  
"string"
  
  
  
  
  
],
  
  
  
  
  
"username": "string",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Retry unfinished calibration evaluations​

POST
/evaluations/runs/{run_id}/retry

Reset failed, interrupted or cancelled items and execute them again.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

run_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"run": {
  
  
"run_id": "string",
  
  
"chip_id": "string",
  
  
"task_name": "string",
  
  
"entity_type": "string",
  
  
"date": "string",
  
  
"question": "string",
  
  
"knowledge_draft_id": "string",
  
  
"knowledge_draft_name": "string",
  
  
"trigger": "string",
  
  
"mode": "string",
  
  
"with_examples": false,
  
  
"planner_model": "string",
  
  
"evaluation_model": "string",
  
  
"requested_by": "string",
  
  
"requested_at": "string",
  
  
"completed_at": "string",
  
  
"status": "string",
  
  
"total": 0,
  
  
"completed_count": 0,
  
  
"failed_count": 0,
  
  
"interrupted_count": 0,
  
  
"cancelled_count": 0,
  
  
"pending_count": 0,
  
  
"parsed_count": 0,
  
  
"complete_count": 0,
  
  
"elapsed_ms": 0,
  
  
"duration_ms_total": 0,
  
  
"success_count": 0,
  
  
"agree_count": 0,
  
  
"disagree_count": 0,
  
  
"reference_used_count": 0,
  
  
"examples_used_count": 0,
  
  
"model": "string",
  
  
"models": [
  
  
  
"string"
  
  
],
  
  
"evaluator": {
  
  
  
"name": "string",
  
  
  
"version": "string",
  
  
  
"source": "string",
  
  
  
"commit": "string"
  
  
},
  
  
"evaluators": [
  
  
  
{
  
  
  
  
"name": "string",
  
  
  
  
"version": "string",
  
  
  
  
"source": "string",
  
  
  
  
"commit": "string"
  
  
  
}
  
  
]
  
},
  
"retried": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Cancel a calibration evaluation run​

POST
/evaluations/runs/{run_id}/cancel

Cancel evaluations in this run that have not completed.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

run_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"run_id": "string",
  
"chip_id": "string",
  
"task_name": "string",
  
"entity_type": "string",
  
"date": "string",
  
"question": "string",
  
"knowledge_draft_id": "string",
  
"knowledge_draft_name": "string",
  
"trigger": "string",
  
"mode": "string",
  
"with_examples": false,
  
"planner_model": "string",
  
"evaluation_model": "string",
  
"requested_by": "string",
  
"requested_at": "string",
  
"completed_at": "string",
  
"status": "string",
  
"total": 0,
  
"completed_count": 0,
  
"failed_count": 0,
  
"interrupted_count": 0,
  
"cancelled_count": 0,
  
"pending_count": 0,
  
"parsed_count": 0,
  
"complete_count": 0,
  
"elapsed_ms": 0,
  
"duration_ms_total": 0,
  
"success_count": 0,
  
"agree_count": 0,
  
"disagree_count": 0,
  
"reference_used_count": 0,
  
"examples_used_count": 0,
  
"model": "string",
  
"models": [
  
  
"string"
  
],
  
"evaluator": {
  
  
"name": "string",
  
  
"version": "string",
  
  
"source": "string",
  
  
"commit": "string"
  
},
  
"evaluators": [
  
  
{
  
  
  
"name": "string",
  
  
  
"version": "string",
  
  
  
"source": "string",
  
  
  
"commit": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List evaluations of a task result​

GET
/evaluations

Every evaluation of one task result across runs, newest first.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

task_id*

Task result ID

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"evaluations": [
  
  
{
  
  
  
"evaluation_id": "string",
  
  
  
"run_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"execution_id": "string",
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"status": "string",
  
  
  
"requested_at": "string",
  
  
  
"started_at": "string",
  
  
  
"completed_at": "string",
  
  
  
"error": "string",
  
  
  
"input": {
  
  
  
  
"context": "string",
  
  
  
  
"prompt": "string",
  
  
  
  
"system_prompt": "string",
  
  
  
  
"question": "string",
  
  
  
  
"knowledge_chars": 0,
  
  
  
  
"knowledge_sha256": "string",
  
  
  
  
"reference_requested": true,
  
  
  
  
"reference_used": false,
  
  
  
  
"examples_requested": false,
  
  
  
  
"examples_used": 0,
  
  
  
  
"figures": [
  
  
  
  
  
{
  
  
  
  
  
  
"sha256": "string",
  
  
  
  
  
  
"mime_type": "string",
  
  
  
  
  
  
"bytes": 0,
  
  
  
  
  
  
"path": "string"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"examples": [
  
  
  
  
  
{
  
  
  
  
  
  
"id": "",
  
  
  
  
  
  
"title": "",
  
  
  
  
  
  
"outcome": "",
  
  
  
  
  
  
"status": "",
  
  
  
  
  
  
"figures": [
  
  
  
  
  
  
  
{
  
  
  
  
  
  
  
  
"sha256": "string",
  
  
  
  
  
  
  
  
"mime_type": "string",
  
  
  
  
  
  
  
  
"bytes": 0,
  
  
  
  
  
  
  
  
"path": "string"
  
  
  
  
  
  
  
}
  
  
  
  
  
  
]
  
  
  
  
  
}
  
  
  
  
]
  
  
  
},
  
  
  
"output": {
  
  
  
  
"model": "string",
  
  
  
  
"fallback": false,
  
  
  
  
"diagnosis": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"raw": "string",
  
  
  
  
"answers": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"questions": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"parsed": false,
  
  
  
  
"complete": false,
  
  
  
  
"missing_keys": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"attempts": 0,
  
  
  
  
"structured": true,
  
  
  
  
"stop_reason": "string",
  
  
  
  
"calls": [
  
  
  
  
  
{
  
  
  
  
  
  
"question": "string",
  
  
  
  
  
  
"duration_ms": 0,
  
  
  
  
  
  
"stop_reason": "string",
  
  
  
  
  
  
"structured": false,
  
  
  
  
  
  
"input_tokens": 0,
  
  
  
  
  
  
"output_tokens": 0,
  
  
  
  
  
  
"missing_keys": [
  
  
  
  
  
  
  
"string"
  
  
  
  
  
  
]
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"duration_ms": 0,
  
  
  
  
"usage": {
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
},
  
  
  
  
"context_window": 0
  
  
  
},
  
  
  
"evaluator": {
  
  
  
  
"name": "string",
  
  
  
  
"version": "string",
  
  
  
  
"source": "string",
  
  
  
  
"commit": "string"
  
  
  
},
  
  
  
"planner": {
  
  
  
  
"model": "string",
  
  
  
  
"answer": "",
  
  
  
  
"tool_calls": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"duration_ms": 0
  
  
  
},
  
  
  
"verdict": {
  
  
  
  
"agree": true,
  
  
  
  
"note": "string",
  
  
  
  
"issues": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"username": "string",
  
  
  
  
"updated_at": "string"
  
  
  
},
  
  
  
"verdicts": [
  
  
  
  
{
  
  
  
  
  
"agree": true,
  
  
  
  
  
"note": "string",
  
  
  
  
  
"issues": [
  
  
  
  
  
  
"string"
  
  
  
  
  
],
  
  
  
  
  
"username": "string",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"verdict_history": [
  
  
  
  
{
  
  
  
  
  
"agree": true,
  
  
  
  
  
"note": "string",
  
  
  
  
  
"issues": [
  
  
  
  
  
  
"string"
  
  
  
  
  
],
  
  
  
  
  
"username": "string",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Judge a calibration evaluation​

PUT
/evaluations/{evaluation_id}/verdict

Record whether a person agrees with an evaluation; null agree and no note clears it.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

evaluation_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"agree": true,
  
"note": "string",
  
"issues": [
  
  
"string"
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"evaluation_id": "string",
  
"run_id": "string",
  
"task_id": "string",
  
"task_name": "string",
  
"qid": "string",
  
"execution_id": "string",
  
"figure_path": [
  
  
"string"
  
],
  
"json_figure_path": [
  
  
"string"
  
],
  
"status": "string",
  
"requested_at": "string",
  
"started_at": "string",
  
"completed_at": "string",
  
"error": "string",
  
"input": {
  
  
"context": "string",
  
  
"prompt": "string",
  
  
"system_prompt": "string",
  
  
"question": "string",
  
  
"knowledge_chars": 0,
  
  
"knowledge_sha256": "string",
  
  
"reference_requested": true,
  
  
"reference_used": false,
  
  
"examples_requested": false,
  
  
"examples_used": 0,
  
  
"figures": [
  
  
  
{
  
  
  
  
"sha256": "string",
  
  
  
  
"mime_type": "string",
  
  
  
  
"bytes": 0,
  
  
  
  
"path": "string"
  
  
  
}
  
  
],
  
  
"examples": [
  
  
  
{
  
  
  
  
"id": "",
  
  
  
  
"title": "",
  
  
  
  
"outcome": "",
  
  
  
  
"status": "",
  
  
  
  
"figures": [
  
  
  
  
  
{
  
  
  
  
  
  
"sha256": "string",
  
  
  
  
  
  
"mime_type": "string",
  
  
  
  
  
  
"bytes": 0,
  
  
  
  
  
  
"path": "string"
  
  
  
  
  
}
  
  
  
  
]
  
  
  
}
  
  
]
  
},
  
"output": {
  
  
"model": "string",
  
  
"fallback": false,
  
  
"diagnosis": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"raw": "string",
  
  
"answers": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"questions": [
  
  
  
"string"
  
  
],
  
  
"parsed": false,
  
  
"complete": false,
  
  
"missing_keys": [
  
  
  
"string"
  
  
],
  
  
"attempts": 0,
  
  
"structured": true,
  
  
"stop_reason": "string",
  
  
"calls": [
  
  
  
{
  
  
  
  
"question": "string",
  
  
  
  
"duration_ms": 0,
  
  
  
  
"stop_reason": "string",
  
  
  
  
"structured": false,
  
  
  
  
"input_tokens": 0,
  
  
  
  
"output_tokens": 0,
  
  
  
  
"missing_keys": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
}
  
  
],
  
  
"duration_ms": 0,
  
  
"usage": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"context_window": 0
  
},
  
"evaluator": {
  
  
"name": "string",
  
  
"version": "string",
  
  
"source": "string",
  
  
"commit": "string"
  
},
  
"planner": {
  
  
"model": "string",
  
  
"answer": "",
  
  
"tool_calls": [
  
  
  
"string"
  
  
],
  
  
"duration_ms": 0
  
},
  
"verdict": {
  
  
"agree": true,
  
  
"note": "string",
  
  
"issues": [
  
  
  
"string"
  
  
],
  
  
"username": "string",
  
  
"updated_at": "string"
  
},
  
"verdicts": [
  
  
{
  
  
  
"agree": true,
  
  
  
"note": "string",
  
  
  
"issues": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"username": "string",
  
  
  
"updated_at": "string"
  
  
}
  
],
  
"verdict_history": [
  
  
{
  
  
  
"agree": true,
  
  
  
"note": "string",
  
  
  
"issues": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"username": "string",
  
  
  
"updated_at": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Get a snapshotted evaluation figure​

GET
/evaluations/{evaluation_id}/figures/{sha256}

The exact image bytes supplied to the model for this evaluation.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

evaluation_id*
Type
string
Required
sha256*
Type
string
Required

Responses​

Successful Response

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Upload a task-knowledge draft to evaluate against​

POST
/evaluations/knowledge-drafts

Store one task's knowledge directory, zipped, as a draft of the project.

The draft is parsed by the knowledge repository's own generator and is
read only by the evaluation runs and prompt previews that name it; the
shared knowledge does not change. Uploading the same zip again returns
the stored draft.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

multipart/form-data
Format"binary"

Responses​

Successful Response

application/json
JSON
{
  
"draft_id": "string",
  
"task_name": "string",
  
"filename": "string",
  
"uploaded_by": "string",
  
"created_at": "string",
  
"warnings": [
  
  
"string"
  
],
  
"reference": {
  
  
"background": "",
  
  
"guidance": [
  
  
  
"string"
  
  
],
  
  
"parameters": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"statuses": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"range_format": "string"
  
},
  
"example_count": 0,
  
"figure_count": 0
}

Playground​

Authorization
Headers
Body

Samples​


Get a task-knowledge draft​

GET
/evaluations/knowledge-drafts/{draft_id}

The draft's task, uploader, generator warnings and derived reference.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

draft_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"draft_id": "string",
  
"task_name": "string",
  
"filename": "string",
  
"uploaded_by": "string",
  
"created_at": "string",
  
"warnings": [
  
  
"string"
  
],
  
"reference": {
  
  
"background": "",
  
  
"guidance": [
  
  
  
"string"
  
  
],
  
  
"parameters": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"statuses": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"range_format": "string"
  
},
  
"example_count": 0,
  
"figure_count": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get a task-knowledge draft as task knowledge​

GET
/evaluations/knowledge-drafts/{draft_id}/knowledge

The draft in the shape of GET /tasks/{name}/knowledge, for the Agent Runtime.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

draft_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"category": "",
  
"background": "",
  
"figures": [
  
  
{
  
  
  
"alt": "",
  
  
  
"path": "string",
  
  
  
"base64_data": "",
  
  
  
"mime_type": ""
  
  
}
  
],
  
"examples": [
  
  
{
  
  
  
"id": "string",
  
  
  
"title": "string",
  
  
  
"date": "",
  
  
  
"chip": "",
  
  
  
"qid": "",
  
  
  
"outcome": "string",
  
  
  
"fit_quality": "",
  
  
  
"verdict": "",
  
  
  
"source": "",
  
  
  
"status": "",
  
  
  
"suggested_range": "",
  
  
  
"parameters": "",
  
  
  
"figures": [
  
  
  
  
{
  
  
  
  
  
"alt": "",
  
  
  
  
  
"path": "string",
  
  
  
  
  
"base64_data": "",
  
  
  
  
  
"mime_type": ""
  
  
  
  
}
  
  
  
],
  
  
  
"diagnosis": "",
  
  
  
"label": ""
  
  
}
  
],
  
"prompt_text": "string",
  
"next_actions": {
  
  
"additionalProperties": {
  
  
  
"action": "string",
  
  
  
"task": "string",
  
  
  
"overrides": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"suggested_range_parameter": "string",
  
  
  
"note": ""
  
  
}
  
},
  
"reference": {
  
  
"background": "",
  
  
"guidance": [
  
  
  
"string"
  
  
],
  
  
"parameters": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"statuses": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"range_format": "string"
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Download the zip a task-knowledge draft was uploaded as​

GET
/evaluations/knowledge-drafts/{draft_id}/archive

The uploaded zip, byte for byte, so the knowledge a run read can be reused.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

draft_id*
Type
string
Required

Responses​

Successful Response

application/zip

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List forum categories​

GET
/forum/categories

List forum categories for the active project.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

include_archived

Include archived categories

Type
boolean
Default
false

Responses​

Successful Response

application/json
JSON
{
  
"categories": [
  
  
{
  
  
  
"id": "string",
  
  
  
"project_id": "string",
  
  
  
"key": "string",
  
  
  
"name": "string",
  
  
  
"description": "",
  
  
  
"color": "neutral",
  
  
  
"icon": "message-square",
  
  
  
"sort_order": 100,
  
  
  
"is_archived": false
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Create a forum category​

POST
/forum/categories

Create a forum category. Only project owners can manage categories.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"key": "string",
  
"name": "string",
  
"description": "",
  
"color": "neutral",
  
"icon": "message-square",
  
"sort_order": 0
}

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"project_id": "string",
  
"key": "string",
  
"name": "string",
  
"description": "",
  
"color": "neutral",
  
"icon": "message-square",
  
"sort_order": 100,
  
"is_archived": false
}

Playground​

Authorization
Headers
Body

Samples​


Archive a forum category​

DELETE
/forum/categories/{category_key}

Archive a forum category. Existing threads keep their category key.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

category_key*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Update a forum category​

PATCH
/forum/categories/{category_key}

Update a forum category. Only project owners can manage categories.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

category_key*
Type
string
Required

Request Body​

application/json
JSON
{
  
"name": "string",
  
"description": "string",
  
"color": "string",
  
"icon": "string",
  
"sort_order": 0,
  
"is_archived": true
}

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"project_id": "string",
  
"key": "string",
  
"name": "string",
  
"description": "",
  
"color": "neutral",
  
"icon": "message-square",
  
"sort_order": 100,
  
"is_archived": false
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List forum labels​

GET
/forum/labels

List forum labels for the active project.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"labels": [
  
  
{
  
  
  
"key": "string",
  
  
  
"name": "string",
  
  
  
"description": "",
  
  
  
"color": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers

Samples​


Create a forum label​

POST
/forum/labels

Create a forum label. Only project owners and editors can manage labels; the key is server-generated.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"name": "string",
  
"description": "",
  
"color": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"key": "string",
  
"name": "string",
  
"description": "",
  
"color": "string"
}

Playground​

Authorization
Headers
Body

Samples​


Delete a forum label​

DELETE
/forum/labels/{label_key}

Delete a forum label. Only project owners and editors can manage labels.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

label_key*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Update a forum label​

PATCH
/forum/labels/{label_key}

Update a forum label. Only project owners and editors can manage labels.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

label_key*
Type
string
Required

Request Body​

application/json
JSON
{
  
"name": "string",
  
"description": "string",
  
"color": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"key": "string",
  
"name": "string",
  
"description": "",
  
"color": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List forum threads​

GET
/forum/posts

List root forum threads for the active project.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

skip

Number of items to skip

Type
integer
Minimum
0
Default
0
limit

Max items to return

Type
integer
Maximum
200
Minimum
1
Default
50
category

Filter by category key

label

Filter by thread label

chip_id

Filter by linked chip ID

target_type

Filter by linked target type

target_id

Filter by linked target ID

cooldown_id

Filter by linked cool-down ID

task_id

Only threads about this task result

number

Filter by project-scoped forum thread number

status

Filter by workflow status. Default open; 'all' lists every status.

Default
"open"
q

Search title, content, number, target, assignee, or status

Responses​

Successful Response

application/json
JSON
{
  
"posts": [
  
  
{
  
  
  
"id": "string",
  
  
  
"project_id": "string",
  
  
  
"number": 0,
  
  
  
"category": "string",
  
  
  
"user_id": "string",
  
  
  
"username": "string",
  
  
  
"avatar_key": "string",
  
  
  
"title": "string",
  
  
  
"content": "string",
  
  
  
"content_blocks": [
  
  
  
  
{
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"parent_id": "string",
  
  
  
"labels": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"assignee_username": "string",
  
  
  
"status": "open",
  
  
  
"chip_id": "string",
  
  
  
"target_type": "string",
  
  
  
"target_id": "string",
  
  
  
"cooldown_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_result": {
  
  
  
  
"task_id": "string",
  
  
  
  
"task_name": "string",
  
  
  
  
"qid": "string",
  
  
  
  
"chip_id": "string",
  
  
  
  
"status": "string",
  
  
  
  
"end_at": "string",
  
  
  
  
"figure_path": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"json_figure_path": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
},
  
  
  
"reply_count": 0,
  
  
  
"is_deleted": false,
  
  
  
"is_ai_reply": false,
  
  
  
"created_at": "string",
  
  
  
"updated_at": "string"
  
  
}
  
],
  
"total": 0,
  
"skip": 0,
  
"limit": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Create a forum thread or reply​

POST
/forum/posts

Create a new project forum thread or reply.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"category": "string",
  
"title": "string",
  
"content": "string",
  
"content_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
],
  
"parent_id": "string",
  
"labels": [
  
  
"string"
  
],
  
"assignee_username": "string",
  
"status": "open",
  
"chip_id": "string",
  
"target_type": "string",
  
"target_id": "string",
  
"cooldown_id": "string",
  
"task_id": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"project_id": "string",
  
"number": 0,
  
"category": "string",
  
"user_id": "string",
  
"username": "string",
  
"avatar_key": "string",
  
"title": "string",
  
"content": "string",
  
"content_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
],
  
"parent_id": "string",
  
"labels": [
  
  
"string"
  
],
  
"assignee_username": "string",
  
"status": "open",
  
"chip_id": "string",
  
"target_type": "string",
  
"target_id": "string",
  
"cooldown_id": "string",
  
"task_id": "string",
  
"task_result": {
  
  
"task_id": "string",
  
  
"task_name": "string",
  
  
"qid": "string",
  
  
"chip_id": "string",
  
  
"status": "string",
  
  
"end_at": "string",
  
  
"figure_path": [
  
  
  
"string"
  
  
],
  
  
"json_figure_path": [
  
  
  
"string"
  
  
]
  
},
  
"reply_count": 0,
  
"is_deleted": false,
  
"is_ai_reply": false,
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Body

Samples​


Get a forum post​

GET
/forum/posts/{post_id}

Get a forum post by ID.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

post_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"project_id": "string",
  
"number": 0,
  
"category": "string",
  
"user_id": "string",
  
"username": "string",
  
"avatar_key": "string",
  
"title": "string",
  
"content": "string",
  
"content_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
],
  
"parent_id": "string",
  
"labels": [
  
  
"string"
  
],
  
"assignee_username": "string",
  
"status": "open",
  
"chip_id": "string",
  
"target_type": "string",
  
"target_id": "string",
  
"cooldown_id": "string",
  
"task_id": "string",
  
"task_result": {
  
  
"task_id": "string",
  
  
"task_name": "string",
  
  
"qid": "string",
  
  
"chip_id": "string",
  
  
"status": "string",
  
  
"end_at": "string",
  
  
"figure_path": [
  
  
  
"string"
  
  
],
  
  
"json_figure_path": [
  
  
  
"string"
  
  
]
  
},
  
"reply_count": 0,
  
"is_deleted": false,
  
"is_ai_reply": false,
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Delete a forum post​

DELETE
/forum/posts/{post_id}

Delete a forum post. Only the author can delete.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

post_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Update a forum post​

PATCH
/forum/posts/{post_id}

Update a forum post, or update root-thread metadata as a project editor.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

post_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"category": "string",
  
"title": "string",
  
"content": "string",
  
"content_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
],
  
"labels": [
  
  
"string"
  
],
  
"assignee_username": "string",
  
"status": "string",
  
"chip_id": "string",
  
"target_type": "string",
  
"target_id": "string",
  
"cooldown_id": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"project_id": "string",
  
"number": 0,
  
"category": "string",
  
"user_id": "string",
  
"username": "string",
  
"avatar_key": "string",
  
"title": "string",
  
"content": "string",
  
"content_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
],
  
"parent_id": "string",
  
"labels": [
  
  
"string"
  
],
  
"assignee_username": "string",
  
"status": "open",
  
"chip_id": "string",
  
"target_type": "string",
  
"target_id": "string",
  
"cooldown_id": "string",
  
"task_id": "string",
  
"task_result": {
  
  
"task_id": "string",
  
  
"task_name": "string",
  
  
"qid": "string",
  
  
"chip_id": "string",
  
  
"status": "string",
  
  
"end_at": "string",
  
  
"figure_path": [
  
  
  
"string"
  
  
],
  
  
"json_figure_path": [
  
  
  
"string"
  
  
]
  
},
  
"reply_count": 0,
  
"is_deleted": false,
  
"is_ai_reply": false,
  
"created_at": "string",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List forum replies​

GET
/forum/posts/{post_id}/replies

List replies for a forum thread.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

post_id*
Type
string
Required

Query Parameters

skip

Number of replies to skip

Type
integer
Minimum
0
Default
0
limit

Max replies to return

Type
integer
Maximum
200
Minimum
1
Default
100

Responses​

Successful Response

application/json
JSON
[
  
{
  
  
"id": "string",
  
  
"project_id": "string",
  
  
"number": 0,
  
  
"category": "string",
  
  
"user_id": "string",
  
  
"username": "string",
  
  
"avatar_key": "string",
  
  
"title": "string",
  
  
"content": "string",
  
  
"content_blocks": [
  
  
  
{
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
],
  
  
"parent_id": "string",
  
  
"labels": [
  
  
  
"string"
  
  
],
  
  
"assignee_username": "string",
  
  
"status": "open",
  
  
"chip_id": "string",
  
  
"target_type": "string",
  
  
"target_id": "string",
  
  
"cooldown_id": "string",
  
  
"task_id": "string",
  
  
"task_result": {
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"qid": "string",
  
  
  
"chip_id": "string",
  
  
  
"status": "string",
  
  
  
"end_at": "string",
  
  
  
"figure_path": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"json_figure_path": [
  
  
  
  
"string"
  
  
  
]
  
  
},
  
  
"reply_count": 0,
  
  
"is_deleted": false,
  
  
"is_ai_reply": false,
  
  
"created_at": "string",
  
  
"updated_at": "string"
  
}
]

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Upload an image for a forum post​

POST
/forum/upload-image

Upload an image to attach to a forum post. Returns the image URL.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

multipart/form-data
Format"binary"

Responses​

Successful Response

application/json
JSON
{
  
"url": "string"
}

Playground​

Authorization
Headers
Body

Samples​


Close a forum thread​

PATCH
/forum/posts/{post_id}/close

Close a forum thread. Only the author or project owner can close.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

post_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Reopen a forum thread​

PATCH
/forum/posts/{post_id}/reopen

Reopen a forum thread. Only the author or project owner can reopen.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

post_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


tag​

Operations​


List all tags​

GET
/tags

List all tags for the current project.

Retrieves all tags associated with the current project's calibration data.
Tags are used to categorize and filter task results.

Parameters

ctx : ProjectContext
Project context with user and project information
tag_repo : MongoTagRepository
Repository for tag operations

Returns

ListTagResponse
Wrapped list of tag names

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"tags": [
  
  
{
  
  
  
"name": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers

Samples​


device-topology​


Get the device topology​

POST
/device-topology

Get the device topology.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"name": "anemone",
  
"device_id": "anemone",
  
"qubits": [
  
  
[
  
  
  
"0",
  
  
  
"1",
  
  
  
"2",
  
  
  
"3",
  
  
  
"4",
  
  
  
"5"
  
  
]
  
],
  
"exclude_couplings": [
  
  
[
  
  
]
  
],
  
"condition": {
  
  
"coupling_fidelity": {
  
  
  
"min": 0,
  
  
  
"max": 0,
  
  
  
"is_within_24h": true,
  
  
  
"metric": "string"
  
  
},
  
  
"qubit_fidelity": {
  
  
  
"min": 0,
  
  
  
"max": 0,
  
  
  
"is_within_24h": true,
  
  
  
"metric": "string"
  
  
},
  
  
"readout_fidelity": {
  
  
  
"min": 0,
  
  
  
"max": 0,
  
  
  
"is_within_24h": true,
  
  
  
"metric": "string"
  
  
},
  
  
"cr_direction": "mix",
  
  
"only_maximum_connected": true
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"device_id": "string",
  
"qubits": [
  
  
{
  
  
  
"id": 0,
  
  
  
"physical_id": 0,
  
  
  
"position": {
  
  
  
  
"x": 0,
  
  
  
  
"y": 0
  
  
  
},
  
  
  
"fidelity": 0,
  
  
  
"meas_error": {
  
  
  
  
"prob_meas1_prep0": 0,
  
  
  
  
"prob_meas0_prep1": 0,
  
  
  
  
"readout_assignment_error": 0
  
  
  
},
  
  
  
"qubit_lifetime": {
  
  
  
  
"t1": 0,
  
  
  
  
"t2": 0
  
  
  
},
  
  
  
"gate_duration": {
  
  
  
  
"rz": 0,
  
  
  
  
"sx": 0,
  
  
  
  
"x": 0
  
  
  
}
  
  
}
  
],
  
"couplings": [
  
  
{
  
  
  
"control": 0,
  
  
  
"target": 0,
  
  
  
"fidelity": 0,
  
  
  
"gate_duration": {
  
  
  
  
"rzx90": 0
  
  
  
}
  
  
}
  
],
  
"calibrated_at": "string"
}

Playground​

Authorization
Headers
Body

Samples​


Get the device topology plot​

POST
/device-topology/plot

Get the device topology as a PNG image.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"name": "string",
  
"device_id": "string",
  
"qubits": [
  
  
{
  
  
  
"id": 0,
  
  
  
"physical_id": 0,
  
  
  
"position": {
  
  
  
  
"x": 0,
  
  
  
  
"y": 0
  
  
  
},
  
  
  
"fidelity": 0,
  
  
  
"meas_error": {
  
  
  
  
"prob_meas1_prep0": 0,
  
  
  
  
"prob_meas0_prep1": 0,
  
  
  
  
"readout_assignment_error": 0
  
  
  
},
  
  
  
"qubit_lifetime": {
  
  
  
  
"t1": 0,
  
  
  
  
"t2": 0
  
  
  
},
  
  
  
"gate_duration": {
  
  
  
  
"rz": 0,
  
  
  
  
"sx": 0,
  
  
  
  
"x": 0
  
  
  
}
  
  
}
  
],
  
"couplings": [
  
  
{
  
  
  
"control": 0,
  
  
  
"target": 0,
  
  
  
"fidelity": 0,
  
  
  
"gate_duration": {
  
  
  
  
"rzx90": 0
  
  
  
}
  
  
}
  
],
  
"calibrated_at": "string"
}

Responses​

Successful Response

Playground​

Authorization
Headers
Body

Samples​


backend​

Operations​


List all backends​

GET
/backends

Retrieve a list of all registered backends

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"backends": [
  
  
{
  
  
  
"name": "string",
  
  
  
"username": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers

Samples​


List all flows​

GET
/flows

List all Flows for the current project.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"flows": [
  
  
{
  
  
  
"name": "string",
  
  
  
"created_by": "string",
  
  
  
"description": "string",
  
  
  
"chip_id": "string",
  
  
  
"flow_function_name": "string",
  
  
  
"created_at": "string",
  
  
  
"updated_at": "string",
  
  
  
"tags": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"folder": "",
  
  
  
"file_exists": true
  
  
}
  
]
}

Playground​

Authorization
Headers

Samples​


Save a flow​

POST
/flows

Save a Flow to file system and MongoDB.

By default the save creates the flow or overwrites an existing one. With
create_only it only creates a new flow, and an existing name returns 409
without changing the stored flow.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"name": "string",
  
"description": "",
  
"code": "string",
  
"flow_function_name": "string",
  
"chip_id": "string",
  
"default_parameters": {
  
  
"additionalProperties": "string"
  
},
  
"default_run_parameters": {
  
  
"additionalProperties": "string"
  
},
  
"tags": [
  
  
"string"
  
],
  
"folder": "string",
  
"create_only": false
}

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"file_path": "string",
  
"message": "string"
}

Playground​

Authorization
Headers
Body

Samples​


List all flow templates​

GET
/flows/templates

List the flow templates, optionally filtered to one backend.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

backend

Only templates written for this backend, e.g. qubex or fake

Responses​

Successful Response

application/json
JSON
[
  
{
  
  
"id": "string",
  
  
"name": "string",
  
  
"description": "string",
  
  
"category": "string",
  
  
"backend": "string",
  
  
"filename": "string",
  
  
"function_name": "string"
  
}
]

Playground​

Authorization
Variables
Key
Value

Samples​


Get a flow template​

GET
/flows/templates/{template_id}

Get flow template details including code content.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

template_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"name": "string",
  
"description": "string",
  
"category": "string",
  
"backend": "string",
  
"filename": "string",
  
"function_name": "string",
  
"code": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


List flow helper files​

GET
/flows/helpers

List all Python files in the qdash.workflow.service module.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
[
  
"string"
]

Playground​

Authorization

Samples​


Get flow helper file content​

GET
/flows/helpers/{filename}

Get the content of a flow helper file.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

filename*
Type
string
Required

Responses​

Successful Response

application/json
JSON
"string"

Playground​

Authorization
Variables
Key
Value

Samples​


List all flow schedules for current project​

GET
/flows/schedules

List all Flow schedules (cron and one-time) for the current project.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

limit
Type
integer
Default
50
offset
Type
integer
Default
0

Responses​

Successful Response

application/json
JSON
{
  
"schedules": [
  
  
{
  
  
  
"schedule_id": "string",
  
  
  
"flow_name": "string",
  
  
  
"schedule_type": "string",
  
  
  
"cron": "string",
  
  
  
"next_run": "string",
  
  
  
"active": true,
  
  
  
"created_at": "string",
  
  
  
"chip_id": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Delete a flow schedule​

DELETE
/flows/schedules/{schedule_id}

Delete a Flow schedule (cron or one-time).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

schedule_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string",
  
"schedule_id": "string",
  
"schedule_type": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Update a flow schedule​

PATCH
/flows/schedules/{schedule_id}

Update a Flow schedule (cron schedules only).

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

schedule_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"active": true,
  
"cron": "string",
  
"parameters": {
  
  
"additionalProperties": "string"
  
},
  
"timezone": "Asia/Tokyo"
}

Responses​

Successful Response

application/json
JSON
{
  
"message": "string",
  
"schedule_id": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Get flow details​

GET
/flows/{name}

Get Flow details including code content.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

name*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"target_defaults": {
  
  
"mux_ids": [
  
  
  
0
  
  
],
  
  
"qids": [
  
  
  
"string"
  
  
],
  
  
"exclude_qids": [
  
  
  
"string"
  
  
]
  
},
  
"name": "string",
  
"created_by": "string",
  
"description": "string",
  
"code": "string",
  
"flow_function_name": "string",
  
"chip_id": "string",
  
"default_parameters": {
  
  
"additionalProperties": "string"
  
},
  
"default_run_parameters": {
  
  
"additionalProperties": "string"
  
},
  
"file_path": "string",
  
"created_at": "string",
  
"updated_at": "string",
  
"tags": [
  
  
"string"
  
],
  
"folder": ""
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Delete a flow​

DELETE
/flows/{name}

Delete a Flow.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

name*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Execute a flow​

POST
/flows/{name}/execute

Execute a Flow via Prefect deployment.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

name*
Type
string
Required

Request Body​

application/json
JSON
{
  
"target_override": {
  
  
"mux_ids": [
  
  
  
0
  
  
],
  
  
"qids": [
  
  
  
"string"
  
  
],
  
  
"exclude_qids": [
  
  
  
"string"
  
  
]
  
},
  
"parameters": {
  
  
"additionalProperties": "string"
  
}
}

Responses​

Successful Response

application/json
JSON
{
  
"execution_id": "string",
  
"flow_run_id": "string",
  
"flow_run_url": "string",
  
"qdash_ui_url": "string",
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Move a flow to another folder​

PATCH
/flows/{name}/folder

Change the folder a Flow is filed under; its code and deployment are untouched.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

name*
Type
string
Required

Request Body​

application/json
JSON
{
  
"folder": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"name": "string",
  
"folder": "string",
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Schedule a flow execution (cron or one-time)​

POST
/flows/{name}/schedule

Schedule a Flow execution with cron or one-time schedule.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

name*
Type
string
Required

Request Body​

application/json
JSON
{
  
"cron": "string",
  
"scheduled_time": "string",
  
"parameters": {
  
  
"additionalProperties": "string"
  
},
  
"active": true,
  
"timezone": "Asia/Tokyo"
}

Responses​

Successful Response

application/json
JSON
{
  
"schedule_id": "string",
  
"flow_name": "string",
  
"schedule_type": "string",
  
"cron": "string",
  
"next_run": "string",
  
"active": true,
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List schedules for a specific flow​

GET
/flows/{name}/schedules

List all schedules (cron and one-time) for a specific Flow.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

name*
Type
string
Required

Query Parameters

limit
Type
integer
Default
50
offset
Type
integer
Default
0

Responses​

Successful Response

application/json
JSON
{
  
"schedules": [
  
  
{
  
  
  
"schedule_id": "string",
  
  
  
"flow_name": "string",
  
  
  
"schedule_type": "string",
  
  
  
"cron": "string",
  
  
  
"next_run": "string",
  
  
  
"active": true,
  
  
  
"created_at": "string",
  
  
  
"chip_id": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get metrics configuration​

GET
/metrics/config

Get metrics metadata configuration for visualization.

Retrieves the metrics configuration loaded from YAML, including display
metadata for all qubit and coupling metrics used in the dashboard.

Returns

dict[str, Any]
Dictionary with metrics configuration including:
- qubit_metrics: Metadata for single-qubit metrics (frequency, T1, T2, fidelities)
- coupling_metrics: Metadata for two-qubit coupling metrics (ZX90, Bell state)
- color_scale: Color scale configuration for heatmap visualization

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization

Samples​


Get Chip Metrics​

GET
/metrics/chips/{chip_id}/metrics

Get chip calibration metrics for visualization.

This endpoint returns calibration metrics for a specific chip from the database, including:

  • Qubit frequency, qubit anharmonicity, T1, T2 echo times
  • Gate fidelities (single-qubit and two-qubit)
  • Readout fidelities

Args:

chip_id: The chip identifier
ctx: Project context with user and project information
metrics_service: Injected metrics service
within_hours: Optional filter to only include data from last N hours (e.g., 24)
selection_mode: "latest" to get most recent values, "best" to get optimal values
start_at: Optional absolute lower bound (ISO8601 or date)
end_at: Optional absolute upper bound (ISO8601 or date)

Returns:

ChipMetricsResponse with all metrics data

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

within_hours

Filter to data within N hours (e.g., 24)

selection_mode

Selection mode: 'latest' for most recent, 'best' for optimal, 'average' for mean values

Type
string
Valid values
"latest""best""average"
Default
"latest"
start_at

Inclusive absolute lower bound on task start time (ISO8601 or date). Takes precedence over within_hours for the lower bound.

end_at

Inclusive absolute upper bound on task start time (ISO8601 or date).

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"username": "string",
  
"qubit_count": 0,
  
"within_hours": 0,
  
"start_at": "string",
  
"end_at": "string",
  
"qubit_metrics": {
  
  
"additionalProperties": {
  
  
  
"additionalProperties": {
  
  
  
  
"value": 0,
  
  
  
  
"task_id": "string",
  
  
  
  
"execution_id": "string",
  
  
  
  
"stddev": 0
  
  
  
}
  
  
}
  
},
  
"coupling_metrics": {
  
  
"additionalProperties": {
  
  
  
"additionalProperties": {
  
  
  
  
"value": 0,
  
  
  
  
"task_id": "string",
  
  
  
  
"execution_id": "string",
  
  
  
  
"stddev": 0
  
  
  
}
  
  
}
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get Qubit Metric History​

GET
/metrics/chips/{chip_id}/qubits/{qid}/history

Get historical metric data for a specific qubit with task_id for figure display.

This endpoint queries TaskResultHistoryDocument to retrieve calibration
history for a specific metric, including multiple executions on the same day.
Each history item includes task_id for displaying calibration figures.

Args:

chip_id: The chip identifier
qid: The qubit identifier (e.g., "0", "Q00")
ctx: Project context with user and project information
metrics_service: Injected metrics service
metric: Metric name to retrieve history for
limit: Maximum number of history items (None for unlimited within time range)
within_days: Optional filter to only include data from last N days

Returns:

QubitMetricHistoryResponse with historical metric data and task_ids

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required

Query Parameters

metric*

Metric name (e.g., t1, qubit_frequency)

Type
string
Required
limit

Max number of history items (None for unlimited)

within_days

Filter to last N days

Default
30

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"qid": "string",
  
"metric_name": "string",
  
"username": "string",
  
"history": [
  
  
{
  
  
  
"value": 0,
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"timestamp": "string",
  
  
  
"calibrated_at": "string",
  
  
  
"name": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"excluded": false,
  
  
  
"excluded_reason": "",
  
  
  
"excluded_by_user_id": "string",
  
  
  
"excluded_by": "string",
  
  
  
"excluded_at": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get Coupling Metric History​

GET
/metrics/chips/{chip_id}/couplings/{coupling_id}/history

Get historical metric data for a specific coupling with task_id for figure display.

This endpoint queries TaskResultHistoryDocument to retrieve calibration
history for a specific coupling metric, including multiple executions on the same day.
Each history item includes task_id for displaying calibration figures.

Args:

chip_id: The chip identifier
coupling_id: The coupling identifier (e.g., "0-1", "2-3")
ctx: Project context with user and project information
metrics_service: Injected metrics service
metric: Metric name to retrieve history for
limit: Maximum number of history items (None for unlimited within time range)
within_days: Optional filter to only include data from last N days

Returns:

QubitMetricHistoryResponse with historical metric data and task_ids
(Note: qid field contains coupling_id for coupling metrics)

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required

Query Parameters

metric*

Metric name (e.g., zx90_gate_fidelity, bell_state_fidelity)

Type
string
Required
limit

Max number of history items (None for unlimited)

within_days

Filter to last N days

Default
30

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"qid": "string",
  
"metric_name": "string",
  
"username": "string",
  
"history": [
  
  
{
  
  
  
"value": 0,
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"timestamp": "string",
  
  
  
"calibrated_at": "string",
  
  
  
"name": "string",
  
  
  
"input_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"ui_group": "",
  
  
  
  
  
"ui_group_collapsed": false,
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"output_parameters": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"parameter_name": "",
  
  
  
  
  
"qid_role": "",
  
  
  
  
  
"source": "string",
  
  
  
  
  
"required": false,
  
  
  
  
  
"value": "string",
  
  
  
  
  
"value_type": "",
  
  
  
  
  
"error": 0,
  
  
  
  
  
"unit": "",
  
  
  
  
  
"description": "",
  
  
  
  
  
"calibrated_at": "string",
  
  
  
  
  
"execution_id": "",
  
  
  
  
  
"task_id": "",
  
  
  
  
  
"previous_database_value": "string",
  
  
  
  
  
"database_updated": false,
  
  
  
  
  
"database_updates": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"parameter_name": "string",
  
  
  
  
  
  
  
"previous_value": "string",
  
  
  
  
  
  
  
"updated_value": "string",
  
  
  
  
  
  
  
"updated": false
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"excluded": false,
  
  
  
"excluded_reason": "",
  
  
  
"excluded_by_user_id": "string",
  
  
  
"excluded_by": "string",
  
  
  
"excluded_at": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Download metrics as PDF report​

POST
/metrics/chips/{chip_id}/metrics/pdf

Download chip metrics as a PDF report.

Generates a comprehensive PDF report containing:

  • Cover page with chip information and report metadata
  • Heatmap visualizations for each metric
  • Statistics for each metric (coverage, average, min, max, std dev)

The report includes all qubit metrics (8 types) and coupling metrics (3 types)
that have data available.

Args:
chip_id: Chip identifier
within_hours: Optional time filter in hours
selection_mode: "latest" for most recent values, "best" for optimal values
start_at: Optional absolute lower bound (ISO8601 or date)
end_at: Optional absolute upper bound (ISO8601 or date)

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

within_hours

Filter to data within N hours

selection_mode

Selection mode: 'latest', 'best', or 'average'

Type
string
Valid values
"latest""best""average"
Default
"latest"
start_at

Inclusive absolute lower bound on task start time (ISO8601 or date).

end_at

Inclusive absolute upper bound on task start time (ISO8601 or date).

Responses​

PDF report file

JSON
[
]

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


note​


Upsert the general note for a qubit​

PUT
/chips/{chip_id}/qubits/{qid}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Clear the general note for a qubit​

DELETE
/chips/{chip_id}/qubits/{qid}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Create a target summary note entry for a qubit​

POST
/chips/{chip_id}/qubits/{qid}/note/comments

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"comment_id": "string",
  
"content": "",
  
"created_by": "",
  
"created_at": "string",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Update a target summary note entry for a qubit​

PUT
/chips/{chip_id}/qubits/{qid}/note/comments/{comment_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required
comment_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"comment_id": "string",
  
"content": "",
  
"created_by": "",
  
"created_at": "string",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Delete a target summary note entry for a qubit​

DELETE
/chips/{chip_id}/qubits/{qid}/note/comments/{comment_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required
comment_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Upsert a per-metric note for a qubit​

PUT
/chips/{chip_id}/qubits/{qid}/metric-notes/{metric_key}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required
metric_key*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Delete a per-metric note for a qubit​

DELETE
/chips/{chip_id}/qubits/{qid}/metric-notes/{metric_key}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
qid*
Type
string
Required
metric_key*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Upsert the general note for a coupling​

PUT
/chips/{chip_id}/couplings/{coupling_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Clear the general note for a coupling​

DELETE
/chips/{chip_id}/couplings/{coupling_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Create a target summary note entry for a coupling​

POST
/chips/{chip_id}/couplings/{coupling_id}/note/comments

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"comment_id": "string",
  
"content": "",
  
"created_by": "",
  
"created_at": "string",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Update a target summary note entry for a coupling​

PUT
/chips/{chip_id}/couplings/{coupling_id}/note/comments/{comment_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required
comment_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"comment_id": "string",
  
"content": "",
  
"created_by": "",
  
"created_at": "string",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Delete a target summary note entry for a coupling​

DELETE
/chips/{chip_id}/couplings/{coupling_id}/note/comments/{comment_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required
comment_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Upsert a per-metric note for a coupling​

PUT
/chips/{chip_id}/couplings/{coupling_id}/metric-notes/{metric_key}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required
metric_key*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Delete a per-metric note for a coupling​

DELETE
/chips/{chip_id}/couplings/{coupling_id}/metric-notes/{metric_key}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required
coupling_id*
Type
string
Required
metric_key*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get the user note for a task result​

GET
/task-results/{task_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Upsert the user note for a task result​

PUT
/task-results/{task_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"content": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"content": "",
  
"updated_by": "",
  
"updated_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Clear the user note for a task result​

DELETE
/task-results/{task_id}/note

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

task_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List all notes (qubit / coupling / task-result) on a chip​

GET
/chips/{chip_id}/notes-summary

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

cooldown_id

Optional explicit cool-down scope identifier

start_at

Optional time-range scope start

end_at

Optional time-range scope end

Responses​

Successful Response

application/json
JSON
{
  
"chip_id": "string",
  
"qubits": [
  
  
{
  
  
  
"target_id": "string",
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
},
  
  
  
"comments": [
  
  
  
  
{
  
  
  
  
  
"comment_id": "string",
  
  
  
  
  
"content": "",
  
  
  
  
  
"created_by": "",
  
  
  
  
  
"created_at": "string",
  
  
  
  
  
"updated_by": "",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"metric_notes": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"content": "",
  
  
  
  
  
"updated_by": "",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
],
  
"couplings": [
  
  
{
  
  
  
"target_id": "string",
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
},
  
  
  
"comments": [
  
  
  
  
{
  
  
  
  
  
"comment_id": "string",
  
  
  
  
  
"content": "",
  
  
  
  
  
"created_by": "",
  
  
  
  
  
"created_at": "string",
  
  
  
  
  
"updated_by": "",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"metric_notes": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"content": "",
  
  
  
  
  
"updated_by": "",
  
  
  
  
  
"updated_at": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
],
  
"task_notes": [
  
  
{
  
  
  
"task_id": "string",
  
  
  
"qid": "string",
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
}
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Chip-scoped note edit timeline​

GET
/chips/{chip_id}/note-events

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

chip_id*
Type
string
Required

Query Parameters

skip
Type
integer
Minimum
0
Default
0
limit
Type
integer
Maximum
200
Minimum
1
Default
50

Responses​

Successful Response

application/json
JSON
{
  
"events": [
  
  
{
  
  
  
"project_id": "string",
  
  
  
"chip_id": "string",
  
  
  
"scope": "string",
  
  
  
"target_id": "string",
  
  
  
"metric_key": "",
  
  
  
"action": "string",
  
  
  
"actor_user_id": "string",
  
  
  
"actor": "string",
  
  
  
"content": "",
  
  
  
"extra": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"created_at": "string"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Per-target note edit timeline​

GET
/note-events/by-target

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

scope*

Note scope

Type
string
Required
Pattern
"^(qubit|qubit_metric|coupling|coupling_metric|task_result)$"
target_id*

qid / coupling_id / task_id

Type
string
Required
skip
Type
integer
Minimum
0
Default
0
limit
Type
integer
Maximum
200
Minimum
1
Default
50

Responses​

Successful Response

application/json
JSON
{
  
"events": [
  
  
{
  
  
  
"project_id": "string",
  
  
  
"chip_id": "string",
  
  
  
"scope": "string",
  
  
  
"target_id": "string",
  
  
  
"metric_key": "",
  
  
  
"action": "string",
  
  
  
"actor_user_id": "string",
  
  
  
"actor": "string",
  
  
  
"content": "",
  
  
  
"extra": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"created_at": "string"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Full-text search across note contents​

GET
/note-events/search

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

q*

Free-text search query

Type
string
Required
Min Length
1
skip
Type
integer
Minimum
0
Default
0
limit
Type
integer
Maximum
200
Minimum
1
Default
50

Responses​

Successful Response

application/json
JSON
{
  
"events": [
  
  
{
  
  
  
"project_id": "string",
  
  
  
"chip_id": "string",
  
  
  
"scope": "string",
  
  
  
"target_id": "string",
  
  
  
"metric_key": "",
  
  
  
"action": "string",
  
  
  
"actor_user_id": "string",
  
  
  
"actor": "string",
  
  
  
"content": "",
  
  
  
"extra": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"created_at": "string"
  
  
}
  
],
  
"total": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


List current user's notifications​

GET
/notifications

List notifications addressed to the current user.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

unread_only

Only return unread notifications

Type
boolean
Default
false
skip
Type
integer
Minimum
0
Default
0
limit
Type
integer
Maximum
200
Minimum
1
Default
50

Responses​

Successful Response

application/json
JSON
{
  
"notifications": [
  
  
{
  
  
  
"id": "string",
  
  
  
"project_id": "string",
  
  
  
"recipient_user_id": "string",
  
  
  
"recipient_username": "string",
  
  
  
"actor_user_id": "string",
  
  
  
"actor_username": "string",
  
  
  
"kind": "string",
  
  
  
"source_type": "string",
  
  
  
"source_id": "string",
  
  
  
"target_url": "string",
  
  
  
"title": "string",
  
  
  
"excerpt": "",
  
  
  
"read_at": "string",
  
  
  
"created_at": "string"
  
  
}
  
],
  
"total": 0,
  
"unread_count": 0,
  
"skip": 0,
  
"limit": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get unread notification count​

GET
/notifications/unread-count

Return unread notification count for the current user.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"unread_count": 0
}

Playground​

Authorization
Headers

Samples​


Mark a notification as read​

PATCH
/notifications/{notification_id}/read

Mark one notification as read.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

notification_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"project_id": "string",
  
"recipient_user_id": "string",
  
"recipient_username": "string",
  
"actor_user_id": "string",
  
"actor_username": "string",
  
"kind": "string",
  
"source_type": "string",
  
"source_id": "string",
  
"target_url": "string",
  
"title": "string",
  
"excerpt": "",
  
"read_at": "string",
  
"created_at": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Mark all notifications as read​

PATCH
/notifications/read-all

Mark all matching notifications as read.

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": 0
}

Playground​

Authorization
Headers

Samples​


List all cryostats​

GET
/cryostats

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"cryostats": [
  
  
{
  
  
  
"cryo_id": "string",
  
  
  
"name": "string",
  
  
  
"manufacturer": "string",
  
  
  
"model": "string",
  
  
  
"location": "string",
  
  
  
"status": "string",
  
  
  
"commissioned_at": "string",
  
  
  
"decommissioned_at": "string",
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
}
  
  
}
  
]
}

Playground​

Authorization
Headers

Samples​


Create a cryostat​

POST
/cryostats

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"cryo_id": "string",
  
"name": "",
  
"manufacturer": "",
  
"model": "",
  
"location": "",
  
"status": "active",
  
"commissioned_at": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"cryo_id": "string",
  
"name": "string",
  
"manufacturer": "string",
  
"model": "string",
  
"location": "string",
  
"status": "string",
  
"commissioned_at": "string",
  
"decommissioned_at": "string",
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
}
}

Playground​

Authorization
Headers
Body

Samples​


Get a cryostat by id​

GET
/cryostats/{cryo_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cryo_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"cryo_id": "string",
  
"name": "string",
  
"manufacturer": "string",
  
"model": "string",
  
"location": "string",
  
"status": "string",
  
"commissioned_at": "string",
  
"decommissioned_at": "string",
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Delete a cryostat​

DELETE
/cryostats/{cryo_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cryo_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Update a cryostat​

PATCH
/cryostats/{cryo_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cryo_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"name": "string",
  
"manufacturer": "string",
  
"model": "string",
  
"location": "string",
  
"status": "string",
  
"commissioned_at": "string",
  
"decommissioned_at": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"cryo_id": "string",
  
"name": "string",
  
"manufacturer": "string",
  
"model": "string",
  
"location": "string",
  
"status": "string",
  
"commissioned_at": "string",
  
"decommissioned_at": "string",
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
}
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List cool-downs (optionally filter by cryostat or chip)​

GET
/cooldowns

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

cryo_id

Filter by cryostat

chip_id

Filter by chip membership

Responses​

Successful Response

application/json
JSON
{
  
"cooldowns": [
  
  
{
  
  
  
"cooldown_id": "string",
  
  
  
"cryo_id": "string",
  
  
  
"description": "string",
  
  
  
"started_at": "string",
  
  
  
"ended_at": "string",
  
  
  
"chip_ids": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"note": {
  
  
  
  
"content": "",
  
  
  
  
"updated_by": "",
  
  
  
  
"updated_at": "string"
  
  
  
},
  
  
  
"wiring_info": "",
  
  
  
"wiring_blocks": [
  
  
  
  
{
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Create a cool-down​

POST
/cooldowns

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Request Body​

application/json
JSON
{
  
"cooldown_id": "string",
  
"cryo_id": "string",
  
"description": "",
  
"started_at": "string",
  
"ended_at": "string",
  
"chip_ids": [
  
  
"string"
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"cooldown_id": "string",
  
"cryo_id": "string",
  
"description": "string",
  
"started_at": "string",
  
"ended_at": "string",
  
"chip_ids": [
  
  
"string"
  
],
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"wiring_info": "",
  
"wiring_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Body

Samples​


Get a cool-down by id​

GET
/cooldowns/{cooldown_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cooldown_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"cooldown_id": "string",
  
"cryo_id": "string",
  
"description": "string",
  
"started_at": "string",
  
"ended_at": "string",
  
"chip_ids": [
  
  
"string"
  
],
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"wiring_info": "",
  
"wiring_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Delete a cool-down​

DELETE
/cooldowns/{cooldown_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cooldown_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"message": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Update a cool-down​

PATCH
/cooldowns/{cooldown_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cooldown_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"description": "string",
  
"started_at": "string",
  
"ended_at": "string",
  
"wiring_info": "string",
  
"wiring_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"cooldown_id": "string",
  
"cryo_id": "string",
  
"description": "string",
  
"started_at": "string",
  
"ended_at": "string",
  
"chip_ids": [
  
  
"string"
  
],
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"wiring_info": "",
  
"wiring_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


Assign a chip to a cool-down​

POST
/cooldowns/{cooldown_id}/chips/{chip_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cooldown_id*
Type
string
Required
chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"cooldown_id": "string",
  
"cryo_id": "string",
  
"description": "string",
  
"started_at": "string",
  
"ended_at": "string",
  
"chip_ids": [
  
  
"string"
  
],
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"wiring_info": "",
  
"wiring_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Unassign a chip from a cool-down​

DELETE
/cooldowns/{cooldown_id}/chips/{chip_id}

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cooldown_id*
Type
string
Required
chip_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"cooldown_id": "string",
  
"cryo_id": "string",
  
"description": "string",
  
"started_at": "string",
  
"ended_at": "string",
  
"chip_ids": [
  
  
"string"
  
],
  
"note": {
  
  
"content": "",
  
  
"updated_by": "",
  
  
"updated_at": "string"
  
},
  
"wiring_info": "",
  
"wiring_blocks": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Record a wiring change checkpoint within a cool-down​

POST
/cooldowns/{cooldown_id}/wiring-checkpoint

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cooldown_id*
Type
string
Required

Request Body​

application/json
JSON
{
  
"comment": "string"
}

Responses​

Successful Response

application/json
JSON
{
  
"id": "string",
  
"cooldown_id": "string",
  
"actor_user_id": "string",
  
"actor": "string",
  
"action": "string",
  
"comment": "string",
  
"wiring_info_snapshot": "string",
  
"block_count": 0,
  
"image_count": 0,
  
"created_at": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​


List wiring change history for a cool-down​

GET
/cooldowns/{cooldown_id}/wiring-events

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

cooldown_id*
Type
string
Required

Query Parameters

limit
Type
integer
Maximum
500
Minimum
1
Default
100
skip
Type
integer
Minimum
0
Default
0

Responses​

Successful Response

application/json
JSON
{
  
"events": [
  
  
{
  
  
  
"id": "string",
  
  
  
"cooldown_id": "string",
  
  
  
"actor_user_id": "string",
  
  
  
"actor": "string",
  
  
  
"action": "string",
  
  
  
"comment": "string",
  
  
  
"wiring_info_snapshot": "string",
  
  
  
"block_count": 0,
  
  
  
"image_count": 0,
  
  
  
"created_at": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


topology​


List available topologies​

GET
/topology/list

List all available topology definitions.

Args:

size: Optional filter by number of qubits

Returns:

dict: List of topology summaries with id, name, and num_qubits

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Query Parameters

size

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Get topology by ID​

GET
/topology/{topology_id}

Get a specific topology definition.

Args:

topology_id: Topology identifier (e.g., "square-lattice-mux-64")

Returns:

dict: Complete topology definition with qubits and couplings

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Path Parameters

topology_id*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


config​


Get all configuration​

GET
/config/all

Fetch all application configuration in a single request

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Responses​

Successful Response

application/json
JSON
{
  
"ui": {
  
  
"task_files": {
  
  
  
"default_backend": "string",
  
  
  
"default_view_mode": "string",
  
  
  
"sort_order": "string"
  
  
}
  
},
  
"metrics": {
  
  
"additionalProperties": "string"
  
},
  
"copilot": {
  
  
"additionalProperties": "string"
  
}
}

Playground​

Authorization

Samples​


Get a parameter version by entity ID​

GET
/provenance/entities/{entity_id}

Get a specific parameter version by entity ID.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
entity_id : str
Entity identifier (format: parameter_name:qid:execution_id:task_id)

Returns

ParameterVersionResponse
Parameter version details

Raises

HTTPException
404 if entity not found

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

entity_id*

Entity identifier

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"entity_id": "string",
  
"parameter_name": "string",
  
"qid": "",
  
"value": 0,
  
"value_type": "float",
  
"unit": "",
  
"error": 0,
  
"version": 0,
  
"valid_from": "string",
  
"valid_until": "string",
  
"execution_id": "string",
  
"task_id": "string",
  
"task_name": "",
  
"project_id": "string",
  
"chip_id": ""
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get lineage (ancestors) of a parameter version​

GET
/provenance/lineage/{entity_id}

Get the lineage (ancestors) of a parameter version.

Traverses wasDerivedFrom and wasGeneratedBy relations backward
to find all entities and activities that contributed to this entity.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
entity_id : str
Entity identifier to trace lineage from
max_depth : int
Maximum traversal depth (1-20)

Returns

LineageResponse
Lineage graph with nodes and edges

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

entity_id*

Entity identifier

Type
string
Required

Query Parameters

max_depth

Maximum traversal depth

Type
integer
Maximum
20
Minimum
1
Default
5

Responses​

Successful Response

application/json
JSON
{
  
"origin": {
  
  
"node_type": "string",
  
  
"node_id": "string",
  
  
"depth": 0,
  
  
"entity": {
  
  
  
"entity_id": "string",
  
  
  
"parameter_name": "string",
  
  
  
"qid": "",
  
  
  
"value": 0,
  
  
  
"value_type": "float",
  
  
  
"unit": "",
  
  
  
"error": 0,
  
  
  
"version": 0,
  
  
  
"valid_from": "string",
  
  
  
"valid_until": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "",
  
  
  
"project_id": "string",
  
  
  
"chip_id": ""
  
  
},
  
  
"activity": {
  
  
  
"activity_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"task_type": "",
  
  
  
"qid": "",
  
  
  
"started_at": "string",
  
  
  
"ended_at": "string",
  
  
  
"status": "",
  
  
  
"project_id": "string",
  
  
  
"chip_id": ""
  
  
},
  
  
"latest_version": 0
  
},
  
"nodes": [
  
  
{
  
  
  
"node_type": "string",
  
  
  
"node_id": "string",
  
  
  
"depth": 0,
  
  
  
"entity": {
  
  
  
  
"entity_id": "string",
  
  
  
  
"parameter_name": "string",
  
  
  
  
"qid": "",
  
  
  
  
"value": 0,
  
  
  
  
"value_type": "float",
  
  
  
  
"unit": "",
  
  
  
  
"error": 0,
  
  
  
  
"version": 0,
  
  
  
  
"valid_from": "string",
  
  
  
  
"valid_until": "string",
  
  
  
  
"execution_id": "string",
  
  
  
  
"task_id": "string",
  
  
  
  
"task_name": "",
  
  
  
  
"project_id": "string",
  
  
  
  
"chip_id": ""
  
  
  
},
  
  
  
"activity": {
  
  
  
  
"activity_id": "string",
  
  
  
  
"execution_id": "string",
  
  
  
  
"task_id": "string",
  
  
  
  
"task_name": "string",
  
  
  
  
"task_type": "",
  
  
  
  
"qid": "",
  
  
  
  
"started_at": "string",
  
  
  
  
"ended_at": "string",
  
  
  
  
"status": "",
  
  
  
  
"project_id": "string",
  
  
  
  
"chip_id": ""
  
  
  
},
  
  
  
"latest_version": 0
  
  
}
  
],
  
"edges": [
  
  
{
  
  
  
"relation_type": "string",
  
  
  
"source_id": "string",
  
  
  
"target_id": "string"
  
  
}
  
],
  
"max_depth": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get impact (descendants) of a parameter version​

GET
/provenance/impact/{entity_id}

Get the impact (descendants) of a parameter version.

Traverses wasDerivedFrom relations forward to find all entities
that were derived from this entity.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
entity_id : str
Entity identifier to trace impact from
max_depth : int
Maximum traversal depth (1-20)

Returns

ImpactResponse
Impact graph with affected nodes and edges

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

entity_id*

Entity identifier

Type
string
Required

Query Parameters

max_depth

Maximum traversal depth

Type
integer
Maximum
20
Minimum
1
Default
5

Responses​

Successful Response

application/json
JSON
{
  
"origin": {
  
  
"node_type": "string",
  
  
"node_id": "string",
  
  
"depth": 0,
  
  
"entity": {
  
  
  
"entity_id": "string",
  
  
  
"parameter_name": "string",
  
  
  
"qid": "",
  
  
  
"value": 0,
  
  
  
"value_type": "float",
  
  
  
"unit": "",
  
  
  
"error": 0,
  
  
  
"version": 0,
  
  
  
"valid_from": "string",
  
  
  
"valid_until": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "",
  
  
  
"project_id": "string",
  
  
  
"chip_id": ""
  
  
},
  
  
"activity": {
  
  
  
"activity_id": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "string",
  
  
  
"task_type": "",
  
  
  
"qid": "",
  
  
  
"started_at": "string",
  
  
  
"ended_at": "string",
  
  
  
"status": "",
  
  
  
"project_id": "string",
  
  
  
"chip_id": ""
  
  
},
  
  
"latest_version": 0
  
},
  
"nodes": [
  
  
{
  
  
  
"node_type": "string",
  
  
  
"node_id": "string",
  
  
  
"depth": 0,
  
  
  
"entity": {
  
  
  
  
"entity_id": "string",
  
  
  
  
"parameter_name": "string",
  
  
  
  
"qid": "",
  
  
  
  
"value": 0,
  
  
  
  
"value_type": "float",
  
  
  
  
"unit": "",
  
  
  
  
"error": 0,
  
  
  
  
"version": 0,
  
  
  
  
"valid_from": "string",
  
  
  
  
"valid_until": "string",
  
  
  
  
"execution_id": "string",
  
  
  
  
"task_id": "string",
  
  
  
  
"task_name": "",
  
  
  
  
"project_id": "string",
  
  
  
  
"chip_id": ""
  
  
  
},
  
  
  
"activity": {
  
  
  
  
"activity_id": "string",
  
  
  
  
"execution_id": "string",
  
  
  
  
"task_id": "string",
  
  
  
  
"task_name": "string",
  
  
  
  
"task_type": "",
  
  
  
  
"qid": "",
  
  
  
  
"started_at": "string",
  
  
  
  
"ended_at": "string",
  
  
  
  
"status": "",
  
  
  
  
"project_id": "string",
  
  
  
  
"chip_id": ""
  
  
  
},
  
  
  
"latest_version": 0
  
  
}
  
],
  
"edges": [
  
  
{
  
  
  
"relation_type": "string",
  
  
  
"source_id": "string",
  
  
  
"target_id": "string"
  
  
}
  
],
  
"max_depth": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Compare parameter values between two executions​

GET
/provenance/compare

Compare parameter values between two executions.

Shows which parameters were added, removed, or changed between
two calibration executions.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
execution_id_before : str
First execution ID (before state)
execution_id_after : str
Second execution ID (after state)

Returns

ExecutionComparisonResponse
Comparison of parameter values

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

execution_id_before*

First execution ID (before)

Type
string
Required
execution_id_after*

Second execution ID (after)

Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"execution_id_before": "string",
  
"execution_id_after": "string",
  
"added_parameters": [
  
  
{
  
  
  
"parameter_name": "string",
  
  
  
"qid": "string",
  
  
  
"value_before": 0,
  
  
  
"value_after": 0,
  
  
  
"delta": 0,
  
  
  
"delta_percent": 0
  
  
}
  
],
  
"removed_parameters": [
  
  
{
  
  
  
"parameter_name": "string",
  
  
  
"qid": "string",
  
  
  
"value_before": 0,
  
  
  
"value_after": 0,
  
  
  
"delta": 0,
  
  
  
"delta_percent": 0
  
  
}
  
],
  
"changed_parameters": [
  
  
{
  
  
  
"parameter_name": "string",
  
  
  
"qid": "string",
  
  
  
"value_before": 0,
  
  
  
"value_after": 0,
  
  
  
"delta": 0,
  
  
  
"delta_percent": 0
  
  
}
  
],
  
"unchanged_count": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get version history for a parameter​

GET
/provenance/history

Get version history for a parameter.

Returns all versions of a parameter for a specific qubit,
sorted by version number (newest first).

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
parameter_name : str
Name of the parameter (e.g., "qubit_frequency")
qid : str
Qubit or coupling identifier (e.g., "Q0", "Q0-Q1")
limit : int
Maximum number of versions to return

Returns

ParameterHistoryResponse
List of parameter versions

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

parameter_name*

Name of the parameter

Type
string
Required
qid*

Qubit or coupling identifier

Type
string
Required
limit

Maximum number of versions

Type
integer
Maximum
100
Minimum
1
Default
50

Responses​

Successful Response

application/json
JSON
{
  
"parameter_name": "string",
  
"qid": "string",
  
"versions": [
  
  
{
  
  
  
"entity_id": "string",
  
  
  
"parameter_name": "string",
  
  
  
"qid": "",
  
  
  
"value": 0,
  
  
  
"value_type": "float",
  
  
  
"unit": "",
  
  
  
"error": 0,
  
  
  
"version": 0,
  
  
  
"valid_from": "string",
  
  
  
"valid_until": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "",
  
  
  
"project_id": "string",
  
  
  
"chip_id": ""
  
  
}
  
],
  
"total_versions": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get provenance statistics​

GET
/provenance/stats

Get provenance statistics for a project.

Returns counts and recent entities for provenance tracking.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance

Returns

ProvenanceStatsResponse
Provenance statistics

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Responses​

Successful Response

application/json
JSON
{
  
"total_entities": 0,
  
"total_activities": 0,
  
"total_relations": 0,
  
"relation_counts": {
  
  
"additionalProperties": 0
  
},
  
"recent_entities": [
  
  
{
  
  
  
"entity_id": "string",
  
  
  
"parameter_name": "string",
  
  
  
"qid": "",
  
  
  
"value": 0,
  
  
  
"value_type": "float",
  
  
  
"unit": "",
  
  
  
"error": 0,
  
  
  
"version": 0,
  
  
  
"valid_from": "string",
  
  
  
"valid_until": "string",
  
  
  
"execution_id": "string",
  
  
  
"task_id": "string",
  
  
  
"task_name": "",
  
  
  
"project_id": "string",
  
  
  
"chip_id": ""
  
  
}
  
]
}

Playground​

Authorization
Headers

Samples​


Get recent execution IDs​

GET
/provenance/executions

Get recent unique execution IDs.

Returns unique execution IDs sorted by most recent first.
Uses MongoDB aggregation for efficient retrieval.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
limit : int
Maximum number of execution IDs to return (1-50)

Returns

RecentExecutionsResponse
List of recent execution IDs

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

limit

Maximum number of execution IDs to return

Type
integer
Maximum
50
Minimum
1
Default
20

Responses​

Successful Response

application/json
JSON
{
  
"executions": [
  
  
{
  
  
  
"execution_id": "string",
  
  
  
"valid_from": "string"
  
  
}
  
]
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get recent parameter changes with delta​

GET
/provenance/changes

Get recent parameter changes with delta from previous versions.

Returns parameter changes that have a previous version, showing
the delta (difference) from the previous value.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
limit : int
Maximum number of changes to return (1-50)
within_hours : int
Time window in hours (1-168, default: 24)
parameter_names : list[str] | None
Filter by parameter names (e.g., from metrics.yaml config)

Returns

RecentChangesResponse
List of recent parameter changes with delta information

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

limit

Maximum number of changes to return

Type
integer
Maximum
50
Minimum
1
Default
20
within_hours

Time window in hours

Type
integer
Maximum
168
Minimum
1
Default
24
parameter_names

Filter by parameter names (from metrics config)

Responses​

Successful Response

application/json
JSON
{
  
"changes": [
  
  
{
  
  
  
"entity_id": "string",
  
  
  
"parameter_name": "string",
  
  
  
"qid": "",
  
  
  
"value": 0,
  
  
  
"previous_value": 0,
  
  
  
"unit": "",
  
  
  
"delta": 0,
  
  
  
"delta_percent": 0,
  
  
  
"version": 0,
  
  
  
"valid_from": "string",
  
  
  
"task_name": "",
  
  
  
"execution_id": "",
  
  
  
"error": 0,
  
  
  
"previous_error": 0
  
  
}
  
],
  
"total_count": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get degradation trends (consecutive worsening)​

GET
/provenance/degradation-trends

Get parameters with consecutive degradation across calibration versions.

Detects parameters where the value has been consistently worsening
(based on evaluation mode: maximize/minimize) over multiple versions.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
min_streak : int
Minimum consecutive worsening steps (3-20, default: 3)
limit : int
Maximum number of trends to return (1-100, default: 50)
parameter_names : list[str] | None
Filter by parameter names

Returns

DegradationTrendsResponse
Detected degradation trends sorted by severity

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Query Parameters

min_streak

Minimum consecutive worsening steps

Type
integer
Maximum
20
Minimum
3
Default
3
limit

Maximum number of trends to return

Type
integer
Maximum
100
Minimum
1
Default
50
parameter_names

Filter by parameter names

Responses​

Successful Response

application/json
JSON
{
  
"trends": [
  
  
{
  
  
  
"parameter_name": "string",
  
  
  
"qid": "",
  
  
  
"evaluation_mode": "string",
  
  
  
"streak_count": 0,
  
  
  
"total_delta": 0,
  
  
  
"total_delta_percent": 0,
  
  
  
"delta_per_step": 0,
  
  
  
"current_value": 0,
  
  
  
"current_entity_id": "",
  
  
  
"unit": "",
  
  
  
"values": [
  
  
  
  
0
  
  
  
],
  
  
  
"valid_from": "string"
  
  
}
  
],
  
"total_count": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Get recalibration task recommendations​

GET
/provenance/recommendations/{entity_id}

Get recommended recalibration tasks based on parameter change impact.

When a calibration parameter changes (either through recalibration or
manual adjustment), this endpoint analyzes the provenance graph to
identify which downstream parameters are affected and recommends
which calibration tasks should be re-run.

The recommendations are prioritized based on dependency proximity:
tasks producing directly dependent parameters are ranked higher than
those producing transitively dependent parameters.

Parameters

ctx : ProjectContext
Project context with user and project information
service : ProvenanceService
Provenance service instance
entity_id : str
Entity identifier of the changed parameter
max_depth : int
Maximum traversal depth for impact analysis (1-20)

Returns

RecalibrationRecommendationResponse
Prioritized list of recommended recalibration tasks

Example

If qubit_frequency for Q0 changes:

  • Priority 1: CheckRabiOscillation (direct dependency)
  • Priority 2: CheckT1, CheckT2 (use frequency-dependent pulses)
  • Priority 3: CheckCrossResonance (uses derived gate parameters)

Authorizations​

HTTPBearer
Type
HTTP (bearer)

Parameters​

Header Parameters

X-Project-Id

Path Parameters

entity_id*

Entity identifier of changed parameter

Type
string
Required

Query Parameters

max_depth

Maximum impact traversal depth

Type
integer
Maximum
20
Minimum
1
Default
10

Responses​

Successful Response

application/json
JSON
{
  
"source_entity_id": "string",
  
"source_parameter_name": "",
  
"source_qid": "",
  
"recommended_tasks": [
  
  
{
  
  
  
"task_name": "string",
  
  
  
"priority": 0,
  
  
  
"affected_parameters": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"affected_qids": [
  
  
  
  
"string"
  
  
  
],
  
  
  
"reason": ""
  
  
}
  
],
  
"total_affected_parameters": 0,
  
"max_depth_reached": 0
}

Playground​

Authorization
Headers
Variables
Key
Value

Samples​


Powered by VitePress OpenAPI

Released under the Apache 2.0 License.