Resource
Create File Resource
Create a file resource by upload a PDF or MP4 file.
POST
/
v1
/
resource
/
file
Copy
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>"
]'
Copy
{
"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>"
]
}
Authorizations
Body
multipart/form-data
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
.
Response
201
application/json
Created
The response is of type object
.
Copy
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>"
]'
Copy
{
"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>"
]
}
Assistant
Responses are generated using AI and may contain mistakes.