get_document_url
Generates a URL to retrieve a document's contents, returning an S3 presigned link or an optional short link with redemption limits.
Instructions
Get document content url
Returns a URL for the document's contents. Direct S3 presigned URLs expire after 48 hours by default.
With the Shortlinks Add-On Module, use format=short&maxUses=1 for a single-redemption short link,
or set maxUses to a larger positive integer to allow that many redemptions. Omitting maxUses
permits unlimited redemptions during the short link's validity period.
For usage-limited short links, duration controls the short link's validity in hours.
Each successful redemption generates a fresh S3 presigned URL valid for 20 seconds.
The S3 request must start before expiry; a download already in progress can continue afterward.
The S3 URL itself can be reused during those 20 seconds.
FormKiQ operation: GetDocumentUrl. API group: core. Access: read.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"documentId": "<documentId>"
},
"name": "get_document_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Return a shortlink URL when set to `short`; available as an Add-On Module | |
| inline | No | Request inline delivery. S3-backed SVG documents identified by content type or filename are always served as attachments. | |
| siteId | No | Site Identifier | |
| maxUses | No | Maximum number of successful short-link redemptions. Requires `format=short` and the Shortlinks Add-On Module. Set to `1` for a single redemption; omit for unlimited redemptions during the short link's validity period. | |
| duration | No | Indicates the number of hours request is valid for | |
| shareKey | No | Share Identifier | |
| accelerate | No | Use S3 Transfer Acceleration for presigned transfer URLs targeting the FormKiQ documents bucket, including internal uploads of inline content. Requires EnableS3TransferAcceleration=true on the deployment; additional transfer charges apply. Defaults to false. Has no effect on inline content returned by the API. Unavailable acceleration, external download URLs, and watermarked downloads return HTTP 400. | |
| artifactId | No | Artifact Document Identifier | |
| documentId | Yes | Document Identifier | |
| versionKey | No | Version Key (version key required URL encoding) | |
| bypassWatermark | No | Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) |