cURL
curl --request POST \ --url https://api.datagrid.com/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@example-file
{ "object": "file", "id": "<string>", "filename": "<string>", "created_at": "2023-11-07T05:31:56Z", "media_type": "<string>" }
Create files which can be passed as input to agents.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully created file
The File object represents a document that has been uploaded to Datagrid.
File