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

# Get the setup readiness checklist

> Failed and expired knowledge, knowledge no search returned in 30 days, open gaps, the test-question pass rate, the "check knowledge before every answer" setting with the measured share of messages answered without a knowledge search, and model advice: the credit multiplier (`costPerConversationUsd` is always null here; spend is shown in the dashboard only), per-model metrics for this agent (search rate, thumbs-down rate, credits per conversation) and how often each catalog model searches knowledge on its own across totebot. The `gaps` item lists sample questions (emails and phone numbers masked) only when the key has `analytics:read` and the plan includes knowledge gaps; otherwise its `samples` is empty. Every other item holds counts and knowledge source names only.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agents/{agentId}/readiness
openapi: 3.0.0
info:
  title: Totebot Public API
  description: >-
    Manage your agents (settings, instructions, widget, skills, actions, MCP
    connections, integrations), their knowledge, test questions, the help desk,
    customers and your team from code, read conversations and analytics, and
    analyse which knowledge each answer used.


    Authenticate with a Bearer token: a team API key (`tb_live_…`, created by a
    team owner in Team settings → API keys) or a legacy per-agent key.

    New keys can only read. Write access is opt-in per area (`agents:write`,
    `plugins:write`, `knowledge:write`, `conversations:write`, `helpdesk:write`,
    `team:write`, `members:write`, `chat:write`, `customers:delete`,
    `quality:write`, `experiments:write`, `sales:write`). Provider cost in USD
    needs the opt-in `billing:read` scope. A key may also be limited to some
    agents.

    Routes that act on one agent take it from the `agentId` path parameter or,
    on the older `/v1/<resource>` routes, from the `X-Agent-Id` header.

    Write routes accept an `Idempotency-Key` header. Over the rate limit you get
    429 with `Retry-After`. Errors share one shape: `{ status: "error", error: {
    code, message, details } }`.

    Not available through the API, on purpose: billing and plan changes,
    deleting the team, creating or changing API keys, and OAuth connect flows.


    This spec is public at https://api.totebot.ai/v1/openapi.json (and .yaml).
  version: '2.0'
  contact: {}
servers:
  - url: https://api.totebot.ai
