> ## 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

> Lists the requests your application made to the Kravata API, newest first, with the error code and message of every failed response. Use `onlyErrors=true` to see only the failed ones. Use `source=widget` to list the errors your users hit in the widget or SDK. Retention is 90 days.



## OpenAPI

````yaml /stack/openapi.json get /api/v1/logs/requests
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/requests:
    get:
      tags:
        - Request Logs
      summary: Get Request Logs
      description: >-
        Lists the requests your application made to the Kravata API, newest
        first, with the error code and message of every failed response. Use
        `onlyErrors=true` to see only the failed ones. Use `source=widget` to
        list the errors your users hit in the widget or SDK. Retention is 90
        days.
      operationId: get-request-logs
      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-01T00: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-05T23:59:59Z'
        - name: source
          in: query
          required: false
          description: >-
            partner_api (default): calls you made to the API. widget: errors
            your users hit in the widget or SDK.
          schema:
            type: string
          example: partner_api
        - name: onlyErrors
          in: query
          required: false
          description: 'true: only responses with status >= 400.'
          schema:
            type: string
          example: 'true'
        - name: statusCode
          in: query
          required: false
          description: Exact HTTP status code.
          schema:
            type: string
          example: '400'
        - name: errorCode
          in: query
          required: false
          description: Exact error.code, e.g. NOT_FOUND, VALIDATION_ERROR, INTERNAL_ERROR.
          schema:
            type: string
          example: BAD_REQUEST
        - name: path
          in: query
          required: false
          description: >-
            Route template of the request (e.g.
            /api/v1/operations/{operation_id}).
          schema:
            type: string
          example: /api/v1/operations/withdrawal
        - name: requestId
          in: query
          required: false
          description: >-
            The request id you received (X-Request-ID header or
            error.request_id).
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: Page number (starts at 1).
          schema:
            type: string
          example: '1'
        - name: pageSize
          in: query
          required: false
          description: Items per page (1 to 200).
          schema:
            type: string
          example: '50'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        requestId:
                          type: string
                        source:
                          type: string
                        service:
                          type: string
                        method:
                          type: string
                        path:
                          type: string
                        statusCode:
                          type: integer
                        errorCode:
                          type: string
                        errorMessage:
                          type: string
                        latencyMs:
                          type: integer
                        occurredAt:
                          type: string
                  total:
                    type: integer
                  page:
                    type: integer
                  pageSize:
                    type: integer
              examples:
                errors-of-the-last-7-days:
                  summary: Errors of the last 7 days
                  value:
                    items:
                      - id: 5b0f6d7e-2a1c-4f9e-8d3b-7c6a1e2f9a10
                        requestId: 8df2af7bb7e23e393e397ca489c47d54
                        source: partner_api
                        service: kmsk-transaction
                        method: POST
                        path: /api/v1/operations/withdrawal
                        statusCode: 400
                        errorCode: BAD_REQUEST
                        errorMessage: Invalid amount
                        latencyMs: 42
                        occurredAt: '2026-10-05T15:22:14.635000+00:00'
                    total: 1
                    page: 1
                    pageSize: 50
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.