Other

Create a link a named person can open, so an agent can hand its work to an…

POSThttps://backend.immut.io/api/v1/share-links

Required scope: documents:read

Create a link a named person can open, so an agent can hand its work to an investor or adviser. Recipients are required, because a link without them cannot be opened and naming them is what makes access attributable. An expiry is required too: permanent access to a customer's documents is not something an agent should be able to create by omission.

Request body

Content type: application/json (required)

FieldTypeRequiredDescription
resourceTypestringyesdocument | folder | workspace (required)
resourceIdstringyesthe id of the thing to share (required)
recipientEmailsstringyesarray of the people who may open it (required, at least one)
expiresInDaysstringyes1 to 365 (required). A link an agent creates must expire
accessLevelstringnoview | download (default view)

Responses

StatusMeaning
201Created. url is the link to send. Returns: id, url, resourceType, resourceId, accessLevel, recipientEmails, expiresAt. Each recipient confirms a code sent to their email before the link opens, and access is logged per email address rather than per device.
400BadRequest
401Unauthorized
403Forbidden
429RateLimited

Example

curl -X POST "https://backend.immut.io/api/v1/share-links" \
  -H "Authorization: Bearer $IMMUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"resourceType":"<resourceType>","resourceId":"<resourceId>","recipientEmails":"<recipientEmails>","expiresInDays":"<expiresInDays>","accessLevel":"<accessLevel>"}'

Generated from the immut API contract, version 1.10.0. Machine-readable: this page as markdown · everything in one file · OpenAPI