> ## 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

> Returns the workspace's active API keys. Members see their own keys; owners and admins see everyone's, but never another person's key value. If you have no personal key, one is created for you. Guests can't use API keys.




## OpenAPI

````yaml /openapi/workspace.yaml get /workspaces/{workspaceId}/api-keys
openapi: 3.1.0
info:
  title: Connie Workspace API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for workspace settings, members and API
    keys. 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: Settings
    description: The workspace name, logo and memory switch. Owners and admins only.
  - name: Members
    description: People in the workspace and their roles.
  - name: Invitations
    description: Email invitations and the workspace invite link.
  - name: Join requests
    description: People who asked to join the workspace.
  - name: API keys
    description: >
      Workspace API keys for MCP clients and agents. Keys work only with the
      Connie MCP server; these web app endpoints don't accept them.
paths:
  /workspaces/{workspaceId}/api-keys:
    get:
      tags:
        - API keys
      summary: List API keys
      description: >
        Returns the workspace's active API keys. Members see their own keys;
        owners and admins see everyone's, but never another person's key value.
        If you have no personal key, one is created for you. Guests can't use
        API keys.
      operationId: listApiKeys
      parameters:
        - $ref: '#/components/parameters/workspaceId'
      responses:
        '200':
          description: Keys you can see.
          content:
            application/json:
              schema:
                type: object
                properties:
                  keys:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApiKey'
                  viewer:
                    type: object
                    properties:
                      userId:
                        type: string
                        format: uuid
                      role:
                        $ref: '#/components/schemas/Role'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            Not a member, or a guest ("Guests cannot use API keys. Ask a
            workspace admin for member access.").
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          $ref: '#/components/responses/Unavailable'
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
  schemas:
    ApiKey:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        prefix:
          type: string
          description: The start of the key, shown in place of the full value.
        permissions:
          type: array
          items:
            type: string
          example:
            - mcp:access
            - tools:read
            - tools:execute
        executionUserId:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The member whose permissions the key uses. Its creator unless an
            owner or admin changed it.
        isPersonal:
          type: boolean
          description: The personal key every member gets automatically.
        isMine:
          type: boolean
          description: You created this key.
        revealable:
          type: boolean
          description: You can copy this key's value again.
        createdBy:
          type:
            - string
            - 'null'
          format: uuid
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
        lastUsedAt:
          type:
            - string
            - 'null'
          format: date-time
        expiresAt:
          type:
            - string
            - 'null'
          format: date-time
    Role:
      type: string
      enum:
        - owner
        - admin
        - member
        - guest
      default: member
    Error:
      type: object
      properties:
        error:
          type: string
          description: A readable message.
        code:
          type: string
          description: >-
            A machine-readable code such as `VALIDATION_ERROR`, `FORBIDDEN` or
            `CONFLICT`, when the route sets one.
  responses:
    Unauthorized:
      description: No valid session, or the session has expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: API keys are temporarily unavailable. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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.