Create file
Files
Create file
Create a new file.
POST
Create file
Uploading a file is a two step process. You start by creating a placeholder for the file and then using the
upload details of the response to actually upload the file. Each file has a unique id which is used across the API when you need to reference it.
You can optionally include custom entity metadata in the metadata field to store your own business data (e.g., descriptions, related entity IDs, processing metadata). If not provided during creation, you can add it later using Set metadata.
Below you will find examples in several programming languages to do the upload:
Node.js
Node.js
The following example uses
file-type package to determine the content-type of the file.Authorizations
OAuth 2.0 authentication.
Body
application/json