cURL
curl --request POST \ --url https://api.mediapi.dev/v1/jobs/upload \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <api-key>' \ --form file='@example-file' \ --form 'operations=<string>' \ --form 'webhook_url=<string>'
{ "id": "<string>", "status": "<string>" }
Upload a file directly and create a processing job in one request. Use multipart/form-data with the file and operations JSON.
The input file
JSON array of operations
Job accepted