Skip to main content
POST
/
jobs
Create Job
curl --request POST \
  --url https://api-v2.qbraid.com/api/v1/jobs \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "shots": 123,
  "deviceQrn": "<string>",
  "program": {
    "format": "qasm2",
    "data": "<unknown>"
  },
  "name": "<string>",
  "tags": {},
  "runtimeOptions": {}
}
'
{
  "success": true,
  "data": {
    "jobQrn": "aws:aws:sim:dm1-a1b2-qjob-1234567890abcdef",
    "status": "INITIALIZING"
  }
}
{
  "success": true,
  "data": {
    "jobQrn": "aws:aws:sim:dm1-a1b2-qjob-1234567890abcdef",
    "status": "INITIALIZING"
  }
}

Authorizations

X-API-KEY
string
header
required

Authenticate requests using an API key linked to your qBraid account. Obtain your key by registering or logging in at account-v2.qbraid.com.

Body

application/json

Schema for job submission request body

shots
integer
required

Number of shots to execute

deviceQrn
string
required

qBraid device resource name

program
Program · object
required

Schema for quantum program

name
string | null

Job name

tags
Tags · object

Job tags

runtimeOptions
Runtimeoptions · object

Runtime options

Response

Successful Response

Response schema for job creation

success
boolean
required

Whether the job was created successfully

data
object
required