> ## Documentation Index
> Fetch the complete documentation index at: https://beta-docs-prod.indices.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Paste a secret value into a capture session

> <p>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.</p>



## OpenAPI

````yaml /openapi.json post /v1beta/capture_sessions/{id}/paste
openapi: 3.1.0
info:
  title: Indices API
  description: 'The Indices REST API. See docs for details: https://docs.indices.io'
  version: 0.0.1
servers:
  - url: https://api.indices.io
security:
  - ApiKeyAuth: []
tags:
  - name: Capture Sessions
    description: >-
      Record a browser session; a completed capture is a reusable input for
      building connectors.
  - name: Connectors
    description: Manage connectors.
  - name: Runs
    description: Execute a connector.
  - name: Secrets
    description: Manage secrets like login credentials and API keys.
paths:
  /v1beta/capture_sessions/{id}/paste:
    post:
      tags:
        - Capture Sessions
      summary: Paste a secret value into a capture session
      description: >-
        <p>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.</p>
      operationId: pasteCaptureSecret
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: The ID of the capture session to paste into.
            title: Id
          description: The ID of the capture session to paste into.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasteSecretRequest'
      responses:
        '204':
          description: Successful response
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PasteSecretRequest:
      properties:
        field:
          $ref: '#/components/schemas/PasteField'
          description: Which part of the attached login secret to paste.
        secret_id:
          type: string
          description: The stored login secret to resolve the value from.
      type: object
      required:
        - field
        - secret_id
      title: PasteSecretRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PasteField:
      type: string
      enum:
        - username
        - password
        - totp
      title: PasteField
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Enter your API key as the bearer token. Set header: `Authorization` to
        `Bearer <api_key>`

````