Get upload download URL

uploadDownloadUrl(input: UploadInput!): DownloadUrl!

Requires project.uploads.read.

Arguments

ArgumentTypeRequired
inputUploadInput!Yes

Input fields

input

UploadInput

FieldTypeRequiredDescription
projectReferenceString!YesProject UUID, slug or configured domain.
uploadReferenceString!YesUpload UUID or project-relative upload path.

Response

Returns DownloadUrl!. Open the type for its fields and nested types.

FieldTypeDescription
signedUrlString!Temporary signed URL that downloads the upload.
expiresAtDateTime!Expiry time, RFC 3339. Private uploads expire within 30 minutes, public ones within 24 hours.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query UploadDownloadURL($input: UploadInput!) {
  uploadDownloadUrl(input: $input) {
    expiresAt
    signedUrl
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "uploadReference": "example"
  }
}