---
title: "Ingest Request Logs"
method: POST
path: "/internal/request-logs"
tags: ["request logs"]
---

# Ingest Request Logs

`POST /internal/request-logs`

## Request

- Base URL: `https://api.tickwire.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tickwire.io/internal/request-logs`
- Auth: none declared

Store a batch of gateway records (internal).

## Headers

- `X-Internal-Token` string, nullable

## Request body

- LogBatch
  - `records` LogRecord[], required
    - `id` string, required
    - `tenant_id` string, required
    - `request_id` string, nullable
    - `key_id` string, nullable
    - `kind` string
    - `method` string, required
    - `path` string, required
    - `route` string, required
    - `account_id` string, nullable
    - `status` integer, required
    - `error_code` string, nullable
    - `latency_ms` integer, nullable
    - `api_version` string, nullable
    - `rate_bucket` string, nullable
    - `outcome` string, nullable
    - `client_ip` string, nullable
    - `user_agent` string, nullable
    - `request_excerpt` string, nullable
    - `response_excerpt` string, nullable
    - `created_at` string, nullable

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tickwire/apis/tickwire-control-plane.md) · [All operations](https://skmtc.dev/tickwire/apis/tickwire-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/tickwire/apis/tickwire-control-plane/revisions/a4d1386fa23e?raw)
