File Upload
Upload audio or data files for AI processing (e.g., transcription, custom TTS training).
Endpoint​
POST https://api.yodi.tg/v1/ai/file/{userId}
Parameters​
| Parameter | Type | Description |
|---|---|---|
userId | path | User ID to associate the file with |
Request​
Multipart form-data with a file field.
curl -X POST "https://api.yodi.tg/v1/ai/file/42" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@recording.wav"
Response​
{
"message": "SUCCESS",
"error": false,
"data": {
"id": 15,
"filename": "recording.wav",
"url": "/uploads/recording-xxxxx.wav"
},
"status": 201
}