Skip to main content
POST

Two-step process

This endpoint is a two-step process. First, you create the data entityโ€™s URL, and then you upload the file to the signed URL.
  • Step 1: POST https://api.getmetal.io/v1/data-entities
  • Step 2: PUT to the signed URL

Step 1: Request URL for the File

Auth Headers

string
required
An API key for your org.
string
required
A Client ID for your org.

Body

ObjectID
required
The datasource ID.
string
required
The name of the data entity.
object
An object of metdatadata keys/values. The key is the field key and the value is the field value for this entity.
string
required
The type of the source (e.g., โ€œPDFโ€, โ€œTextโ€).

Response

Data Entity Object

Step 2: Upload the File to the Signed URL