Skip to main content
All endpoints on this page require authentication via Authorization: Bearer <token>.

Avatar

Get avatar

GET /api/avatar
Returns the user’s avatar image. If the avatar is an external URL (e.g., from an OAuth provider), the response is a 302 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/avatar
Uploads a new avatar image. The old avatar is automatically deleted.
Send the file as multipart/form-data with the field name avatar.

Response 200

Response 400


Delete avatar

DELETE /api/avatar
Removes the user’s avatar.

Response 200


Custom domain

Custom domains are only available on the enterprise tier for the DROP service.

Get custom domain

GET /api/user/custom-domain
Returns the current custom domain configuration.

Response 200

Response 403


Set custom domain

POST /api/user/custom-domain
Connects a custom domain to the user’s DROP service. The domain starts as unverified - DNS configuration is required.
string
required
The custom domain to connect (e.g., files.example.com).

Response 200

Response 409


Delete custom domain

DELETE /api/user/custom-domain
Disconnects the custom domain.

Response 200


Services

List services

GET /api/services
Returns the user’s service entitlements. Optionally filter by service.
string
Filter by service identifier. Currently supported: DROP.

Response 200


Update service

POST /api/services
Creates or updates a service entitlement for the current user.
string
required
Service identifier (e.g., DROP).
string
Service tier (e.g., free, pro-lite, pro, enterprise).
boolean
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
Returns the user’s current Polar subscription details for the DROP service. Prices are converted to PLN.

Response 200

Response 404