Skip to content
Pile
Esc
navigateopen⌘Jpreview

Create document share

POST/workspaces/{organizationId}/documents/{id}/share
Path parameters
organizationIdstringrequired
idstringrequired
Request body
application/json
includeChildrenboolean
expiresAtstring
Responses
201Share link created
tokenstringrequired
documentIdstringrequired
includeChildrenbooleanrequired
createdAtstringrequired
expiresAtstring | nullrequired
404Document not found
Try it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "/workspaces/string/documents/string/share" \
  -H "Content-Type: application/json" \
  -d '{
  "includeChildren": true,
  "expiresAt": "string"
}'
Response
{
  "token": "string",
  "documentId": "string",
  "includeChildren": true,
  "createdAt": "string",
  "expiresAt": "string"
}