Upload user document
POST/v1/organizations/:orgId/tenants/:tenantId/users/:userId/documents/upload
Uploads a document file (image or PDF) for a user. Accepts standard base64-encoded file.
Creates the document record and returns the CDN URL. Requires S3_BUCKET_NAME; returns 503 if not configured.
Allowed content types: image/jpeg, image/png, image/webp, application/pdf
Max size: 5 MB
Request
Responses
- 201
- 400
- 404
- 503
Document uploaded and record created
Invalid input
Resource not found
Storage not configured