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

# List Websites

> List the websites in an agent's knowledge base.

Returns the website sources associated with an agent's knowledge base. The API key must belong to the supplied user, and that user must have access to the agent.

Use the related operations to add or delete a website source. When adding one, `limit`, `maxDepth`, `includePaths`, and `excludePaths` control how the website is crawled. Phonely caps `limit` and `maxDepth` at 10.


## OpenAPI

````yaml GET /agent-websites
openapi: 3.0.1
info:
  title: Phonely API
  description: API for Phonely services including agent management and call summaries
  version: 1.0.0
servers:
  - url: https://app.phonely.ai/api
security: []
paths:
  /agent-websites:
    get:
      summary: List agent websites
      description: Retrieve all websites associated with a specific agent's knowledge base
      parameters:
        - name: uid
          in: query
          required: true
          schema:
            type: string
          description: User ID
        - name: agentId
          in: query
          required: true
          schema:
            type: string
          description: Agent ID
      responses:
        '200':
          description: List of websites
          content:
            application/json:
              schema:
                type: object
                required:
                  - websites
                properties:
                  websites:
                    type: array
                    items:
                      $ref: '#/components/schemas/Website'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Website:
      type: object
      required:
        - id
        - agentId
        - name
        - url
        - active
        - content
        - contentMD
        - lastUpdatedBy
        - lastUpdatedAt
      properties:
        id:
          type: string
          description: Website ID
        agentId:
          type: string
          description: Associated agent ID
        name:
          type: string
          description: Website name or title
        url:
          type: string
          format: uri
          description: Website URL
        active:
          type: boolean
          description: Website active status
        content:
          type: string
          description: Processed website content (JSON format)
        contentMD:
          type: string
          description: Website content in Markdown format
        lastUpdatedBy:
          type: string
          description: Who last updated the website
        lastUpdatedAt:
          oneOf:
            - type: string
              format: date-time
            - $ref: '#/components/schemas/FirestoreTimestamp'
          description: When the website was last updated
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error code or identifier
        message:
          type: string
          description: Detailed error message
    FirestoreTimestamp:
      type: object
      required:
        - _seconds
        - _nanoseconds
      properties:
        _seconds:
          type: integer
          format: int64
        _nanoseconds:
          type: integer
      description: Serialized Firestore timestamp
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Authorization

````

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