API caller identity
The v1 contract uses a workspace API key in the Authorization bearer header. Generate keys using a cryptographically secure source, show the secret only at creation and store a verification hash. Record the key identifier, workspace, permissions, creation time, expiry and revocation time separately from the secret. Never place keys in query strings or documentation examples. Require a valid key and enforce workspace ownership before reading a job, PDF or delivery record. Use these permissions as the server-side access model:
A role may contain several permissions. No role can cross workspace boundaries. Return 401 for invalid credentials, 403 for an unauthorized action and 404 for a resource outside the workspace. Validate permissions on every request, including polling, pagination, download and email retry. These are implementation requirements for the v1 contract; the current HTTP registration does not establish this access model.