---
title: "Create Epost Account"
method: POST
path: "/companies/{company_id}/epost-accounts"
tags: ["companies"]
---

# Create Epost Account

`POST /companies/{company_id}/epost-accounts`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/epost-accounts`
- Auth: none declared

Add a KLARA e-Post account to a company (accountant/owner). Secret encrypted at rest,
never returned.

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- EpostAccountCreate: ``POST /companies/<id>/epost-accounts`` body (admin).
  - `label` string, required
  - `epost_api_key` string, required
  - `enabled` boolean
  - `poll_batch_cap` integer, nullable

## Response `201`

Successful Response

- EpostAccountResponse: ``GET/POST/PUT /epost-accounts/...`` → ``{"epost_account": ...}``.
  - `epost_account` EpostAccountOut, required: Serialized KLARA e-Post account (no secret).
    - `id` string, required
    - `company_id` string, required
    - `label` string, required
    - `enabled` boolean, required
    - `poll_batch_cap` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
