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

# List App Usages

> List the agents and knowledge bases referencing an App, most recently configured first by default.



## OpenAPI

````yaml openapi-final get /list-app-usages/{app_id}
openapi: 3.0.3
info:
  title: Retell SDK
  version: 3.0.0
  x-retell-spec-revision: 2026-08-22-7679759
  contact:
    name: Retell Support
    url: https://www.retellai.com/
    email: support@retellai.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.retellai.com
    description: The production server.
security:
  - api_key: []
paths:
  /list-app-usages/{app_id}:
    get:
      description: >-
        List the agents and knowledge bases referencing an App, most recently
        configured first by default.
      operationId: listAppUsages
      parameters:
        - in: path
          name: app_id
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/LimitParam'
        - $ref: '#/components/parameters/SortOrderParam'
        - $ref: '#/components/parameters/PaginationKeyParam'
      responses:
        '200':
          description: Page of App references.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PaginatedResponseBase'
                  - type: object
                    properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/AppUsageResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Retell from 'retell-sdk';

            const client = new Retell({
              apiKey: process.env['RETELL_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.app.listUsages('app_id');

            console.log(response.has_more);
        - lang: Python
          source: |-
            import os
            from retell import Retell

            client = Retell(
                api_key=os.environ.get("RETELL_API_KEY"),  # This is the default and can be omitted
            )
            response = client.app.list_usages(
                app_id="app_id",
            )
            print(response.has_more)
components:
  parameters:
    LimitParam:
      in: query
      name: limit
      schema:
        type: integer
        default: 50
        maximum: 1000
      description: Maximum number of items to return.
    SortOrderParam:
      in: query
      name: sort_order
      schema:
        type: string
        enum:
          - ascending
          - descending
        default: descending
      description: Sort order for results.
    PaginationKeyParam:
      in: query
      name: pagination_key
      schema:
        type: string
      description: Pagination key for fetching the next page.
  schemas:
    PaginatedResponseBase:
      type: object
      properties:
        pagination_key:
          type: string
          description: Pagination key for the next page.
        has_more:
          type: boolean
          description: Whether more results are available.
    AppUsageResponse:
      oneOf:
        - $ref: '#/components/schemas/AgentAppUsage'
        - $ref: '#/components/schemas/KnowledgeBaseAppUsage'
      description: One agent or knowledge base referencing an app.
    AgentAppUsage:
      type: object
      required:
        - type
        - agent_id
        - agent_versions
        - configured_timestamp
      properties:
        type:
          type: string
          enum:
            - agent
        agent_id:
          type: string
        agent_name:
          type: string
          description: Current agent name; omitted if the agent was deleted.
        agent_versions:
          type: array
          items:
            type: number
          description: Agent versions referencing this app, largest first.
        configured_timestamp:
          type: number
          description: When this reference was last recorded, in milliseconds.
    KnowledgeBaseAppUsage:
      type: object
      required:
        - type
        - knowledge_base_id
        - configured_timestamp
      properties:
        type:
          type: string
          enum:
            - knowledge_base
        knowledge_base_id:
          type: string
        knowledge_base_name:
          type: string
          description: Current knowledge base name; omitted if it was deleted.
        configured_timestamp:
          type: number
          description: When this reference was last recorded, in milliseconds.
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              message:
                type: string
                example: API key is missing or invalid.
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              message:
                type: string
                example: The requested resource was not found.
    TooManyRequests:
      description: Too Many Requests
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              message:
                type: string
                example: Account rate limited, please throttle your requests.
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              message:
                type: string
                example: An unexpected server error occurred.
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
      bearerFormat: string
      description: >-
        Authentication header containing API key (find it in dashboard). The
        format is "Bearer YOUR_API_KEY"

````