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

# List API Keys

> Get all API keys for the authenticated user. Keys are masked for security.



## OpenAPI

````yaml GET /user/api-keys
openapi: 3.1.0
info:
  title: FormBnB API
  version: 1.0.0
  description: API for FormBnB - Form backend as a service
servers:
  - url: https://api.formbnb.com
security: []
paths:
  /user/api-keys:
    get:
      tags:
        - User
        - API Keys
      summary: List API keys
      description: >-
        Get all API keys for the authenticated user. Keys are masked for
        security.
      responses:
        '200':
          description: List of API keys
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListUserApiKeysResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ListUserApiKeysResponse:
      type: object
      properties:
        apiKeys:
          type: array
          items:
            $ref: '#/components/schemas/UserApiKey'
      required:
        - apiKeys
    UserErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    UserApiKey:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        key:
          type: string
        created_at:
          type: string
        last_used:
          type: string
          nullable: true
      required:
        - id
        - name
        - key
        - created_at
        - last_used
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Authentication using either a FormBnB session JWT (issued by /auth) or
        an API key (prefixed with sk_). Both token types are passed as Bearer
        tokens in the Authorization header.

````