security: []
tags: []
paths:
  /v1/agents/{agentId}/readiness:
    get:
      tags:
        - Setup assistant
      summary: Get the setup readiness checklist
      description: >-
        Failed and expired knowledge, knowledge no search returned in 30 days,
        open gaps, the test-question pass rate, the "check knowledge before
        every answer" setting with the measured share of messages answered
        without a knowledge search, and model advice: the credit multiplier
        (`costPerConversationUsd` is always null here; spend is shown in the
        dashboard only), per-model metrics for this agent (search rate,
        thumbs-down rate, credits per conversation) and how often each catalog
        model searches knowledge on its own across totebot. The `gaps` item
        lists sample questions (emails and phone numbers masked) only when the
        key has `analytics:read` and the plan includes knowledge gaps; otherwise
        its `samples` is empty. Every other item holds counts and knowledge
        source names only.
      operationId: PublicApiSetupController_getReadiness
      parameters:
        - name: agentId
          required: true
          in: path
          schema: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentReadinessDto'
        '400':
          description: Invalid request, or rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorDto'
        '401':
          description: Missing, invalid, revoked or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorDto'
        '403':
          description: >-
            The plan lacks the feature, or the key lacks a scope
            (`error.details.missingScopes`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorDto'
        '404':
          description: Not found, or not an agent this key can access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorDto'
      security:
        - api-key: []
components:
  schemas:
    AgentReadinessDto:
      type: object
      properties:
        generatedAt:
          type: string
        from:
          type: string
        to:
          type: string
        agent:
          $ref: '#/components/schemas/ReadinessAgentDto'
        items:
          type: array
          items:
            $ref: '#/components/schemas/ReadinessItemDto'
        model:
          $ref: '#/components/schemas/ModelAdviceDto'
      required:
        - generatedAt
        - from
        - to
        - agent
        - items
        - model
    ApiErrorDto:
      type: object
      properties:
        status:
          type: string
          example: error
        error:
          $ref: '#/components/schemas/ApiErrorBodyDto'
        path:
          type: string
          example: /v1/agents/clx123
        timestamp:
          type: string
          example: '2026-11-24T10:00:00.000Z'
      required:
        - status
        - error
        - path
        - timestamp
    ReadinessAgentDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        knowledgePrefetchEnabled:
          type: boolean
      required:
        - id
        - name
        - knowledgePrefetchEnabled
    ReadinessItemDto:
      type: object
      properties:
        key:
          type: string
          enum:
            - knowledge_failed
            - knowledge_expired
            - knowledge_unused
            - gaps
            - test_questions
            - knowledge_first
            - model_search_rate
        status:
          type: string
          enum:
            - ok
            - attention
            - info
        title:
          type: string
        detail:
          type: string
          nullable: true
        count:
          type: number
          nullable: true
        rate:
          type: number
          nullable: true
          description: 0 to 1.
        samples:
          type: array
          items:
            $ref: '#/components/schemas/ReadinessSampleDto'
        fix:
          type: string
          enum:
            - knowledge
            - gaps
            - test_questions
            - ai_settings
            - model
          nullable: true
          description: Where the fix is made.
      required:
        - key
        - status
        - title
        - detail
        - count
        - rate
        - samples
        - fix
    ModelAdviceDto:
      type: object
      properties:
        current:
          $ref: '#/components/schemas/CurrentModelDto'
        costPerConversationUsd:
          type: number
          nullable: true
          description: Dashboard only; always null on the public API.
        thisAgent:
          description: This agent's conversations per model, last 30 days.
          type: array
          items:
            $ref: '#/components/schemas/AgentModelMetricsDto'
        platform:
          description: >-
            How often each model searches knowledge on its own across other
            totebot teams whose agents do not pre-check knowledge. Only models
            with at least 500 customer messages from at least 5 teams. Shares
            only.
          type: array
          items:
            $ref: '#/components/schemas/PlatformModelRateDto'
      required:
        - current
        - costPerConversationUsd
        - thisAgent
        - platform
    ApiErrorBodyDto:
      type: object
      properties:
        code:
          type: string
          example: NotFoundException
        message:
          type: string
          example: Agent not found
        details:
          type: object
          description: >-
            Extra fields, e.g. `missingScopes` on 403 or `secondsRemaining` on a
            training cooldown.
          additionalProperties: true
      required:
        - code
        - message
    ReadinessSampleDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
    CurrentModelDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        provider:
          allOf:
            - $ref: '#/components/schemas/AIModelProvider'
        creditMultiplier:
          type: number
          description: Credits charged per customer message.
      required:
        - id
        - name
        - provider
        - creditMultiplier
    AgentModelMetricsDto:
      type: object
      properties:
        modelId:
          type: string
        name:
          type: string
        creditMultiplier:
          type: number
          nullable: true
        conversations:
          type: number
        customerMessages:
          type: number
        searchRate:
          type: number
          nullable: true
          description: >-
            Share of customer messages where the model searched knowledge
            itself.
        noSearchRate:
          type: number
          nullable: true
          description: Share of customer messages answered with no knowledge search at all.
        ratedReplies:
          type: number
        thumbsDownRate:
          type: number
          nullable: true
        creditsPerConversation:
          type: number
          nullable: true
      required:
        - modelId
        - name
        - creditMultiplier
        - conversations
        - customerMessages
        - searchRate
        - noSearchRate
        - ratedReplies
        - thumbsDownRate
        - creditsPerConversation
    PlatformModelRateDto:
      type: object
      properties:
        modelId:
          type: string
        name:
          type: string
        provider:
          allOf:
            - $ref: '#/components/schemas/AIModelProvider'
        creditMultiplier:
          type: number
        searchRate:
          type: number
          nullable: true
        availableOnPlan:
          type: boolean
      required:
        - modelId
        - name
        - provider
        - creditMultiplier
        - searchRate
        - availableOnPlan
    AIModelProvider:
      type: string
      enum:
        - OPENAI
        - ANTHROPIC
        - GEMINI
        - MISTRAL
        - GROK
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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