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

# List blocked visitors

> List the chatbot's blocked visitors, newest first. Needs the right to delete conversations (Manager and above).

Required scope: `conversations:read`.

On success, `data` contains: `blockedVisitors`, `pagination`.



## OpenAPI

````yaml https://sitegpt.ai/api/v2/openapi.json get /api/v2/chatbots/{chatbotId}/blocked-visitors
openapi: 3.1.0
info:
  title: SiteGPT Agent API
  version: 2.0.0
  description: >-
    Agent-facing API for managing SiteGPT chatbots, dashboard summaries,
    appearance media, knowledge, settings, conversations, leads, members,
    account profiles, usage, billing reads, and API tokens.
servers:
  - url: https://sitegpt.ai
security:
  - bearerAuth: []
tags:
  - name: Discovery
  - name: Onboarding
  - name: Account
  - name: Billing
  - name: Tokens
  - name: Chatbots
  - name: Knowledge
  - name: Knowledge Sync Jobs
  - name: Knowledge Sources
  - name: Custom Responses
  - name: Personas
  - name: Instructions
  - name: Settings
  - name: Conversation Starters
  - name: Conversation Followups
  - name: Members
  - name: Leads
  - name: Conversations
  - name: Messages
  - name: Tags
paths:
  /api/v2/chatbots/{chatbotId}/blocked-visitors:
    get:
      tags:
        - Conversations
      summary: List blocked visitors
      description: >-
        List the chatbot's blocked visitors, newest first. Needs the right to
        delete conversations (Manager and above).


        Required scope: `conversations:read`.


        On success, `data` contains: `blockedVisitors`, `pagination`.
      operationId: listBlockedVisitors
      parameters:
        - name: chatbotId
          in: path
          required: true
          description: Chatbot ID.
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Maximum number of records to return.
          schema:
            type: integer
            minimum: 1
        - name: cursor
          in: query
          required: false
          description: Pagination cursor.
          schema:
            type: string
      responses:
        '200':
          description: Successful SiteGPT API v2 response.
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - data
                  - meta
                properties:
                  ok:
                    type: boolean
                    const: true
                  data:
                    type: object
                    additionalProperties: true
                    properties:
                      blockedVisitors:
                        type: array
                        items:
                          $ref: '#/components/schemas/BlockedVisitor'
                      pagination:
                        $ref: '#/components/schemas/Pagination'
                  meta:
                    $ref: '#/components/schemas/AgentResponseMeta'
                additionalProperties: false
              example:
                ok: true
                data:
                  blockedVisitors:
                    - id: block-id
                      kind: email
                      visitor: visitor@example.com
                      blockedAt: '2026-11-30T10:00:00.000Z'
                      blockedBy: Jo
                      threadId: thread-id
                  pagination:
                    limit: 50
                    hasNextPage: false
                    nextCursor: null
                meta:
                  requestId: request-id
        '400':
          $ref: '#/components/responses/AgentError'
        '401':
          $ref: '#/components/responses/AgentError'
        '403':
          $ref: '#/components/responses/AgentError'
        '404':
          $ref: '#/components/responses/AgentError'
        '405':
          $ref: '#/components/responses/AgentError'
        '503':
          $ref: '#/components/responses/AgentError'
      security:
        - bearerAuth:
            - conversations:read
components:
  schemas:
    BlockedVisitor:
      type: object
      description: 'A blocked visitor: every message from them is refused on every channel.'
      additionalProperties: false
      required:
        - id
        - kind
        - visitor
        - blockedAt
        - blockedBy
        - threadId
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - chatUser
            - email
            - ip
            - channelUser
          description: >-
            What is blocked: the visitor, their email, an IP address, or a
            visitor on a chat app such as WhatsApp (blocked by that app's own id
            for them, so a new conversation stays blocked).
        visitor:
          type: string
          description: The visitor's name or email, or the blocked email or IP address.
        blockedAt:
          type: string
          format: date-time
        blockedBy:
          type: string
          description: The team member who blocked.
        threadId:
          type:
            - string
            - 'null'
          description: The conversation the block was made from.
    Pagination:
      type: object
      description: Cursor pagination state for paginated list endpoints.
      additionalProperties: false
      required:
        - limit
        - hasNextPage
        - nextCursor
      properties:
        limit:
          type: integer
          description: Page size used.
        hasNextPage:
          type: boolean
        nextCursor:
          type:
            - string
            - 'null'
          description: >-
            Pass as the cursor query parameter to fetch the next page. Null on
            the last page.
    AgentResponseMeta:
      type: object
      required:
        - requestId
      properties:
        requestId:
          type: string
        warnings:
          type: array
          items:
            type: string
        nextCursor:
          type:
            - string
            - 'null'
      additionalProperties: true
    AgentError:
      type: object
      required:
        - ok
        - error
        - meta
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          additionalProperties: false
        meta:
          type: object
          required:
            - requestId
          properties:
            requestId:
              type: string
          additionalProperties: true
      additionalProperties: false
  responses:
    AgentError:
      description: SiteGPT agent API error response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AgentError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: SiteGPT API token

````

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