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

# Lock a confirmation

> Mark a confirmation as used so the same `vyt` token can't be confirmed again: single-use enforcement. **Secret key only.** After locking, `GET /v3/confirmations/{token}` returns `verified: false`.



## OpenAPI

````yaml /v3/openapi.json post /v3/confirmations/{token}/lock
openapi: 3.1.0
info:
  title: VerifyYou API
  description: >-
    The VerifyYou developer API. Start a verification from the browser with your
    publishable key, then confirm the result server-side with your secret key.
    Authenticate every request with `Authorization: Bearer <key>`.
  version: 0.1.0
servers:
  - url: https://trust.verifyyou.com
    description: Production
security: []
tags:
  - name: Verification Flow
    description: Start a hosted verification and get the URL to redirect the user to.
  - name: Confirmations
    description: Confirm a verification token, and lock it against replay (secret key).
  - name: API Keys
    description: Check whether a publishable or secret key is valid.
paths:
  /v3/confirmations/{token}/lock:
    post:
      tags:
        - Confirmations
      summary: Lock a confirmation
      description: >-
        Mark a confirmation as used so the same `vyt` token can't be confirmed
        again: single-use enforcement. **Secret key only.** After locking, `GET
        /v3/confirmations/{token}` returns `verified: false`.
      operationId: external-lock_confirmation
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
            description: >-
              The `vyt` confirmation token the user returned with after
              verifying.
            title: Token
          description: The `vyt` confirmation token the user returned with after verifying.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LockResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    LockResponse:
      properties:
        locked:
          type: boolean
          title: Locked
          description: >-
            True once the confirmation is locked. A locked confirmation can't be
            confirmed again; `GET /v3/confirmations/{token}` then returns
            `verified: false`.
      type: object
      required:
        - locked
      title: LockResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````