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

# Get raw HTTP request logs



## OpenAPI

````yaml /api-reference/openapi.json get /apps/{app_id}/http-logs
openapi: 3.0.0
info:
  title: Shard Cloud API
  description: >-
    API reference for Shard Cloud's authenticated management endpoints — Apps,
    Databases, VMs, Custom Docker Images, and project-level Alerts & Backups.
    Every endpoint on this page requires a JWT bearer token (see Authentication
    below). CDN endpoints have their own reference under the CDN tab.
  version: 2.0.0
servers:
  - url: https://shardcloud.app/api
    description: API base path
security: []
tags:
  - name: Databases
    description: PostgreSQL, MySQL, MongoDB, and Redis database services.
  - name: Apps
    description: Web application deployment, files, domains, and configuration.
  - name: VMs
    description: Full Linux virtual machines with SSH access.
  - name: Custom Images
    description: User-built Docker images, deployable straight to an App.
  - name: Project
    description: >-
      Resource alerts and backups — shared across App, Database, and VM
      projects.
paths:
  /apps/{app_id}/http-logs:
    get:
      tags:
        - Apps
      summary: Get raw HTTP request logs
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: start_time
          in: query
          required: true
          schema:
            type: string
          description: Hours ago to start the window from (e.g. 24).
        - name: end_time
          in: query
          required: true
          schema:
            type: string
          description: Hours ago to end the window at (e.g. 0 for now).
        - name: cursor
          in: query
          schema:
            type: string
          description: Cursor from a previous response's next_cursor, for pagination.
      responses:
        '200':
          description: Page of HTTP log entries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpLogsPage'
        '400':
          description: Invalid time range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - JWTAuth: []
components:
  schemas:
    HttpLogsPage:
      type: object
      properties:
        logs:
          type: array
          items:
            $ref: '#/components/schemas/HttpLogEntry'
        next_cursor:
          type: string
          nullable: true
        has_more:
          type: boolean
        count:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: string
    HttpLogEntry:
      type: object
      properties:
        time:
          type: string
          format: date-time
        duration_ms:
          type: integer
          format: int64
        error:
          type: string
        status_code:
          type: integer
        route:
          type: string
        country:
          type: string
        state:
          type: string
        address:
          type: string
        user_agent:
          type: string
        browser:
          type: string
        is_mobile:
          type: boolean
        ip:
          type: string
  securitySchemes:
    JWTAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Send your API token (Dashboard → Settings → API Token) as
        `Authorization: Bearer <token>`.

````