Skip to content
Navigation

Get a report

Get the numbers behind a question. name: conversations_daily (conversations the AI took part in, per day), handoffs_daily (the conversations the AI handed to the team per day, Agent and person: how many a person answered, how many within the organization's first-reply time and how soon on average, how many still wait, how many closed with nobody answering and how many went back to the AI; filter agentId), booking_details (verified individual creation receipts with patient, specialty, appointments and later recorded cancellations; also requires conversation read/write permission; filter specialty by its recorded code), booking_outcomes (verified saved booking receipts by completion day and integration, excluding tests, imports and deleted conversations; createdCount counts new appointments created by the AI, not confirmations of existing appointments; confirmedCount is its compatibility alias and must not be added again; reschedules, cancellations, failures, pending and unverified results separately), tool_calls_daily (Agent tool calls per day), tool_calls (each call, newest first), assessment_results_daily (assessment results per day), pqrsf_daily (PQRSF classification, confirmed informational resolution and correct referrals from current pqrsf_* facts; unknown and pending analysis remain visible; excludes tests/imports/deleted records), each over days in the organization's time zone (from, to; the last 30 days by default), or campaign_progress. Narrow with agentId, channelType, campaignId or definitionId; unsupported filters fail. At most 1000 rows: hasMore means split the range or filter. Booking outcomes return no partial totals when their evidence scan exceeds its bound. Conversation success and completed tool calls never establish a booking; these are historical receipts, not the provider's current appointment status.

  • Scope: raiz:reports:read
  • Credentials: an API key, a client-credentials token or a person's access token
  • Effect: read-only; safe to retry
  • Limits: response up to 1 MB
  • CLI: arbol raiz reports get · MCP tool: raiz_reports_get
GET
https://api.getarbol.com/v1/raiz/reports

Authorization

  • Authorization
    string
    required
    Bearer <token>, where the token is an API key, a client-credentials token or a person's access token with the scope raiz:reports:read. Get an API key.

Query parameters

  • name
    conversations_daily
    or
    handoffs_daily
    or
    pqrsf_daily
    or
    tool_calls_daily
    or
    tool_calls
    or
    booking_outcomes
    +3 more
    required

    conversations_daily: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters agentId, channelType). handoffs_daily: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter agentId). booking_details: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. booking_outcomes: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter agentId). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. tool_calls_daily: tool calls per day, Agent and tool with failures/durations (filter agentId). tool_calls: individual calls, never inputs/outputs (filter agentId). assessment_results_daily: assessments per day/definition (filter definitionId). pqrsf_daily: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters agentId, channelType); no measured filing reduction is inferred. campaign_progress: recipients by status (filter campaignId; no dates).

  • specialty
    optional
    string

    Only booking_details: exact specialty code recorded in the booking (case-insensitive). Omit to read all specialties.

    maxLength: 100
  • agentId
    optional
    string

    Agent id.

    pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
  • campaignId
    optional
    string

    Campaign id.

    pattern: ^cmp_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
  • channelType
    optional
    voice
    or
    whatsapp
    or
    web

    The channel type.

  • definitionId
    optional
    string

    Definition id.

    pattern: ^def_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
  • from
    optional
    string

    First day (YYYY-MM-DD) of a daily report. Default: 30 days ending on to.

    format: date
  • to
    optional
    string

    Last day (YYYY-MM-DD), inclusive, of a daily report. Default: today in the organization's time zone.

    format: date

Returns

200

Successful operation.

