Skip to navigation

Submit a job

Queues a workflow or experiment job on the lab. Requires the jobs:submit scope. Access is checked before the body is validated. Send an Idempotency-Key to retry a submission safely: a repeat with the same key and request returns the same job without queueing another, and the same key with a different request returns 409. Keys are scoped to the lab and the token’s user and expire 24 hours after the job is created. A job can operate real hardware: check its targets and parameters before submitting.

Authentication

AuthorizationBearer

A Control API token, cqk_ followed by its secret, sent as Authorization: Bearer cqk_....

Path parameters

labIdstringRequired

Headers

Idempotency-KeystringOptionalformat: "uuid"
A UUID you generate once per intended job and resend on every retry of it.

Request

This endpoint expects an object.
kindenumRequired
Allowed values:
procedurestringRequired<=200 characters

For an experiment, a catalog entry’s input_type; for a workflow, the workflow’s identifier, such as single_qubit_bringup.

targetslist of stringsRequired

The qubits or other device elements to run on, such as Q0.

parametersmap from strings to anyOptional

Experiment parameters matching the catalog entry’s parameters_schema.

config_revision_idstring or nullOptionalformat: "uuid"

A specific configuration revision to run against; defaults to the lab’s active one.

release_idstring or nullOptionalformat: "uuid"

A specific Control release to run; defaults to the current one.

Response

The job was queued, or an earlier submission with the same idempotency key was found.
idstringformat: "uuid"
statusenum

The job’s operational status. succeeded means the job finished running; read scientific_success for whether its result passed acceptance.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
503
Service Unavailable Error