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

# List your request history

> Newest first. Scoped to the authenticated account — there is no parameter for reading another account's history.



## OpenAPI

````yaml /api-reference/logs.json get /api/logs
openapi: 3.1.0
info:
  title: Truscan Logs
  version: 1.0.0
  description: >-
    Request history. The edge records every authenticated API call and this
    service serves it back to the account that made it. Bodies are never stored
    — only method, path, status, duration and source. Every response uses the
    {success, result, message} envelope except where noted.
servers:
  - url: https://api.truscan.co
    description: Production
security: []
tags:
  - name: logs
    description: Request history
paths:
  /api/logs:
    get:
      tags:
        - logs
      summary: List your request history
      description: >-
        Newest first. Scoped to the authenticated account — there is no
        parameter for reading another account's history.
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 200
          description: Clamped, not rejected, above the maximum.
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: status
          in: query
          schema:
            type: integer
          description: Exact HTTP status to filter by.
        - name: method
          in: query
          schema:
            type: string
          description: HTTP method to filter by.
        - name: q
          in: query
          schema:
            type: string
          description: Case-insensitive substring match on the path.
      responses:
        '200':
          description: One page of history.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      result:
                        $ref: '#/components/schemas/Page'
        '401':
          description: Missing or invalid credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: History store unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    Envelope:
      type: object
      required:
        - success
        - result
        - message
      properties:
        success:
          type: boolean
        result: {}
        message:
          type: string
    Page:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: '#/components/schemas/Entry'
        has_more:
          type: boolean
          description: True when another page exists past this offset.
    Error:
      type: object
      required:
        - success
        - result
        - message
      properties:
        success:
          type: boolean
          const: false
        result:
          type: object
          properties:
            code:
              type: string
              description: Stable identifier to branch on. Match this, never the message.
        message:
          type: string
          description: Written for a person and safe to display.
    Entry:
      type: object
      properties:
        id:
          type: string
        method:
          type: string
          description: HTTP method.
        path:
          type: string
          description: Request path. Query strings are not stored.
        status:
          type: integer
          description: HTTP status the caller received.
        duration_ms:
          type: integer
          description: >-
            Measured at the edge, so it includes the upstream service and the
            proxy hop.
        source:
          type: string
          enum:
            - api
            - session
          description: api for a tru_ key, session for the dashboard.
        ip:
          type: string
        user_agent:
          type: string
        created_at:
          type: string
          format: date-time
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        A dashboard session JWT or a tru_ API key. Both work on every protected
        route.

````