Skip to content

Jobs API

API Key

The Jobs API allows you to create, retrieve, and manage processing jobs. Jobs represent tasks that process media files (audio, video) and convert them into structured documents. You can use API key authentication to access these endpoints.

API Endpoints

Create Job

POST /jobs

Create a new processing job.

Terminal window
curl -X POST https://api.shrinked.com/jobs \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"jobName": "Example Job",
"scenario": "SINGLE_FILE_DEFAULT",
"email": "[email protected]",
"lang": "en",
"isPublic": true,
"createPage": false,
"link": "https://example.com/media/file.mp4"
}'

Get Job by ID

GET /jobs/ID

Retrieve a specific job by its ID.

Terminal window
curl -X GET https://api.shrinked.com/jobs/job123456 \
-H "x-api-key: YOUR_API_KEY"

Get All Jobs

GET /jobs

Retrieve all jobs for the authenticated user.

Terminal window
curl -X GET https://api.shrinked.com/jobs?limit=20&offset=0 \
-H "x-api-key: YOUR_API_KEY"

Restart Job

POST /jobs/ID/restart

Restart a failed or completed job.

Terminal window
curl -X POST https://api.shrinked.com/jobs/job123456/restart \
-H "x-api-key: YOUR_API_KEY"

Export Doc

POST /jobs/exportdoc/DOC_ID

Export a processed document.

Terminal window
curl -X POST https://api.shrinked.com/jobs/exportdoc/doc123456 \
-H "x-api-key: YOUR_API_KEY"

Get Job By Result ID

GET /jobs/by-result/resultId

Retrieve a job using its result ID.

Terminal window
curl -X GET https://api.shrinked.com/jobs/by-result/result123456 \
-H "x-api-key: YOUR_API_KEY"

Job Processing Scenarios

ScenarioDescription
SINGLE_FILE_DEFAULTProcess a single media file with default settings
YOUTUBE_VIDEOProcess a YouTube video
AUDIO_ONLYProcess audio content only
TRANSCRIPT_ONLYGenerate only a transcript without further processing
FULL_ANALYSISPerform comprehensive analysis including transcript, summary, and insights

Job Status Values

created

Job has been created but not yet started

queued

Job is in the processing queue

processing

Job is actively being processed

completed

Job has completed successfully

failed

Job processing has failed

cancelled

Job has been cancelled

API Key Authentication

The Jobs API supports API key authentication for easy server-to-server integration. To use API key authentication, include your API key in the x-api-key header:

x-api-key: YOUR_API_KEY

You can use either the standard endpoints with the API key header, or the dedicated /jobs/key endpoints. Both approaches are supported and functionally equivalent.

Learn more about authentication methods and managing API keys.