REST API v1, OpenAPI (Scalar) & Webhooks
EÜRwerk provides a fully typed REST API (/api/v1/...) as well as outgoing webhooks to integrate online shops, CRM tools, or custom automations.
1. Interactive OpenAPI 3.1 Documentation (Scalar)
The complete, always up-to-date API specification is available directly in your EÜRwerk instance:
- Interactive interface (Scalar):
/api/docs(or redirect via/docs) - OpenAPI schema (JSON):
/api/openapi.json
All API inputs are strictly validated server-side with Zod; all endpoints are subject to the same multi-tenant isolation (Row-Level Security) and GoBD enshrining rules as the web interface.
2. Managing API Tokens (/account/api-tokens)
- Create personal access tokens under Account → API Tokens with a descriptive name and optional expiration date.
- Security: The plaintext token is displayed exactly once upon creation and is stored in the database exclusively as a cryptographic hash.
- Pass the token in the HTTP header:
http
Authorization: Bearer <YOUR_API_TOKEN>3. Outgoing Webhooks (/account/webhooks)
Notify external systems in real time whenever events occur in EÜRwerk (e.g., invoice.enshrined, invoice.paid, voucher.created):
- Cryptographic signature: Every webhook request is signed using a per-endpoint secret (HMAC-SHA-256), allowing your receiving server to verify the authenticity of the unmodified raw body.
- SSRF protection: EÜRwerk blocks outgoing webhook targets pointing to private or internal networks (loopback, RFC 1918, cloud metadata).
- Retries & delivery log: Failed deliveries are logged and automatically retried.