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

# Get a runtime

GET https://api.bctrl.ai/v1/runtimes/{runtimeId}

Get one runtime using the simplified runtime detail resource.

Reference: https://platform.bctrl.ai/api/api-reference/runtimes/get

## Authentication

- `Authorization` header (bearer token, required) — Use Bearer \<api-key>.

## Servers

- `https://api.bctrl.ai` (Production, default)
- `http://localhost:8787` (Local development gateway)

## Request

### Path parameters

- `runtimeId` (string, required) — Unique runtime identifier generated by BCTRL.

### Query parameters

- `include` ("connection", optional)

### Headers

- `BCTRL-Subaccount-Id` (string, optional) — Optional effective subaccount context for organization API keys. Subaccount API keys are already scoped and cannot use this header to act as another subaccount.

## Response

### 200

OK

- `activeRunId` (string, required, nullable)
- `createdAt` (datetime, required) — RFC 3339 timestamp with a UTC offset.
- `id` (string, required) — Unique runtime identifier generated by BCTRL.
- `name` (string, required)
- `profile` (boolean, required)
- `spaceId` (string, required) — Unique space identifier generated by BCTRL.
- `status` (enum, required)
  - Allowed values: `active`, `stopped`, `failed`
- `type` ("browser", required)
- `updatedAt` (datetime, required) — RFC 3339 timestamp with a UTC offset.
- `archivedAt` (datetime, optional) — RFC 3339 timestamp with a UTC offset.
- `config` (object, optional)
  - `headless` (boolean, required)
  - `autoUpgrade` (boolean, optional)
  - `extensionIds` (list of string, optional)
  - `fingerprint` (object, optional)
    - `browser` ("chrome" or string, optional)
    - `browserVersion` (string, optional)
    - `device` (enum, optional)
      - Allowed values: `desktop`, `mobile`
    - `locale` (string or list of string, optional)
    - `os` (enum, optional)
      - Allowed values: `windows`, `macos`, `android`, `ios`
    - `timezone` (string, optional)
    - `userAgent` (string, optional)
    - `viewport` (object, optional)
      - `height` (integer, required)
      - `width` (integer, required)
  - `forceOpenShadowRoots` (boolean, optional)
  - `idleTimeoutSeconds` (integer, optional)
  - `networkTraffic` (object, optional)
    - `blockAds` (boolean, optional)
    - `blockResourceTypes` (list of enum, optional)
      - Allowed values: `media`, `texttrack`, `font`, `image`, `ping`, `prefetch`, `beacon`
    - `blockTrackers` (boolean, optional)
    - `saver` (enum, optional)
      - Allowed values: `none`, `light`, `medium`, `high`
    - `urlAllowlist` (list of string, optional)
    - `urlBlocklist` (list of string, optional)
  - `proxy` (any or any or any, optional, nullable)
  - `stealth` (enum, optional)
    - Allowed values: `normal`, `best`, `experimental`
  - `webRtcProxyOnly` (boolean, optional)
- `connection` (object, optional)
  - `cdpUrl` (string, required)
  - `expiresAt` (datetime, required)
  - `recording` (object, required)
    - `enabled` (boolean, required)
  - `runId` (string, required) — Unique run identifier generated by BCTRL.
  - `webDriverUrl` (string, required)
  - `webMcpUrl` (string, optional)
- `lastActivityAt` (datetime, optional) — RFC 3339 timestamp with a UTC offset.
- `latestRun` (object, optional, nullable) — Most recent run of this runtime (the active one when a run is open). Null when the runtime has never run.
  - `finishedAt` (datetime, required, nullable) — RFC 3339 timestamp with a UTC offset.
  - `id` (string, required) — Unique run identifier generated by BCTRL.
  - `startedAt` (datetime, required) — RFC 3339 timestamp with a UTC offset.
  - `status` (enum, required)
    - Allowed values: `active`, `stopped`, `failed`
- `metadata` (object, optional, nullable)
- `needsInput` (boolean, optional)

## Examples

**Response**

```json
{
  "activeRunId": "run_AAAAAAAAAAAAAAAAAAAAAA",
  "createdAt": "2026-07-26T12:00:00Z",
  "id": "rt_AAAAAAAAAAAAAAAAAAAAAA",
  "name": "string",
  "profile": true,
  "spaceId": "sp_AAAAAAAAAAAAAAAAAAAAAA",
  "status": "active",
  "type": "string",
  "updatedAt": "2026-07-26T12:00:00Z",
  "archivedAt": "2026-07-26T12:00:00Z",
  "config": {
    "headless": true,
    "autoUpgrade": true,
    "extensionIds": [
      "string"
    ],
    "fingerprint": {
      "browser": "chrome",
      "browserVersion": "string",
      "device": "desktop",
      "locale": "string",
      "os": "windows",
      "timezone": "string",
      "userAgent": "string",
      "viewport": {
        "height": 1,
        "width": 1
      }
    },
    "forceOpenShadowRoots": true,
    "idleTimeoutSeconds": 1,
    "networkTraffic": {
      "blockAds": true,
      "blockResourceTypes": [
        "media"
      ],
      "blockTrackers": true,
      "saver": "none",
      "urlAllowlist": [
        "string"
      ],
      "urlBlocklist": [
        "string"
      ]
    },
    "proxy": {
      "id": "string",
      "name": "string",
      "type": "custom"
    },
    "stealth": "normal",
    "webRtcProxyOnly": true
  },
  "connection": {
    "cdpUrl": "string",
    "expiresAt": "2024-01-15T09:30:00Z",
    "recording": {
      "enabled": true
    },
    "runId": "run_AAAAAAAAAAAAAAAAAAAAAA",
    "webDriverUrl": "string",
    "webMcpUrl": "string"
  },
  "lastActivityAt": "2026-07-26T12:00:00Z",
  "latestRun": {
    "finishedAt": "2026-07-26T12:00:00Z",
    "id": "run_AAAAAAAAAAAAAAAAAAAAAA",
    "startedAt": "2026-07-26T12:00:00Z",
    "status": "active"
  },
  "metadata": {},
  "needsInput": true
}
```

**SDK Code**

```python
import requests

url = "https://api.bctrl.ai/v1/runtimes/runtimeId"

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

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

print(response.json())
```

```javascript
const url = 'https://api.bctrl.ai/v1/runtimes/runtimeId';
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://api.bctrl.ai/v1/runtimes/runtimeId"

	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://api.bctrl.ai/v1/runtimes/runtimeId")

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://api.bctrl.ai/v1/runtimes/runtimeId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.bctrl.ai/v1/runtimes/runtimeId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.bctrl.ai/v1/runtimes/runtimeId");
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://api.bctrl.ai/v1/runtimes/runtimeId")! 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()
```