# Get Single Secret

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /browser/one-password/secret:
    post:
      summary: Get Single Secret
      deprecated: false
      description: >-
        Retrieve a specific secret value from your 1Password vault. You need to
        provide the complete reference path to the secret.
      operationId: OnePasswordController_getSecret
      tags:
        - Scraping Browser/1Password
        - 1Password
      parameters:
        - name: x-api-token
          in: header
          description: API key for authentication
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetOnePasswordSecretDto'
            examples:
              basic:
                value:
                  reference: >-
                    vaults/production_vault_id/items/database_credentials_item_id
                summary: Retrieve database password
      responses:
        '200':
          description: Secret retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OnePasswordSecretResponse'
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: Scraping Browser/1Password
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/745098/apis/api-23850713-run
components:
  schemas:
    GetOnePasswordSecretDto:
      type: object
      properties:
        reference:
          type: string
          description: >-
            1Password secret reference path in format:
            `op://[vault]/[item]/[field]`. You can obtain vault ID and item ID
            from the 1Password admin interface
          examples:
            - vaults/production_vault_id/items/database_credentials_item_id
      required:
        - reference
      x-apidog-orders:
        - reference
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    OnePasswordSecretResponse:
      type: object
      properties:
        secret:
          type: string
          description: Secret value retrieved from 1Password
          examples:
            - mysecretpassword123
      required:
        - secret
      x-apidog-orders:
        - secret
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearer:
      type: bearer
      scheme: bearer
      description: Bearer token authentication using your Scrapeless API key
    apikey-header-x-api-token:
      type: apiKey
      in: header
      name: x-api-token
servers:
  - url: https://api.scrapeless.com
    description: Prod Env
security:
  - apikey-header-x-api-token: []

```
