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

# Terminate browser session

> Ends a session early and releases its remote browser immediately instead of waiting for expiry. Use it when your applicant abandons the flow or you cancel the check on your side. The call is idempotent: a session that already reached a terminal status is left untouched and its existing status is returned. Any live iframe embed is disconnected.



## OpenAPI

````yaml /api-reference/openapi.json delete /partner/browser-session/{id}
openapi: 3.1.0
info:
  title: Cr3dentials Partner API
  description: >-
    Integrate account verification into your application. Users verify their
    accounts through an iframe-based browser session, and you receive
    cryptographically attested proof of data authenticity.
  version: 1.0.0
  contact:
    name: Cr3dentials Support
    url: https://cr3dentials.xyz
servers:
  - url: https://app.cr3dentials.xyz/v1
    description: Production
  - url: https://staging.cr3dentials.xyz/v1
    description: Staging
security:
  - apiKey: []
paths:
  /partner/browser-session/{id}:
    delete:
      tags:
        - Sessions
      summary: Terminate browser session
      description: >-
        Ends a session early and releases its remote browser immediately instead
        of waiting for expiry. Use it when your applicant abandons the flow or
        you cancel the check on your side. The call is idempotent: a session
        that already reached a terminal status is left untouched and its
        existing status is returned. Any live iframe embed is disconnected.
      operationId: terminateBrowserSession
      parameters:
        - name: id
          in: path
          required: true
          description: The `sessionId` returned from session creation.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Session terminated
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  data:
                    type: object
                    properties:
                      sessionId:
                        type: string
                        format: uuid
                        example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      status:
                        $ref: '#/components/schemas/SessionStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    SessionStatus:
      type: string
      description: Lifecycle status of a verification session.
      enum:
        - CREATED
        - INITIALIZING
        - READY
        - CONNECTED
        - LOADING_TREE
        - RUNNING
        - AWAITING_USER
        - COLLECTING_DATA
        - VERIFYING
        - COMPLETED
        - PARTIAL_COMPLETE
        - ERROR
        - CANCELLED
        - TERMINATED
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          example:
            statusCode: 401
            message: Unauthorized
    NotFound:
      description: Session not found
      content:
        application/json:
          example:
            statusCode: 404
            message: Session not found
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Your partner API key. Alternatively, pass `Authorization: Bearer <key>`.'

````