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

# Release a browser

> End a leased browser. The session is stopped; the answer carries status "ended". Idempotent: releasing the same lease again answers the same body.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/browser/pools/{poolId}/release
openapi: 3.0.0
info:
  version: 1.0.0
  title: Driver API
  description: API for interacting with the Driver.dev browser network.
  contact:
    name: Driver support
    email: alex@driver.dev
servers:
  - url: https://api.driver.dev
    description: Production
security: []
tags:
  - name: Sessions
  - name: Profiles
  - name: Account
  - name: Extensions
  - name: Pools
externalDocs:
  url: https://docs.driver.dev
  description: Driver documentation
paths:
  /v1/browser/pools/{poolId}/release:
    post:
      tags:
        - Pools
      summary: Release a browser
      description: >-
        End a leased browser. The session is stopped; the answer carries status
        "ended". Idempotent: releasing the same lease again answers the same
        body.
      parameters:
        - schema:
            type: string
            minLength: 6
            maxLength: 80
            example: pool_8ca73065e49d44f3a7825743745b2948
          required: true
          name: poolId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                leaseId:
                  type: string
                  minLength: 1
              required:
                - leaseId
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  poolId:
                    type: string
                    minLength: 6
                    maxLength: 80
                    example: pool_8ca73065e49d44f3a7825743745b2948
                  leaseId:
                    type: string
                  sessionId:
                    type: string
                    description: >-
                      The session id: an opaque string; do not validate its
                      format.
                  status:
                    type: string
                    enum:
                      - returned
                      - ended
                  returnedAt:
                    type: string
                    nullable: true
                required:
                  - poolId
                  - leaseId
                  - sessionId
                  - status
                  - returnedAt
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '404':
          description: >-
            Unknown pool, or a lease that does not belong to it ("Pool lease not
            found").
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '409':
          description: Pool state conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '503':
          description: Browser service unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: >-
        A workspace API key from Settings → API keys in the dashboard
        (https://app.driver.dev), sent as a bearer token.

````