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

# List Function Secrets

> List secrets attached to a function. Supports filtering by secret creation time. Returns metadata only.



## OpenAPI

````yaml get /v1/functions/{id}/secrets
openapi: 3.0.0
info:
  title: Browserbase API
  description: Browserbase API for 3rd party developers
  version: v1
servers:
  - url: https://api.browserbase.com
    description: Public endpoint
    variables: {}
security:
  - BrowserbaseAuth: []
tags: []
paths:
  /v1/functions/{id}/secrets:
    get:
      summary: List Function Secrets
      description: >-
        List secrets attached to a function. Supports filtering by secret
        creation time. Returns metadata only.
      operationId: Functions_listSecrets
      parameters:
        - name: startAt
          in: query
          description: >-
            Only return secrets created on or after this timestamp (inclusive).
            RFC 3339, e.g. 2026-01-19T00:00:00Z.
          required: false
          schema:
            type: string
            format: date-time
        - name: endAt
          in: query
          description: >-
            Only return secrets created on or before this timestamp (inclusive).
            RFC 3339, e.g. 2026-01-20T00:00:00Z.
          required: false
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          description: Maximum number of results to return.
          required: false
          schema:
            type: integer
            default: 20
            maximum: 1000
            minimum: 1
        - name: cursor
          in: query
          description: >-
            Pagination cursor. Pass the nextCursor from the previous response to
            fetch the next page. Keep the same filters across pages. Omit to
            start from the first page.
          required: false
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The page of matching secrets.
          content:
            application/json:
              schema:
                description: A page of secrets.
                type: object
                properties:
                  data:
                    description: The page of matching secrets.
                    type: array
                    items:
                      $ref: '#/components/schemas/Secret'
                  limit:
                    description: The maximum number of results returned in this page.
                    type: integer
                  nextCursor:
                    description: >-
                      Cursor for the next page. Pass it back as `cursor` on the
                      next request to continue paging. null when there are no
                      more results.
                    anyOf:
                      - type: string
                    nullable: true
                required:
                  - data
                  - limit
                  - nextCursor
        '400':
          description: >-
            Invalid Function ID, query parameters, or cursor, or startAt is
            after endAt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    description: HTTP status code
                    type: integer
                  error:
                    description: HTTP error name
                    type: string
                  message:
                    description: Human-readable error message
                    type: string
                required:
                  - statusCode
                  - error
                  - message
        '404':
          description: The Function does not exist in the project.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    description: HTTP status code
                    type: integer
                  error:
                    description: HTTP error name
                    type: string
                  message:
                    description: Human-readable error message
                    type: string
                required:
                  - statusCode
                  - error
                  - message
components:
  schemas:
    Secret:
      type: object
      properties:
        id:
          description: Unique identifier of the secret.
          type: string
        secretKey:
          description: The name the secret value is stored under.
          type: string
      required:
        - id
        - secretKey
  securitySchemes:
    BrowserbaseAuth:
      type: apiKey
      in: header
      name: X-BB-API-Key
      description: Your [Browserbase API Key](https://www.browserbase.com/settings).

````