For the complete documentation index, see llms.txt. This page is also available as Markdown.

Prepare File Upload (User)

GraphQL endpoint: /user

Prepares a file upload for the calling user. Returns a presigned upload URL to PUT the file to and the file key to save; the key is randomized per request.

Query

mutation (
  $fileName: String!
  $contentType: String!
) {
  prepareFileUpload(
    fileName: $fileName
    contentType: $contentType
  ) {
    uploadUrl
    fileKey
  }
}

Variables

Response

Last updated