File

Metadata

You can fetch detailed metadata for any file to inspect its type, size, status, and creation time. This is useful for verifying uploads, checking file status, or displaying details in your application.

The file metadata includes:

  • fileType — The MIME type of the file, such as image/png or application/pdf.
  • size — The size of the file in bytes.
  • status — The current status of the file (for example, uploaded or processing).
  • createdAt — The timestamp when the file was created.

Depending on what information you have, you can fetch file metadata in two ways:

  • By file ID
  • By namespace, location, and file name

You can get this information using the SDK or a direct API request as below::