Properties
| Name | Type | Description |
|---|---|---|
| object | string | |
| status | string | |
| name | string | This is the name of the file. This is just for your own reference. |
| originalName | string | |
| bytes | number | |
| purpose | string | |
| mimetype | string | |
| key | string | |
| path | string | |
| bucket | string | |
| url | string | |
| parsedTextUrl | string | |
| parsedTextBytes | number | |
| metadata | object | |
| id | string | This is the unique identifier for the file. |
| orgId | string | This is the unique identifier for the org that this file belongs to. |
| createdAt | string | This is the ISO 8601 date-time string of when the file was created. |
| updatedAt | string | This is the ISO 8601 date-time string of when the file was last updated. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/File",
"title": "File",
"type": "object",
"properties": {
"object": {
"type": "string",
"enum": [
"file"
]
},
"status": {
"enum": [
"processing",
"done",
"failed"
],
"type": "string"
},
"name": {
"type": "string",
"description": "This is the name of the file. This is just for your own reference.",
"maxLength": 40
},
"originalName": {
"type": "string"
},
"bytes": {
"type": "number"
},
"purpose": {
"type": "string"
},
"mimetype": {
"type": "string"
},
"key": {
"type": "string"
},
"path": {
"type": "string"
},
"bucket": {
"type": "string"
},
"url": {
"type": "string"
},
"parsedTextUrl": {
"type": "string"
},
"parsedTextBytes": {
"type": "number"
},
"metadata": {
"type": "object"
},
"id": {
"type": "string",
"description": "This is the unique identifier for the file."
},
"orgId": {
"type": "string",
"description": "This is the unique identifier for the org that this file belongs to."
},
"createdAt": {
"format": "date-time",
"type": "string",
"description": "This is the ISO 8601 date-time string of when the file was created."
},
"updatedAt": {
"format": "date-time",
"type": "string",
"description": "This is the ISO 8601 date-time string of when the file was last updated."
}
},
"required": [
"id",
"orgId",
"createdAt",
"updatedAt"
]
}