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

# Get Application Demo Logs

> Collect a bounded log tail from one of the demo's pods. An empty pod resolves to the demo's own pod. tail_lines defaults to 200 and is capped at 2000. A malformed workspace_id is reported as the same 404 as an unknown demo. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /api/v1/org/applications/{application_id}/demos/{workspace_id}/logs
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/org/applications/{application_id}/demos/{workspace_id}/logs:
    get:
      tags:
        - Applications API
      summary: Get Application Demo Logs
      description: >-
        Collect a bounded log tail from one of the demo's pods. An empty pod
        resolves to the demo's own pod. tail_lines defaults to 200 and is capped
        at 2000. A malformed workspace_id is reported as the same 404 as an
        unknown demo. A browser session twin is mounted at the same path without
        the /api/v1 prefix (cookie authentication).
      operationId: >-
        get_application_demo_logs_api_v1_org_applications__application_id__demos__workspace_id__logs_get
      parameters:
        - in: path
          name: application_id
          required: true
          schema:
            title: Application Id
            type: string
        - in: path
          name: workspace_id
          required: true
          schema:
            format: uuid
            type: string
            title: Workspace Id
        - in: query
          name: pod
          required: false
          schema:
            title: Pod
            type: string
        - in: query
          name: container
          required: false
          schema:
            title: Container
            type: string
        - in: query
          name: tail_lines
          required: false
          schema:
            title: Tail Lines
            type: integer
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ankra-Organisation-Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoLogsResponse'
          description: Successful Response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: '"''tail_lines'' must be a positive integer."'
        '401':
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: Not found ("Unknown demo for this application")
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    DemoLogsResponse:
      description: >-
        A bounded tail of one demo container's output. message is a user-facing
        explanation when no logs could be read; lines is then empty.
      properties:
        container:
          type: string
        lines:
          items:
            type: string
          type: array
        message:
          type: string
        pod_name:
          type: string
        truncated:
          type: boolean
      required:
        - pod_name
        - container
        - lines
        - truncated
        - message
      type: object
    DemoDetailError:
      description: >-
        The FastAPI-style detail envelope the demo routes use for
        400/403/404/409/502 responses.
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````