Project Information
Query metadata, processing status, and available translation languages for any project.
GET
/api/v1/project/:idQuick Implementation
curl -X GET https://api.srtgen.com/api/v1/project/:id \ -H "x-api-key: <YOUR_API_KEY>"
GEThttps://api.srtgen.com/api/v1/project/:id
This endpoint allows you to check if a project is ready for export and see which languages have been translated. It is highly recommended to use this endpoint for polling before requesting an export.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | The unique Project ID (e.g., 'proj_abc123'). |
Response Structure
| Field | Type | Description |
|---|---|---|
name | String | Project name. |
status | String | Processing state: completed, processing, error. |
availableLanguages | Array | List of language codes ready for export. |
mediaDuration | Number | Media duration (seconds). |
Sample Response: 200 OK
{ "success": true, "projectId": "proj_abc123", "name": "My High Impact Reel", "status": "completed", "availableLanguages": ["en", "es"], "mediaDuration": 124.5 }
Errors
| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Invalid or missing API key. |
| 404 | not_found | The specified project ID does not exist. |
| 500 | server_error | Unexpected error while fetching project data. |
Was this page helpful?