{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elocuenti-com/json-schema/elocuenti-com-request-record-response-schema.json",
  "title": "RequestRecordResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elocuenti-com-audit-api-openapi.yml#/components/schemas/RequestRecordResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/RequestRecord"
    },
    "request_id": {
      "type": "string",
      "description": "The identifier of this request. Give it to support if you need help.",
      "title": "Request Id"
    }
  },
  "required": [
    "data",
    "request_id"
  ],
  "$defs": {
    "RequestRecord": {
      "type": "object",
      "properties": {
        "request_id": {
          "type": "string",
          "description": "The identifier of the call: the one you asked for.",
          "title": "Request Id"
        },
        "method": {
          "type": "string",
          "description": "The HTTP method of the call.",
          "title": "Method"
        },
        "path": {
          "type": "string",
          "description": "The operation that was called, as the reference writes it, with the ids as `{placeholders}`: the ids you sent are not repeated.",
          "title": "Path"
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status the API answered.",
          "title": "Status"
        },
        "code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The `code` of the error the API answered, or `null` if the call went well. Every code is explained in the error guide.",
          "title": "Code"
        },
        "latency_ms": {
          "type": "integer",
          "description": "How long the API took to answer, in milliseconds.",
          "title": "Latency Ms"
        },
        "created_at": {
          "type": "string",
          "description": "When the call was received (UTC, ISO 8601).",
          "title": "Created At"
        }
      },
      "required": [
        "request_id",
        "method",
        "path",
        "status",
        "code",
        "latency_ms",
        "created_at"
      ],
      "description": "How one call to the API went.",
      "title": "RequestRecord"
    }
  }
}