cURL
curl --request POST \ --url https://api.droxy.ai/v1/resource/file \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'tags=[ "<string>" ]' \ --form file=@example-file
{ "id": "<string>", "organisation": "<string>", "creator": "<string>", "fileName": "<string>", "type": "<string>", "createdAt": 123, "aiProcessingStatus": "<string>", "youtubeVideoId": 123, "googleDriveResourceFile": { "googleDriveAccountId": "<string>", "fileId": "<string>", "fileName": "<string>", "mimeType": "<string>", "webViewLink": "<string>", "recursive": "<string>" }, "website": { "url": "<string>", "subLinks": [ "<string>" ] }, "videoLength": 123, "fileSize": 123, "syncFrequencyMs": 123, "lastSync": 123, "tags": [ "<string>" ] }
Create a file resource by upload a PDF or MP4 file.
Resource file to upload. File must be smaller than 1000MB and video files must be shorter than 120 minutes.
The body is of type object.
object
Created
The response is of type object.