JSON
  • success
    true
    required
  • data
    required

    One of the following:

    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • rows
        array of
        object
        required
        • agentId
          string | null
          required

          Agent id.

          pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • agentName
          string | null
          required
        • avgDurationSeconds
          number | null
          required

          Average call duration; voice only.

        • channelType
          voice
          or
          whatsapp
          or
          web
          required
        • conversationCount
          integer
          required
          minimum: 0
        • day
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • direction
          inbound
          or
          outbound
          required
        • escalatedCount
          integer
          required

          Conversations the AI handed to the team: a request it could not resolve, a contact who asked for a person, or a spent budget. Still counted after the team gives one back to the AI.

          minimum: 0
        • failureCount
          integer
          required
          minimum: 0
        • negativeCount
          integer
          required

          Conversations whose sentiment was negative.

          minimum: 0
        • successCount
          integer
          required
          minimum: 0
        • toReviewCount
          integer
          required

          Conversations to review: unresolved escalations or evaluated failures, each counted once. A successful conversation explicitly resolved by the team leaves this queue; its historical escalation remains counted.

          minimum: 0
    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • rows
        array of
        object
        required
        • agentId
          string | null
          required

          Agent id.

          pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • agentName
          string | null
          required
        • answeredCount
          integer
          required

          Handoffs a person of the team answered.

          minimum: 0
        • answeredInTimeCount
          integer
          required

          Of those, the ones answered within the organization's first-reply time (settings.notifications.firstReplyMinutes, as it is set now).

          minimum: 0
        • avgFirstReplySeconds
          number | null
          required

          Average seconds from the handoff to the first message of a person of the team; null when none was answered.

        • day
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • handoffCount
          integer
          required

          Conversations the AI handed to the team that day, each once, by the handoff it keeps (its last).

          minimum: 0
        • memberId
          string | null
          required

          Who answered first, else the case's owner: a member id, as Arbol Account lists it. Null when nobody is named: nobody answered an unassigned case, or the answer came from the WhatsApp Business app.

        • returnedCount
          integer
          required

          Handoffs the team gave back to the AI.

          minimum: 0
        • unattendedCount
          integer
          required

          Handoffs that closed with nobody of the team answering and without going back to the AI.

          minimum: 0
        • waitingCount
          integer
          required

          Handoffs still open that nobody of the team answered.

          minimum: 0
    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • rows
        array of
        object
        required
        • day
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • conversationCount
          integer
          required
          minimum: 0
        • analyzedCount
          integer
          required
          minimum: 0
        • informativeResolvedCount
          integer
          required
          minimum: 0
        • informativeUnresolvedCount
          integer
          required
          minimum: 0
        • formalPqrsfCount
          integer
          required
          minimum: 0
        • unclassifiedCount
          integer
          required
          minimum: 0
        • confirmedResolutionCount
          integer
          required
          minimum: 0
        • referralRequiredCount
          integer
          required
          minimum: 0
        • referralCorrectCount
          integer
          required
          minimum: 0
        • referralIncorrectCount
          integer
          required
          minimum: 0
        • referralPendingCount
          integer
          required
          minimum: 0
    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • rows
        array of
        object
        required
        • agentId
          string | null
          required

          Agent id.

          pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • agentName
          string | null
          required
        • avgDurationMs
          number | null
          required
        • callCount
          integer
          required
          minimum: 0
        • day
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • failedCount
          integer
          required
          minimum: 0
        • p95DurationMs
          number | null
          required

          95th percentile of the call duration.

        • toolkit
          string | null
          required
        • toolName
          string | null
          required
    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • rows
        array of
        object
        required
        • agentId
          string | null
          required

          Agent id.

          pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • agentName
          string | null
          required
        • connectionId
          string | null
          required

          The integration connection the tool ran on, for an integration's tool.

        • conversationId
          string
          required

          The conversation the call was in.

          pattern: ^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • durationMs
          integer | null
          required
          minimum: 0
        • errorCode
          string | null
          required

          Why the call failed, when it failed.

        • executedBy
          string | null
          required

          Who ran it: arbol (a Raíz tool), browser, voice (Raíz, during a call), gateway (an Arbol integration through the platform) or custom (the organization's own server).

        • messageId
          string
          required

          The Agent message that made the call.

          pattern: ^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • occurredAt
          string
          required

          An instant in RFC 3339 format, in UTC.

          format: date-time
        • requestId
          string | null
          required

          The id an integration call carried; the integration's own logs of the call carry it too.

        • status
          string | null
          required

          pending, completed, failed or denied.

        • toolCallId
          string | null
          required
        • toolkit
          string | null
          required
        • toolName
          string | null
          required
    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • rows
        array of
        object
        required
        • agentId
          string | null
          required

          Agent id.

          pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • agentName
          string | null
          required
        • day
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • source
          string
          required

          Integration recorded in the booking receipt; unknown when absent.

        • createdCount
          integer
          required

          New appointments created by the AI, supported by successful booking receipts on the operation's completion day. Not confirmations of pre-existing appointments or appointment attendance.

          minimum: 0
        • confirmedCount
          deprecated
          integer
          required

          Compatibility alias of createdCount: the same new bookings, not another category. Never add the two fields or label this as confirmations of existing appointments.

          minimum: 0
        • rescheduledCount
          integer
          required
          minimum: 0
        • cancelledCount
          integer
          required
          minimum: 0
        • failedCount
          integer
          required
          minimum: 0
        • pendingCount
          integer
          required
          minimum: 0
        • unverifiedCount
          integer
          required
          minimum: 0
        • duplicateCount
          integer
          required
          minimum: 0
    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • snapshotAt
        string
        required

        An instant in RFC 3339 format, in UTC.

        format: date-time
      • unverifiedCount
        integer
        required
        minimum: 0
      • rows
        array of
        object
        required
        • conversationId
          string
          required

          Evidence conversation.

          pattern: ^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • messageId
          string
          required

          Creation receipt message.

          pattern: ^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • createdAt
          string
          required

          An instant in RFC 3339 format, in UTC.

          format: date-time
        • day
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • specialty
          string | null
          required
        • patientDocument
          string
          required
        • patientName
          string | null
          required
        • appointmentDate
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • appointmentTime
          string
          required
        • professionalName
          string | null
          required
        • exam
          string | null
          required
        • cancelledAt
          string | null
          required

          An instant in RFC 3339 format, in UTC.

          format: date-time
    • object
      • from
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • to
        string
        required

        A calendar day in the organization's time zone.

        format: date
      • name
        string
        required
      • rows
        array of
        object
        required
        • day
          string
          required

          A calendar day in the organization's time zone.

          format: date
        • definitionId
          string
          required

          Definition id.

          pattern: ^def_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • definitionKey
          string
          required
        • definitionName
          string
          required
        • noCount
          integer
          required
          minimum: 0
        • unknownCount
          integer
          required

          Conversations assessed as unknown or not applicable.

          minimum: 0
        • yesCount
          integer
          required
          minimum: 0
    • object
      • hasMore
        boolean
        required

        More than 1000 rows matched: narrow the range or the filters.

      • name
        string
        required
      • rows
        array of
        object
        required
        • campaignId
          string
          required

          Campaign id.

          pattern: ^cmp_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • campaignName
          string
          required
        • campaignStatus
          queued
          or
          running
          or
          completed
          or
          failed
          or
          cancelled
          required
        • completedCount
          integer
          required
          minimum: 0
        • failedCount
          integer
          required
          minimum: 0
        • inProgressCount
          integer
          required
          minimum: 0
        • pendingCount
          integer
          required
          minimum: 0
        • recipientCount
          integer
          required
          minimum: 0
        • successCount
          integer
          required

          Recipients whose latest attempt succeeded.

          minimum: 0
  • error
    unknown
    required
  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

400

  • INVALID_INPUT: The request does not match the published schema.
  • REPORT_FILTER_UNSUPPORTED: A filter does not apply to the selected report.
  • REPORT_RANGE_INVALID: The report range is invalid: from must not be after to.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • InvalidInputFailure
      INVALID_INPUT
      • code
        INVALID_INPUT
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required
        • issues
          optional
          array of
          object
          • path
            string
            required

            RFC 6901 JSON Pointer to the refused field; empty for the whole input.

            maxLength: 256
          • message
            string
            required
            maxLength: 256
    • RaizReportFilterUnsupportedFailure
      REPORT_FILTER_UNSUPPORTED
      • code
        REPORT_FILTER_UNSUPPORTED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • RaizReportRangeInvalidFailure
      REPORT_RANGE_INVALID
      • code
        REPORT_RANGE_INVALID
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

401

UNAUTHORIZED: A valid access token is required.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    A valid access token is required.

    • code
      UNAUTHORIZED
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

403

FORBIDDEN: The token does not authorize this operation.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The token does not authorize this operation.

    • code
      FORBIDDEN
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

429

RATE_LIMITED: The request rate limit was exceeded. Try again later.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The request rate limit was exceeded. Try again later.

    • code
      RATE_LIMITED
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      true
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

500

INTERNAL_ERROR: The service could not complete the operation.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The service could not complete the operation.

    • code
      INTERNAL_ERROR
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

502

OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The operation may have been applied; check its result before repeating it.

    • code
      OUTCOME_UNKNOWN
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

503

  • UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.
  • INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • UpstreamUnavailableFailure
      UPSTREAM_UNAVAILABLE
      • code
        UPSTREAM_UNAVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • RaizIntegrationsUnavailableFailure
      INTEGRATIONS_UNAVAILABLE
      • code
        INTEGRATIONS_UNAVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

504

UPSTREAM_TIMEOUT: The upstream service did not respond before its deadline.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The upstream service did not respond before its deadline.

    • code
      UPSTREAM_TIMEOUT
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      true
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

Escribe para buscar…

↑↓ navegar↵ seleccionarEsc cerrar