Upload a file for a task to work on, then check that the upload finished before you attach it to a prompt or task.
Start a file upload
Returns a PUT URL that expires at upload.expiresAt. Upload the file's bytes there with no other credentials, then poll GET /files/{fileId} until its status is uploaded; pass the fileId to a prompt or task to attach it. The file is stored in the key owner's Drive.
Start a file upload › Request Body
nameOriginal filename
namespaceOptional namespace override; defaults from key scope
ownerUserIdOptional execution owner override by user ID. Service keys may set this. Mutually exclusive with ownerUserEmail.
ownerUserEmailOptional execution owner override by user email; resolved within the task key's organization. Service keys may set this. Mutually exclusive with ownerUserId.
contentTypeMIME type for upload signing
sizeBytesOptional expected size in bytes
Start a file upload › Responses
The file record and its upload URL.
fileIdOpaque task file identifier
namespaceResolved namespace
statusTask file upload status
Get a file's upload status
Returns the metadata of a file uploaded with POST /files, with its upload status. A key reads files it created and files owned by the person it acts for.
path Parameters
fileIdThe file's id.
Get a file's upload status › Responses
The file's metadata and upload status.
fileIdnamespacenamecontentTypesizeBytesstatusTask file upload status
drivePathcreatedAtupdatedAt