Retrieves metadata for a specific uploaded file.
Usage Example
The Authorization header expects a Bearer token. Use an MOONSHOT_API_KEY as the token. This is a server-side secret key. Generate one on the API keys page in your dashboard.
The file identifier
File metadata
Unique file identifier
Object type
"file"
File size in bytes
Unix timestamp when the file was created
Original file name
Purpose used when uploading the file. file-extract: extract file contents; image: upload images for vision understanding; video: upload videos for video understanding
file-extract, image, video Processing status of the file
"ok"
Additional status details when processing fails or returns warnings