---
title: "Create log"
method: POST
path: "/logs/{companyId}"
tags: ["Logs"]
---

# Create log

`POST /logs/{companyId}`

Reports a single execution event, warning or error observed by your integration while interacting with the Embat API, so Embat's support team can diagnose integration issues. Log delivery is best-effort: the endpoint returns `204` as soon as the request is accepted, and any failure while recording the log afterwards is not reported back to the caller.

## Path parameters

- `companyId` string, required

## Request body

- PostLogRequestSchema
  - `erp` 'netsuite' | 'sageX3' | 'odoo' | 'businessCentral' | 'navision' | 'libra' | 'distritoK' | 'fo' | 'zoho' | 'holded' | 'dynamicsAx' | 'a3' | 'businessOne' | 'openbravo' | 'sage200' | 'sage50' | 'r3' | 'ekon' | 'm3Rosetta' | 'sageIntacct' | 'datev', required
  - `erpVersion` string, required — Version of the ERP system that originated the log.
  - `connectorVersion` string, required — Version of the integration that reported the log.
  - `level` 'INFO' | 'ERROR' | 'WARNING', required
  - `code` 'INFO' | 'WARNING' | 'ERROR' | 'AUTHORIZATION_INFO' | 'AUTHORIZATION_WARNING' | 'AUTHORIZATION_ERROR' | 'ACCOUNTINGS_ACCOUNTS_INFO' | 'ACCOUNTINGS_ACCOUNTS_WARNING' | 'ACCOUNTINGS_ACCOUNTS_ERROR' | 'ACCOUNTINGS_ENTRIES_INFO' | 'ACCOUNTINGS_ENTRIES_WARNING' | 'ACCOUNTINGS_ENTRIES_ERROR' | 'ATTRIBUTES_INFO' | 'ATTRIBUTES_WARNING' | 'ATTRIBUTES_ERROR' | 'CONTACTS_INFO' | 'CONTACTS_WARNING' | 'CONTACTS_ERROR' | 'OPERATIONS_INFO' | 'OPERATIONS_WARNING' | 'OPERATIONS_ERROR' | 'PAYMENTS_INFO' | 'PAYMENTS_WARNING' | 'PAYMENTS_ERROR', required
  - `message` string, required — Free-text description of the event, warning or error being reported.

## Response `204`

Successful Response

## Other responses

- `401` — Unauthorized. The bearer token is missing, invalid or expired.
- `404` — Not found. The requested resource or `companyId` does not exist.
- `422` — Validation Error

---

[API](https://skmtc.net/embat/apis/embat-api.md) · [All operations](https://skmtc.net/embat/apis/embat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/embat/embat-api/revisions/36ca48bf4489/schema)
