---
title: "Create Logs"
method: POST
path: "/logs"
tags: ["logs"]
---

# Create Logs

`POST /logs`

## Request

- Base URL: `https://api.noma.co.ke` (the document declares no server; this is the origin it was published from)
- URL: `https://api.noma.co.ke/logs`
- Auth: HTTP bearer

## Request body

- LogBatch
  - `logs` LogCreate[], required
    - `event` string, required
    - `occurred_at` string, date-time, required
    - `user_id` integer, nullable
    - `actor_type` string, nullable
    - `data` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation failed.

---

[API](https://skmtc.dev/noma/apis/driver-api.md) - [All operations](https://skmtc.dev/noma/apis/driver-api/llms.txt) - [OpenAPI document](https://skmtc.dev/noma/apis/driver-api/revisions/17d3d1a6929f?raw)
