Base URL and HTTPS
All public requests use HTTPS and are relative to:v1 segment is part of the public version contract.
Standard request headers
Unknown or unsupported headers may be rejected with
UNSUPPORTED_HEADER.
JSON request behavior
- Send UTF-8 JSON.
- Request schemas are closed; unknown properties are rejected.
PATCHbodies must contain at least one documented property.- Omitted patch properties remain unchanged.
- A nullable patch property can be cleared with JSON
null. - An empty string is a string value and is not equivalent to
nullor omission. - Enum values are case-sensitive.
- Documented JSON request bodies have a maximum request size of 5 MiB.
phoneNumber would leave it unchanged.
JSON response behavior
Successful resource responses use the schema documented by the operation. Collection responses include items and page metadata defined by their resource-specific page schema. Clients should tolerate unknown response properties because additive fields can be introduced without changing the/v1 path.
Error envelope
Every public API error uses the same top-level envelope:error.code for branching, error.message for diagnostics, and error.requestId for correlation.
Binary responses
Attachment and payroll download endpoints return binary or text content rather than a JSON resource.- Treat the document identifier as opaque.
- Use the response
Content-Typerather than guessing from the endpoint. - Use the response filename header when supplied by the operation.
- Do not parse an error body as a file; inspect the HTTP status and media type first.
- Protect downloaded files after they leave the API boundary.
Request-size limits
The multipart limit applies to the complete encoded body, not only the sum of original file sizes.
