Mutation
mutation CreateWorkspaceFileDownloadUrl($input: CreateWorkspaceFileDownloadUrlInput!) {
createWorkspaceFileDownloadUrl(input: $input) {
workspaceFileDownloadUrl {
downloadUrl
expiresAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workspaceFileId": "id"
}
}Response
{
"data": {
"createWorkspaceFileDownloadUrl": {
"workspaceFileDownloadUrl": {
"downloadUrl": "string",
"expiresAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createWorkspaceFileDownloadUrl
Generate a fresh download URL for a workspace file. For PRIVATE files, returns a short-lived pre-signed URL (valid for 3 minutes); for PUBLIC files, returns a permanent CDN URL with no expiry. Call this whenever you need to give a user access to a file rather than caching URLs, as private URLs expire quickly.
MUTATION
createWorkspaceFileDownloadUrl(input: CreateWorkspaceFileDownloadUrlInput!): CreateWorkspaceFileDownloadUrlOutput!Arguments
input
required
workspaceFileDownloadUrl
error
Mutation
mutation CreateWorkspaceFileDownloadUrl($input: CreateWorkspaceFileDownloadUrlInput!) {
createWorkspaceFileDownloadUrl(input: $input) {
workspaceFileDownloadUrl {
downloadUrl
expiresAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workspaceFileId": "id"
}
}Response
{
"data": {
"createWorkspaceFileDownloadUrl": {
"workspaceFileDownloadUrl": {
"downloadUrl": "string",
"expiresAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

