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

# List API keys for the usage log

> Owner or admin only. Lists the workspace's API keys, revoked ones included, so you can filter credit usage by key: pass a key's `id` as `actor_id` to List credit usage, Summarize credit usage or Export credit usage as CSV. Returns names and ids only, never a key's secret, and creates no key.




## OpenAPI

````yaml /openapi/billing.yaml get /workspaces/{workspaceId}/billing/usage-log/api-keys
openapi: 3.1.0
info:
  title: Connie Billing API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for billing. They authenticate with your
    signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Credits
    description: >
      The workspace's credit balance. Any member can read the balance and plan
      prices; plan details and everything else in Billing are for workspace
      owners and admins only.
  - name: Plan
    description: The workspace's plan and subscription. Owners and admins only.
  - name: Usage log
    description: >-
      Every credit used or added, as shown in Settings > Logs. Owners and admins
      only.
paths:
  /workspaces/{workspaceId}/billing/usage-log/api-keys:
    get:
      tags:
        - Usage log
      summary: List API keys for the usage log
      description: >
        Owner or admin only. Lists the workspace's API keys, revoked ones
        included, so you can filter credit usage by key: pass a key's `id` as
        `actor_id` to List credit usage, Summarize credit usage or Export credit
        usage as CSV. Returns names and ids only, never a key's secret, and
        creates no key.
      operationId: listUsageLogApiKeys
      parameters:
        - $ref: '#/components/parameters/workspaceId'
      responses:
        '200':
          description: Active keys first, then revoked ones, each group by name.
          content:
            application/json:
              schema:
                type: object
                required:
                  - keys
                properties:
                  keys:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - name
                        - prefix
                        - isPersonal
                        - ownerUserId
                        - revoked
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: The value to pass as `actor_id`.
                        name:
                          type: string
                        prefix:
                          type: string
                          description: The start of the key, as shown in Settings.
                        isPersonal:
                          type: boolean
                          description: >-
                            Whether the key acts as one member rather than the
                            workspace.
                        ownerUserId:
                          type:
                            - string
                            - 'null'
                          format: uuid
                          description: >-
                            The member the key acts as, else the member who
                            created it; null when unknown.
                        revoked:
                          type: boolean
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/AdminOnly'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    workspaceId:
      name: workspaceId
      in: path
      required: true
      description: The workspace id, as in the app URL `connie.ai/<workspaceId>/...`.
      schema:
        type: string
        format: uuid
  responses:
    Unauthorized:
      description: No valid session, or the session has expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    AdminOnly:
      description: >-
        You are not a member of this workspace, or you are not an owner or
        admin.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: >-
        Too many requests (`RATE_LIMIT_EXCEEDED`). Wait for the `Retry-After`
        seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: A readable message.
        code:
          type: string
          description: A machine-readable code, when the route sets one.
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.