Files

Mint a public share token for a file

Changed on

Returns a public URL anyone can open (no auth) to view + download the file. Token is 32 random bytes (~256 bits of entropy). Editor role required.

post/api/workspaces/{slug}/files/{fileId}/share

Request

  • Base URL
    https://trydock.ai
  • Auth
    HTTP bearer

Path parameters

slugstring required
fileIdstring required

Response

Share URL

idstring required
urlstring required
createdAtstring date-time required

Example response

{
  "url": "https://trydock.ai/share/files/abc…"
}

Changes