---
title: "Post a log entry"
method: POST
path: "/logs"
tags: ["logs"]
---

# Post a log entry

`POST /logs`

Optional endpoint to add a log entry via post instead as message

## Request body

- Log
  - `service` string, required — Name of the service
  - `timeStamp` string, required
  - `nameSpace` string, required
  - `payload` object, required
    - `tenant` string
    - `source` string
    - `object` string
    - `action` string
    - `subject` string
    - `details` string

## Response `201`

The newly created Log.

- Log
  - `service` string, required — Name of the service
  - `timeStamp` string, required
  - `nameSpace` string, required
  - `payload` object, required
    - `tenant` string
    - `source` string
    - `object` string
    - `action` string
    - `subject` string
    - `details` string

## Other responses

- `400` — Invalid message format. Message must be in the provided format.
- `401` — Missing authorization header. Login via the IAM to receive a token.

---

[API](https://skmtc.dev/openintegrationhub/apis/audit-log.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/audit-log/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/audit-log/revisions/30e8a217f4b5/schema)
