Admin API / Types

GeneratedFile

Object

A file that the server generated for the caller: an export or a shipment document. It lives 7 days.

Requires a client key with one of these scopes: admin:account:read

The requirement applies to every field of GeneratedFile unless that field declares its own scopes.

type GeneratedFile implements Node

Fields

FieldTypeDescription
createdAtDateTime!
When the file was requested.
expiresAtDateTime!
When the file is deleted. The node resolves null after this instant.
idID!
A globally unique ID. Treat this value as an opaque string.
mimeTypeMimeType!
The MIME type of the file, such as text/csv or application/pdf.
nameString!
The file name of the download.
rowCountNonNegativeInt
Data rows in a CSV file. Null for other formats and until the file is READY.
sizeBytesNonNegativeInt
The size of the file. Null until the file is READY.
statusGeneratedFileStatus!
The file state.
urlURL
A signed download URL, minted on each read and valid until urlExpiresAt. Null unless READY. Throws FORBIDDEN unless this client holds every scope that the file content needs; extensions.requiredScopes lists the missing scopes. Read it immediately before use.
urlExpiresAtDateTime
When url stops working. Null when url is null, and null when this client lacks a scope that the file content needs.

Returned by