File Upload
POST /v1/file/upload
- This endpoint allows you to upload a file for analysis. The file is sent as multipart form data.
Auth and Rate Limits
- Authentication is required for this endpoint. You must include a valid API key in the
Authorizationheader. - This API call is rate limited to
100 requests per minute.
Request Body
- The body of the request must be
multipart/form-datawith a single field namedfilecontaining the file data.
Supported File Types
imagevideoaudio
Response
- The API will respond with a JSON object containing the details of the uploaded file.
{
"status": true,
"code": 200,
"message": "File uploaded successfully",
"data": {
"id": "755eb024-31e4-459a-aa14-44dd80d38852",
"filename": "bonafide.wav",
"bytes": 68254,
"created_at": 1754476080
}
}
Example Request
- Here is an example of how to upload a file using
curl.
curl -X POST https://api.deepfaic.com/v1/file/upload \
-H "Authorization: Bearer <api_key>" \
-F "file=@/path/to/your/file.wav"