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

# Get Request Logs Summary

> Counts of your requests and errors grouped by day, error code, source, path or status code, to build your own dashboards. Each item has `total` (requests) and `errors` (status >= 400).



## OpenAPI

````yaml /stack/openapi.json get /api/v1/logs/summary
openapi: 3.1.0
info:
  title: Kravata Stack API
  version: '2.0'
  description: >-
    Kravata Stack API: users, accounts, custody wallets, liquidity ramps and
    fiat payments.
servers:
  - url: https://test-api-kore.kravata.co
    description: Test
  - url: https://partners-api.kravata.co
    description: Production (mTLS + IP allowlist)
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Users
  - name: Accounts
  - name: Earn
  - name: Custody
  - name: Liquidity Ramps
  - name: Payments
  - name: Webhooks
  - name: Request Logs
paths:
  /api/v1/logs/summary:
    get:
      tags:
        - Request Logs
      summary: Get Request Logs Summary
      description: >-
        Counts of your requests and errors grouped by day, error code, source,
        path or status code, to build your own dashboards. Each item has `total`
        (requests) and `errors` (status >= 400).
      operationId: get-request-logs-summary
      parameters:
        - name: fromDate
          in: query
          required: false
          description: 'Start of the range (ISO 8601). Default: 7 days before toDate.'
          schema:
            type: string
          example: '2026-10-16T00:00:00Z'
        - name: toDate
          in: query
          required: false
          description: >-
            End of the range (ISO 8601). Default: now. The range cannot exceed
            90 days.
          schema:
            type: string
          example: '2026-10-23T00:00:00Z'
        - name: groupBy
          in: query
          required: false
          description: day (default), errorCode, source, path or statusCode.
          schema:
            type: string
            enum:
              - day
              - errorCode
              - source
              - path
              - statusCode
          example: errorCode
        - name: source
          in: query
          required: false
          description: >-
            all (default: partner_api + end_user + gateway), partner_api,
            end_user, gateway or widget. widget only supports groupBy=day or
            errorCode.
          schema:
            type: string
            enum:
              - all
              - partner_api
              - end_user
              - gateway
              - widget
          example: all
        - name: onlyErrors
          in: query
          required: false
          description: 'true: count only responses with status >= 400.'
          schema:
            type: string
          example: 'true'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  fromDate:
                    type: string
                  toDate:
                    type: string
                  groupBy:
                    type: string
                  source:
                    type: string
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        total:
                          type: integer
                        errors:
                          type: integer
              examples:
                errors-by-code:
                  summary: Errors by code
                  value:
                    fromDate: '2026-10-16T00:00:00+00:00'
                    toDate: '2026-10-23T00:00:00+00:00'
                    groupBy: errorCode
                    source: all
                    items:
                      - key: BAD_REQUEST
                        total: 8
                        errors: 8
                      - key: VALIDATION_ERROR
                        total: 5
                        errors: 5
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Access token from POST /api/v1/client/token.

````

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