Docs

Add File Link

POST /drives/{eventId}/files/{fileId}/links

POST/drives/{eventId}/files/{fileId}/links

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Creates a public shareable link for a file. Public links allow unauthenticated access via the Public endpoints (GET /drives/{driveId}/links/{linkId}). Requires File.* (admin) permission on the file.

Path Parameters

FieldTypeRequiredDescription
driveIdGuidRequiredThe event ID.
fileIdGuidRequiredThe file ID.

Request Body

FieldTypeRequiredDescription
namestringRequiredA display name for the link.
permissionsarrayRequiredPermissions granted to anyone who accesses the link (e.g., `["File.Read"]`).

Response

201 Created — No response body.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token, or caller does not have File.* on this file.
NOT_FOUND404File not found.