{
  "object": "file",
  "id": "file_1234",
  "name": "example_file",
  "type": "PDF",
  "contents": {
    "rawText": "This is the raw text content of the file..."
  },
  "createdAt": "2024-01-01T00:00:00Z",
  "updatedAt": "2024-01-01T00:00:00Z"
}

The File object represents a file in Extend. Files are created for each workflow run, and can also be created directly via API for use in evaluation sets.

object
string

The type of the object, in this case it will always be “file”.

id
string

The file ID.

name
string

The name of the file.

type
string

The Extend normalized type of the file. One of IMG PDF TXT DOCX CSV.

contents
object
rawText
string

The raw text content of the file.

createdAt
string

The date and time the file was created.

updatedAt
string

The date and time the file was last updated.

{
  "object": "file",
  "id": "file_1234",
  "name": "example_file",
  "type": "PDF",
  "contents": {
    "rawText": "This is the raw text content of the file..."
  },
  "createdAt": "2024-01-01T00:00:00Z",
  "updatedAt": "2024-01-01T00:00:00Z"
}