---
title: "Paste a secret value into a capture session"
method: POST
path: "/v1beta/capture_sessions/{id}/paste"
tags: ["Capture Sessions"]
---

# Paste a secret value into a capture session

`POST /v1beta/capture_sessions/{id}/paste`

## Request

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

Resolve one field of an attached login secret and paste it at the caret in the live recording browser, so the user does not retype credentials they already stored.

## Path parameters

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

## Request body

- PasteSecretRequest
  - `field` 'username' | 'password' | 'totp', required
  - `secret_id` string, required: The stored login secret to resolve the value from.

## Response `204`

Successful response

## 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)
