API ReferenceFile Management

Share File

POST/api/v1/files/{fileId}/share

Share a file with other users by email. Recipients will receive an email notification and can access the file through their ZeroDrive account.

Headers

AuthorizationstringRequired

Bearer token for authentication

Content-TypestringRequired

application/json

Path Parameters

fileIdstringRequired

The unique identifier of the file to share

Body

emailsarrayRequired

Email addresses of users to share with

rolestringOptional

Permission level for shared users

canSharebooleanOptional

Whether recipients can re-share the file

messagestringOptional

Optional message to include in the share notification

POST/api/v1/files/{fileId}/share
Response