Authorization: Bearer <token>.
Avatar
Get avatar
GET /api/avatar302 redirect. Otherwise, the image binary is returned directly.
Response 200
Binary image data with appropriate Content-Type header (image/jpeg, image/png, image/webp, or image/gif).
Response 302
Redirect to external avatar URL (OAuth avatars).
Response 404
Upload avatar
POST /api/avatarSend the file as
multipart/form-data with the field name avatar.Response 200
Response 400
Delete avatar
DELETE /api/avatarResponse 200
Custom domain
Get custom domain
GET /api/user/custom-domainResponse 200
Response 403
Set custom domain
POST /api/user/custom-domainstring
required
The custom domain to connect (e.g.,
files.example.com).Response 200
Response 409
Delete custom domain
DELETE /api/user/custom-domainResponse 200
Services
List services
GET /api/servicesstring
Filter by service identifier. Currently supported:
DROP.Response 200
Update service
POST /api/servicesstring
required
Service identifier (e.g.,
DROP).string
Service tier (e.g.,
free, pro-lite, pro, enterprise).Whether the user has premium access.
object
Custom access flags for the service.
object
Arbitrary metadata for the service entitlement.
number
Custom storage limit override in bytes.
number
Custom API key limit override.
Response 200
Subscription
Get subscription
GET /api/subscription
