FileOut
objectObject
Constant value:
fileDefault value:
fileidIdrequired
filenameFilenamerequired
sizeSizerequired
content_typeContent Typerequired
created_atstring<date-time>required
download_urlDownload Urlnullable
A link to download the file's content, signed afresh on every read and valid for 60 minutes (until download_url_expires_at). Fetch the file again for a new link. null when a link cannot be made right now.
download_url_expires_atstring<date-time>nullable
When download_url stops working.
expires_atstring<date-time>nullable
When the file expires: from then on it can no longer be read or used, and its content is deleted. null when it never expires — a file sent in a message is kept with that conversation, a file a generation uses is kept, and a generation's output is kept. An uploaded file expires 30 days after its upload unless it is sent in a message or used by a generation first.
FileOut
{
"object": "file",
"id": "string",
"filename": "string",
"size": 0,
"content_type": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"download_url": "string",
"download_url_expires_at": "2024-07-29T15:51:28.071Z",
"expires_at": "2024-07-29T15:51:28.071Z"
}