---
title: "List a customer's entity-scoped Insight Ask history"
method: GET
path: "/accountant/companies/{customerId}/intelligence/asks"
tags: ["Accountant Portal", "Insights"]
---

# List a customer's entity-scoped Insight Ask history

`GET /accountant/companies/{customerId}/intelligence/asks`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/intelligence/asks`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Query parameters

- `entityId` string, uuid
- `limit` integer
- `cursor` string

## Response `200`

Ask history

- InsightAskListResponse
  - `success` true, required
  - `data` InsightAskRecord[], required
    - `id` string, uuid, required
    - `companyId` string, uuid, required
    - `entityId` string, uuid, required
    - `askedBy` string, uuid, nullable, required
    - `question` string, required
    - `answer` string, nullable, required
    - `status` 'pending' | 'answered' | 'failed' | 'rate_limited', required
    - `answeredAt` string, date-time, nullable, required
    - `model` string, nullable, required
    - `promptTokens` integer, nullable, required
    - `completionTokens` integer, nullable, required
    - `costCents` integer, nullable, required
    - `error` string, nullable, required
    - `sourceRefs` MetricSourceRef[], required
      - `type` 'overview' | 'report' | 'aging' | 'marketing' | 'stripe' | 'document' | 'transaction' | 'manual', required
      - `id` string, required
      - `label` string, required
    - `parentAskId` string, uuid, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `meta` PaginationMeta, required
    - `nextCursor` string, nullable
    - `hasMore` boolean

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
