Skip to Content

File object

Description of a single File object.

Attributes

  • id string
    Unique File ID.
  • object string
    Object type, always file.
  • bytes int
    File size in bytes.
  • created_at int
    File creation time as a Unix timestamp (seconds).
  • filename string
    File name.
  • purpose string
    Upload purpose. Only storage is supported for file uploads.
  • status string
    Processing status: success or processed.

Example

{ "id": "file-abc123", "object": "file", "bytes": 140, "created_at": 1613779121, "filename": "productImage.png", "purpose": "storage", }
Last updated on