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

# Get Request Details

> Get detailed information about a specific request, including headers, body, application logs, and spans.



## OpenAPI

````yaml https://api.apitally.io/openapi.json get /v1/apps/{app_id}/request-logs/{request_uuid}
openapi: 3.1.0
info:
  title: Apitally API
  version: 1.0.0
servers:
  - url: https://api.apitally.io
security: []
paths:
  /v1/apps/{app_id}/request-logs/{request_uuid}:
    get:
      tags:
        - Request logs
      summary: Get Request Details
      description: >-
        Get detailed information about a specific request, including headers,
        body, application logs, and spans.
      operationId: get_request_details_v1_apps__app_id__request_logs__request_uuid__get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: integer
            minimum: 1
            description: App ID
            title: App Id
          description: App ID
        - name: request_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Request UUID
            title: Request Uuid
          description: Request UUID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRequestDetailsResponse'
        '404':
          description: App or request log not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    GetRequestDetailsResponse:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: Timestamp of the request
        request_uuid:
          type: string
          format: uuid
          title: Request Uuid
          description: Unique identifier for the request
        env:
          type: string
          title: Env
          description: Environment
          examples:
            - prod
        consumer:
          anyOf:
            - type: string
            - type: 'null'
          title: Consumer
          description: Consumer identifier
          examples:
            - user-123
        method:
          type: string
          title: Method
          description: HTTP method
          examples:
            - GET
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
          description: Request path
          examples:
            - /v1/users/{user_id}
        url:
          type: string
          title: Url
          description: Request URL
          examples:
            - https://api.example.com/v1/users/1
        status_code:
          type: integer
          title: Status Code
          description: HTTP response status code
          examples:
            - 200
        request_size_bytes:
          type: integer
          title: Request Size Bytes
          description: Size of the request in bytes
        response_size_bytes:
          type: integer
          title: Response Size Bytes
          description: Size of the response in bytes
        response_time_ms:
          type: integer
          title: Response Time Ms
          description: Response time in milliseconds
        client_ip:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Ip
          description: Client IP address
          examples:
            - 203.45.123.67
        client_country_iso_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Country Iso Code
          description: ISO code of the client's country based on the IP address
          examples:
            - US
        request_headers:
          items:
            prefixItems:
              - type: string
              - type: string
            type: array
            maxItems: 2
            minItems: 2
          type: array
          title: Request Headers
          description: Request headers as name-value pairs
        response_headers:
          items:
            prefixItems:
              - type: string
              - type: string
            type: array
            maxItems: 2
            minItems: 2
          type: array
          title: Response Headers
          description: Response headers as name-value pairs
        request_body_json:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Body Json
          description: Request body as a JSON string, if applicable
        response_body_json:
          anyOf:
            - type: string
            - type: 'null'
          title: Response Body Json
          description: Response body as a JSON string, if applicable
        trace_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Trace Id
          description: Trace ID as a 32-character hex string
        exception:
          anyOf:
            - $ref: '#/components/schemas/ExceptionItem'
            - type: 'null'
          description: Exception details, if an error occurred
        logs:
          items:
            $ref: '#/components/schemas/ApplicationLogItem'
          type: array
          title: Logs
          description: Application log entries associated with this request
        spans:
          items:
            $ref: '#/components/schemas/SpanItem'
          type: array
          title: Spans
          description: Spans associated with this request
      type: object
      required:
        - timestamp
        - request_uuid
        - env
        - consumer
        - method
        - path
        - url
        - status_code
        - request_size_bytes
        - response_size_bytes
        - response_time_ms
        - client_ip
        - client_country_iso_code
        - request_headers
        - response_headers
        - request_body_json
        - response_body_json
        - trace_id
        - exception
        - logs
        - spans
      title: GetRequestDetailsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExceptionItem:
      properties:
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
          description: Exception type
          examples:
            - KeyError
            - RuntimeError
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: Exception message
        stacktrace:
          anyOf:
            - type: string
            - type: 'null'
          title: Stacktrace
          description: Exception stacktrace
        sentry_event_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Sentry Event Id
          description: Sentry event ID, if captured
      type: object
      required:
        - type
        - message
        - stacktrace
        - sentry_event_id
      title: ExceptionItem
    ApplicationLogItem:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: Timestamp of the log entry
        message:
          type: string
          title: Message
          description: Log message
        level:
          anyOf:
            - type: string
            - type: 'null'
          title: Level
          description: Log level
          examples:
            - INFO
            - ERROR
        logger:
          anyOf:
            - type: string
            - type: 'null'
          title: Logger
          description: Logger name
        file:
          anyOf:
            - type: string
            - type: 'null'
          title: File
          description: Source file name
        line:
          anyOf:
            - type: integer
            - type: 'null'
          title: Line
          description: Source file line number
      type: object
      required:
        - timestamp
        - message
        - level
        - logger
        - file
        - line
      title: ApplicationLogItem
    SpanItem:
      properties:
        span_id:
          type: string
          title: Span Id
          description: Span ID as a hex string
        parent_span_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Span Id
          description: Parent span ID as a hex string
        name:
          type: string
          title: Name
          description: Span name
        kind:
          type: string
          title: Kind
          description: Span kind
          examples:
            - CLIENT
            - SERVER
        start_time_ns:
          type: integer
          title: Start Time Ns
          description: Start time as Unix timestamp in nanoseconds
        end_time_ns:
          type: integer
          title: End Time Ns
          description: End time as Unix timestamp in nanoseconds
        duration_ns:
          type: integer
          title: Duration Ns
          description: Duration in nanoseconds
        status:
          type: string
          title: Status
          description: Span status
          examples:
            - OK
            - ERROR
            - UNSET
        attributes:
          additionalProperties:
            type: string
          type: object
          title: Attributes
          description: Span attributes
      type: object
      required:
        - span_id
        - parent_span_id
        - name
        - kind
        - start_time_ns
        - end_time_ns
        - duration_ns
        - status
        - attributes
      title: SpanItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Api-Key

````