Custom Model Data Management
📁 Manage Custom Model Data
Upload, list, retrieve, or delete training and test data used for fine-tuning your Scriptix custom language models.
📤 Upload Dataset
URL: PUT /api/v3/custom_models/{model_id}/data/
Upload a transcript (data_type=1
) or test dataset (data_type=2
) file using a PUT
request with plain text content.
Headers
Parameter | Description |
---|---|
x-zoom-s2t-key | Scriptix Reseller API Token |
x-filename | Filename used to reference the file in the dashboard/API |
Content-Type | Must be text/plain |
Query Parameters
Parameter | Type | Description |
---|---|---|
data_type | string | Type of data: 1 for transcript, 2 for test |
✅ Response Codes
Status Code | Description |
---|---|
200 | Dataset uploaded successfully |
400 | Invalid language |
401 | Unauthorized – missing or invalid token |
402 | Payment required – no active subscription |
415 | Unsupported media type – use text/plain |
422 | Invalid request body |
500 | Internal server error |
📄 List All Datasets
URL: GET /api/v3/custom_models/data/
Retrieve all uploaded datasets across custom models.
Headers
Parameter | Description |
---|---|
x-zoom-s2t-key | Scriptix Reseller API Token |
✅ Response Codes
Status Code | Description |
---|---|
200 | List returned successfully |
400–500 | Standard error responses |
📦 Example
{
"result": [
{
"id": 1,
"name": "X-dataset.txt",
"type": 1,
"language_id": 2,
"media_url": "https://xyz.com/txt",
"url": "https://s3.ovh.xyz/X-dataset.txt"
}
],
"count": 1,
"total_results": 1
}
🔍 Get Dataset by ID
Retrieve a single dataset uploaded to a specific custom model by its ID.
URL: GET /api/v3/custom_models/{model_id}/data/{data_id}/
Path Parameters
Name | Description |
---|---|
model_id | ID of the custom model |
data_id | ID of the uploaded dataset |
Headers
Parameter | Description |
---|---|
x-zoom-s2t-key | Scriptix Reseller API Token |
Example
{
"result": {
"id": 1,
"name": "X-dataset.txt",
"type": 1,
"language_id": 2,
"media_url": "https://xyz.com/txt",
"url": "https://s3.ovh.xyz/X-dataset.txt"
},
"count": 1,
"total_results": 1
}
❌ Remove Dataset
Delete an individual transcript or test dataset associated with a specific custom model.
URL: DELETE /api/v3/custom_models/{model_id}/data/{data_id}/
🔢 Path Parameters
Name | Description |
---|---|
model_id | ID of the custom model |
data_id | ID of the dataset to delete |
✅ Response Codes
Status Code | Description |
---|---|
204 | Dataset removed successfully |
400–500 | Standard error responses |
🧠 Use Cases
- Upload domain-specific transcript files for fine-tuning models
- Test accuracy using predefined validation sets
- Clean up outdated or irrelevant data
- Automate dataset handling via back-office workflows