> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.conductorquantum.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.conductorquantum.com/_mcp/server.

# Get a job

GET https://control.conductorquantum.com/api/v1/jobs/{jobId}

Returns a job with its events, release, and instrument-controller claims. Requires the `jobs:read` scope. A job that finished as `failed` may still hold a controller whose program stop was not confirmed; read `controller_claims` for the hardware outcome.

Reference: https://docs.conductorquantum.com/api-reference/control/jobs/get

## Authentication

- `Authorization` header (bearer token, required) — A Control API token, `cqk_` followed by its secret, sent as `Authorization: Bearer cqk_...`.

## Request

### Path parameters

- `jobId` (string, required)

## Response

### 200

The job.

- `id` (string, required)
- `kind` (string, required) — `experiment` or `workflow`.
- `procedure` (string, required)
- `targets` (list of string, required)
- `status` (enum, required) — The job's operational status. `succeeded` means the job finished running; read `scientific_success` for whether its result passed acceptance.
  - Allowed values: `queued`, `dispatched`, `running`, `succeeded`, `failed`, `cancelled`, `lost`
- `lab_id` (string, required)
- `events` (list of JobEvent, required)
- `controller_claims` (list of ControllerClaim, required)
- `attempt` (integer, optional)
- `submitted_via` (enum, optional)
  - Allowed values: `web`, `api`, `mcp`
- `submitted_by` (Submitter, optional)
- `queued_at` (datetime, optional)
- `started_at` (datetime, optional, nullable)
- `finished_at` (datetime, optional, nullable)
- `scientific_success` (boolean, optional, nullable) — Whether the result passed scientific acceptance; `null` until the job finishes or for a procedure with no scientific result.
- `parameters` (map from string to any, optional)
- `release` (JobDetailRelease, optional)

## Errors

### 401 Unauthorized Error

The token is missing, malformed, unknown, revoked, or expired.

- `error` (string, required) — A human-readable message.

### 403 Forbidden Error

The token lacks the required scope or cannot reach this lab.

- `error` (string, required) — A human-readable message.

### 404 Not Found Error

The lab or job does not exist.

- `error` (string, required) — A human-readable message.

### 503 Service Unavailable Error

Experiment discovery or job details are temporarily unavailable. Retry later.

- `error` (string, required) — A human-readable message.

## Types

### JobEvent

- `id` (integer, optional)
- `job_id` (string, optional)
- `seq` (integer, optional)
- `type` (string, optional) — The event type.
- `payload` (map from string to any, optional)
- `created_at` (datetime, optional)

### ControllerClaim

- `resource_key` (string, required) — The instrument controller the job held.
- `state` (enum, required)
  - Allowed values: `held`, `held-pending-confirmation`, `released`
- `hardware_outcome` (enum, required)
  - Allowed values: `succeeded`, `failed`, `cancelled`, `unknown`
- `confirmation_reason` (enum, optional)
  - Allowed values: `no_program_dispatched`, `program_stopped`, `backend_stopped`, `program_id_unknown`, `program_stop_unconfirmed`, `backend_stop_unconfirmed`, `lost_worker_unconfirmed`, `previous_program_stop_unconfirmed`
- `released_at` (datetime, optional, nullable)
- `quarantined_at` (datetime, optional, nullable)

### Submitter

- `id` (string, required)
- `email` (string, required)
- `name` (string, required, nullable)

### JobDetailRelease

- `version` (string, optional, nullable)
- `commit_hash` (string, optional, nullable)

## Examples

**Response**

```json
{
  "id": "string",
  "kind": "string",
  "procedure": "string",
  "targets": [
    "string"
  ],
  "status": "queued",
  "lab_id": "string",
  "events": [
    {
      "id": 1,
      "job_id": "string",
      "seq": 1,
      "type": "string",
      "payload": {},
      "created_at": "2024-01-15T09:30:00Z"
    }
  ],
  "controller_claims": [
    {
      "resource_key": "string",
      "state": "held",
      "hardware_outcome": "succeeded",
      "confirmation_reason": "no_program_dispatched",
      "released_at": "2024-01-15T09:30:00Z",
      "quarantined_at": "2024-01-15T09:30:00Z"
    }
  ],
  "attempt": 1,
  "submitted_via": "web",
  "submitted_by": {
    "id": "string",
    "email": "string",
    "name": "string"
  },
  "queued_at": "2024-01-15T09:30:00Z",
  "started_at": "2024-01-15T09:30:00Z",
  "finished_at": "2024-01-15T09:30:00Z",
  "scientific_success": true,
  "parameters": {},
  "release": {
    "version": "string",
    "commit_hash": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://control.conductorquantum.com/api/v1/jobs/jobId"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://control.conductorquantum.com/api/v1/jobs/jobId';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://control.conductorquantum.com/api/v1/jobs/jobId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://control.conductorquantum.com/api/v1/jobs/jobId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://control.conductorquantum.com/api/v1/jobs/jobId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://control.conductorquantum.com/api/v1/jobs/jobId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://control.conductorquantum.com/api/v1/jobs/jobId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://control.conductorquantum.com/api/v1/jobs/jobId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```