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

# Get one API request, including its error body



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json get /request-logs/{id}
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
  - name: request-logs
    description: API request log
paths:
  /request-logs/{id}:
    get:
      tags:
        - request-logs
      summary: Get one API request, including its error body
      operationId: RequestLogsController_get
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: X-Organization-Id
          in: header
          description: >-
            Required for Supabase session auth (owner or admin). Ignored with an
            API key.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLogDetailDto'
        '404':
          description: Not found in this organization
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    RequestLogDetailDto:
      type: object
      properties:
        id:
          type: string
          description: También es el header X-Request-Id
        createdAt:
          type: string
        method:
          type: string
        route:
          type: string
          example: /invoices/:uuid
        path:
          type: string
        statusCode:
          type: number
        durationMs:
          type: number
        environment:
          type: string
          enum:
            - sandbox
            - production
          nullable: true
        channel:
          type: object
          nullable: true
        authFailure:
          type: object
          nullable: true
        apiKey:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/RequestLogApiKeyDto'
        ip:
          type: object
          nullable: true
        userAgent:
          type: object
          nullable: true
        errorBody:
          type: object
          nullable: true
          description: >-
            Cuerpo del error (solo status ≥ 400), con RFC enmascarados y máximo
            2 KB
      required:
        - id
        - createdAt
        - method
        - route
        - path
        - statusCode
        - durationMs
    RequestLogApiKeyDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        keyPreview:
          type: string
          example: ...a1b2
      required:
        - id
        - name
        - keyPreview
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API Key for authentication (format: sk_...)'
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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