Upload and register a small file
Uploads a small file directly to Lingopal and registers it as media or a document. For files larger than the direct upload limit, use `/v2/storage/uploads` multipart upload. Provide target languages and translation context later through the appropriate `/v2/jobs/{job_id}` workflow endpoint.
Uploads a small file directly to Lingopal and registers it as media or a document. For files larger than the direct upload limit, use /v2/storage/uploads multipart upload. Provide target languages and translation context later through the appropriate /v2/jobs/{job_id} workflow endpoint.
Authorization
APIKeyHeader In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v2/jobs/upload-and-register" \ -F file="product-demo.mp4" \ -F name="Product Demo" \ -F media_type="video"{ "message": "Job registration completed", "registered_count": 1, "error_count": 0, "results": [ { "name": "Product Demo", "source_url": "https://cdn.example.com/uploads/product-demo.mp4", "status": "registered", "job_id": "job_123", "media_type": "video" } ]}Republish translated job media POST
Regenerates already translated target media and requires completed translated artifacts for every target.
Register jobs for later use POST
Registers one or more uploaded or externally hosted file URLs as Lingopal media/document records. This endpoint records source metadata only; processing inputs such as target languages and translation context are supplied later through the appropriate `/v2/jobs/{job_id}` workflow endpoint. Per-item failures are returned in the `results` array with `status="error"`.