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

# Get Logs

> Fetch runtime logs for an app.

Ingests from Cloud Logging into Postgres and serves from DB.
Returns 503 if GCP is not configured (Phase 1 mode).



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/logs
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/logs:
    get:
      tags:
        - logs
      summary: Get Logs
      description: |-
        Fetch runtime logs for an app.

        Ingests from Cloud Logging into Postgres and serves from DB.
        Returns 503 if GCP is not configured (Phase 1 mode).
      operationId: logs_get_logs
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 100
            title: Limit
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Duration (e.g. '1h', '30m', '2d') or ISO 8601 timestamp
            title: Since
          description: Duration (e.g. '1h', '30m', '2d') or ISO 8601 timestamp
        - name: severity
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 'Exact severity: DEFAULT, DEBUG, INFO, WARNING, ERROR, CRITICAL'
            title: Severity
          description: 'Exact severity: DEFAULT, DEBUG, INFO, WARNING, ERROR, CRITICAL'
        - name: service
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter logs to a specific service name
            title: Service
          description: Filter logs to a specific service name
        - name: cron
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter logs to a specific cron job name
            title: Cron
          description: Filter logs to a specific cron job name
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 500
              - type: 'null'
            description: Case-insensitive substring search on log messages
            title: Search
          description: Case-insensitive substring search on log messages
        - name: env
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter logs by environment (dev, prod)
            title: Env
          description: Filter logs by environment (dev, prod)
        - name: deployment
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter logs by deployment ID, or 'latest' for the app's latest
              deploy
            title: Deployment
          description: >-
            Filter logs by deployment ID, or 'latest' for the app's latest
            deploy
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Opaque cursor from the previous logs response
            title: Cursor
          description: Opaque cursor from the previous logs response
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogsResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    LogsResponse:
      properties:
        logs:
          items:
            $ref: '#/components/schemas/LogEntry'
          type: array
          title: Logs
        total:
          type: integer
          title: Total
        app_name:
          type: string
          title: App Name
        limit:
          type: integer
          title: Limit
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
          default: false
      type: object
      required:
        - logs
        - total
        - app_name
        - limit
      title: LogsResponse
      description: Response for the logs endpoint.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    LogEntry:
      properties:
        timestamp:
          type: string
          title: Timestamp
        severity:
          type: string
          title: Severity
        message:
          type: string
          title: Message
        deployment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Deployment Id
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
        labels:
          anyOf:
            - $ref: '#/components/schemas/JsonObject-Output'
            - type: 'null'
        service_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Name
        cron_job_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Cron Job Name
        deploy_context:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Deploy Context
        severity_class:
          anyOf:
            - type: string
            - type: 'null'
          title: Severity Class
        lifecycle_noise:
          type: boolean
          title: Lifecycle Noise
          default: false
      type: object
      required:
        - timestamp
        - severity
        - message
      title: LogEntry
      description: A single log entry from Cloud Logging.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
    JsonObject-Output:
      additionalProperties:
        $ref: '#/components/schemas/JsonValue-Output'
      type: object
    JsonValue-Output:
      anyOf:
        - type: boolean
        - type: integer
        - type: number
        - type: string
        - items:
            $ref: '#/components/schemas/JsonValue-Output'
          type: array
        - additionalProperties:
            $ref: '#/components/schemas/JsonValue-Output'
          type: object
        - type: 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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