---
title: "Retrieve a capture session"
method: GET
path: "/v1beta/capture_sessions/{id}"
tags: ["Capture Sessions"]
---

# Retrieve a capture session

`GET /v1beta/capture_sessions/{id}`

## Request

- Base URL: `https://api.indices.io`
- URL: `https://api.indices.io/v1beta/capture_sessions/{id}`
- Auth: HTTP bearer

Retrieve a capture session by its ID.

Poll this after requesting completion: the session is a usable recording once `state` is `completed`.

## Path parameters

- `id` string, required: The ID of the capture session to retrieve.

## Response `200`

Successful response

- CaptureSession
  - `id` string, required: Unique identifier for the capture session.
  - `state` 'active' | 'completing' | 'completed' | 'abandoned' | 'failed', required
  - `browser_session_id` string, nullable, required: Opaque identifier for the spawned browser session. Null once the browser is gone.
  - `iframe_url` string, nullable, required: URL to embed in an iframe to control the browser. Only usable while the session is active.
  - `created_at` string, date-time, required: Timestamp when the object was created.
  - `updated_at` string, date-time, required: Timestamp when the object was last updated.

## Other responses

- `422`: Validation error

---

[API](https://skmtc.dev/indices/apis/indices-api.md) · [All operations](https://skmtc.dev/indices/apis/indices-api/llms.txt) · [OpenAPI document](https://skmtc.dev/indices/apis/indices-api/revisions/e0f2742c126c?raw)
