Admin API / Types
GeneratedFile
ObjectA 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:readThe requirement applies to every field of GeneratedFile unless that field declares its own scopes.
type GeneratedFile implements NodeFields
| Field | Type | Description |
|---|---|---|
createdAt | DateTime! | When the file was requested. |
expiresAt | DateTime! | When the file is deleted. The node resolves null after this instant. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
mimeType | MimeType! | The MIME type of the file, such as text/csv or application/pdf. |
name | String! | The file name of the download. |
rowCount | NonNegativeInt | Data rows in a CSV file. Null for other formats and until the file is READY. |
sizeBytes | NonNegativeInt | The size of the file. Null until the file is READY. |
status | GeneratedFileStatus! | The file state. |
url | URL | 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. |
urlExpiresAt | DateTime | When url stops working. Null when url is null, and null when this client lacks a scope that the file content needs. |