> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload File

Upload a document to OpenAI for use with `Vector Stores` and file search.

Return an OpenAI file ID that can be referenced in subsequent vector store actions.

<Note>
  External Documentation

  To learn more, visit the [OpenAI documentation](https://developers.openai.com/api/reference/resources/files/methods/create).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                          |
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Expires After - Seconds | The number of seconds after which the file will expire. Must be between `3600` (1 hour) and `2592000` (30 days).<br /><br />**Note**: By default, files with `Purpose` - `Batch` expire after `30` days and all other files are persisted until they are manually deleted.                                                           |
  | File Identifier         | The identifier of the file.<br /><br />A file identifier represents a file created or referenced earlier in the workflow (for example, from a file action or another step that produces a file).<br /><br />See [Using with Files in Workflows](https://docs.blinkops.com/docs/workflows/building-workflows/files) for more details. |
  | Purpose                 | The intended purpose of the uploaded file.                                                                                                                                                                                                                                                                                           |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "file-XjGxS3KTG0uNmNOK362iJua3",
	"object": "file",
	"bytes": 140,
	"created_at": 1613779121,
	"filename": "document.txt",
	"purpose": "user_data"
}
```

## Workflow Library Example

[Upload File with Openai and Send Results Via Email](https://library.blinkops.com/workflows/upload-file-with-openai-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/upload-file-with-openai-and-send-results-via-email/canvas" />
</div>
