curl --request POST \
--url https://api.tryhamsa.com/v1/jobs/transcribe \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"mediaUrl": "<string>",
"processingType": "async",
"webhookUrl": "<string>",
"webhookAuth": {
"authKey": "Token",
"authSecret": "Secret"
},
"title": "<string>",
"model": "Hamsa-General-V2.0",
"language": "ar",
"returnSrtFormat": false,
"srtOptions": {
"maxLinesPerSubtitle": 2,
"singleSpeakerPerSubtitle": true,
"maxCharsPerLine": 42,
"maxMergeableGap": 0.3,
"minDuration": 0.7,
"maxDuration": 7,
"minGap": 0.04
}
}'
{
"success": true,
"message": "<string>",
"data": {
"jobId": "<string>"
}
}
curl --request POST \
--url https://api.tryhamsa.com/v1/jobs/transcribe \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"mediaUrl": "<string>",
"processingType": "async",
"webhookUrl": "<string>",
"webhookAuth": {
"authKey": "Token",
"authSecret": "Secret"
},
"title": "<string>",
"model": "Hamsa-General-V2.0",
"language": "ar",
"returnSrtFormat": false,
"srtOptions": {
"maxLinesPerSubtitle": 2,
"singleSpeakerPerSubtitle": true,
"maxCharsPerLine": 42,
"maxMergeableGap": 0.3,
"minDuration": 0.7,
"maxDuration": 7,
"minGap": 0.04
}
}'
{
"success": true,
"message": "<string>",
"data": {
"jobId": "<string>"
}
}
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token <api-key>'
Successful response
The response is of type object
.