Skip to Content

The UploadResult type of the TypeScript SDK, which uploads.create take or answer.

type UploadResult = {
  blobId: string
  expiresAt: number
  size: number
  type: string
}

Fields

FieldTypeDescription
blobIdstringOpaque upload id (u_…); pass it as an attachment's blobId, or to JMAP as a blobId
expiresAtnumberEpoch seconds after which the upload is treated as gone — reference it before then
sizenumberStored byte length
typestringThe media type recorded for the blob (echoes the request Content-Type)

Used by

MethodWhat it does
uploads.createStage a binary attachment upload

On this page