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

# List AI credit usage by person

> One row per person, with their billed calls and credits, most credits first: calls made in chat count toward whoever made them, a flow's calls toward the flow's owner, and usage tied to nobody is one row (`unattributed`). Covers the current contract period unless `start` or `end` sets a window of its own; `tier` keeps one billing tier. Admins only, as in the app: needs settings:update as well. `limit` is up to 100.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/credits/users
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/credits/users:
    get:
      tags:
        - credits
      summary: List AI credit usage by person
      description: >-
        One row per person, with their billed calls and credits, most credits
        first: calls made in chat count toward whoever made them, a flow's calls
        toward the flow's owner, and usage tied to nobody is one row
        (`unattributed`). Covers the current contract period unless `start` or
        `end` sets a window of its own; `tier` keeps one billing tier. Admins
        only, as in the app: needs settings:update as well. `limit` is up to
        100.
      operationId: credits_users
      parameters:
        - description: >-
            Inclusive. With `end` or alone, replaces the contract period; no
            offset is UTC
          in: query
          name: start
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            default: null
        - description: >-
            Exclusive. With `start` or alone, replaces the contract period; no
            offset is UTC
          in: query
          name: end
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            default: null
        - description: >-
            Only calls billed at this tier: 1 (LLM workflows), 2 (agents), 3
            (documents)
          in: query
          name: tier
          required: false
          schema:
            anyOf:
              - maximum: 3
                minimum: 1
                type: integer
              - type: 'null'
            default: null
        - in: query
          name: limit
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            type: integer
        - description: '`next_cursor` from the previous page'
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserUsagePage'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    UserUsagePage:
      properties:
        data:
          items:
            $ref: '#/components/schemas/UserUsage'
          title: Data
          type: array
        has_more:
          default: false
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      required:
        - data
      title: UserUsagePage
      type: object
    UserUsage:
      properties:
        credits:
          description: The credits the calls used
          title: Credits
          type: number
        email:
          anyOf:
            - type: string
            - type: 'null'
          description: The person's email; null for unattributed usage
          title: Email
        name:
          description: The person's name (their email when they have none)
          title: Name
          type: string
        runs:
          description: The billed calls
          title: Runs
          type: integer
        tiers:
          description: The credit tiers the person's calls used, such as [1, 2]
          items:
            type: integer
          title: Tiers
          type: array
        user_id:
          description: The person's user id, or `unattributed` for usage tied to nobody
          title: User Id
          type: string
      required:
        - user_id
        - name
        - email
        - tiers
        - runs
        - credits
      title: UserUsage
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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