API reference
POSTRequires Bearer token
Find or create a client by email
/api/clients/ensure
Submit `/api/clients/ensure`. Authenticated routes need `Authorization: Bearer {token}` from `POST /api/v1/login`.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
email Required | string | Client email. e.g. "legal@acme.test" |
name | string | Used when the client is created. e.g. "ACME SA" |
Responses
| Status | Meaning |
|---|---|
| 500 | See the example response. |