curl --request POST \
--url https://api.tryhamsa.com/v1/jobs/all \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"sort": {
"field": "createdAt",
"direction": "asc"
},
"take": 2,
"skip": 2,
"search": "<string>",
"status": "PENDING",
"type": "TRANSCRIPTION"
}'
{
"success": false,
"message": "success",
"data": {
"jobs": [
{
"id": "<string>",
"title": "<string>",
"type": "AI_CONTENT",
"url": "<string>",
"status": "PENDING",
"cost": 123,
"systemModelKey": "<string>",
"relevantJobId": "<string>",
"attributes": {
"apiKey": "<string>",
"mediaUrl": "<string>",
"model": "<string>",
"agentName": "<string>",
"duration": 123,
"voice": "<string>",
"aiContentParts": [
"<any>"
],
"sourceJob": "<string>"
},
"apiKey": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"filtered": 123
}
}
curl --request POST \
--url https://api.tryhamsa.com/v1/jobs/all \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"sort": {
"field": "createdAt",
"direction": "asc"
},
"take": 2,
"skip": 2,
"search": "<string>",
"status": "PENDING",
"type": "TRANSCRIPTION"
}'
{
"success": false,
"message": "success",
"data": {
"jobs": [
{
"id": "<string>",
"title": "<string>",
"type": "AI_CONTENT",
"url": "<string>",
"status": "PENDING",
"cost": 123,
"systemModelKey": "<string>",
"relevantJobId": "<string>",
"attributes": {
"apiKey": "<string>",
"mediaUrl": "<string>",
"model": "<string>",
"agentName": "<string>",
"duration": 123,
"voice": "<string>",
"aiContentParts": [
"<any>"
],
"sourceJob": "<string>"
},
"apiKey": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"filtered": 123
}
}
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
.