API Documentation
SDK Documentation
Voice Enablement
Transcription Routes
Text to Speech Routes
Real Time Routes
Twilio Phone Numbers Routes
Voice Agents Routes
Voice Agents Conversations Routes
AI Content Routes
Project Routes
API Statistics Routes
AI Content Routes
Get AI Content Route
GET
/
v1
/
jobs
/
ai-content
Get AI-generated content
Copy
curl --request GET \
--url https://api.tryhamsa.com/v1/jobs/ai-content \
--header 'Authorization: <api-key>'
Copy
{
"success": false,
"message": "success",
"data": {
"id": "<string>",
"title": "<string>",
"model": "<string>",
"type": "<string>",
"processingType": "<string>",
"webhookUrl": "<string>",
"totalCost": 123,
"usageTime": "<string>",
"mediaUrl": "<string>",
"jobResponse": {
"faq": "<string>",
"titles": "<string>",
"summary": "<string>",
"keywords": "<string>",
"facebookPost": "<string>",
"introduction": "<string>",
"linkedInPost": "<string>",
"twitterThread": "<string>",
"threadsByInstagram": "<string>",
"transcriptionJobId": "<string>",
"youtubeDescription": "<string>",
"keyTopicsWithBullets": "<string>",
"webArticleSEOFriendly": "<string>"
},
"status": "<string>",
"relevantJobId": "<string>",
"apiKeyId": "<string>",
"billingId": "<string>",
"userId": "<string>",
"systemModelKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Authorizations
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token <api-key>'
Query Parameters
Response
200
application/json
Successful response
The response is of type object
.
Get AI-generated content
Copy
curl --request GET \
--url https://api.tryhamsa.com/v1/jobs/ai-content \
--header 'Authorization: <api-key>'
Copy
{
"success": false,
"message": "success",
"data": {
"id": "<string>",
"title": "<string>",
"model": "<string>",
"type": "<string>",
"processingType": "<string>",
"webhookUrl": "<string>",
"totalCost": 123,
"usageTime": "<string>",
"mediaUrl": "<string>",
"jobResponse": {
"faq": "<string>",
"titles": "<string>",
"summary": "<string>",
"keywords": "<string>",
"facebookPost": "<string>",
"introduction": "<string>",
"linkedInPost": "<string>",
"twitterThread": "<string>",
"threadsByInstagram": "<string>",
"transcriptionJobId": "<string>",
"youtubeDescription": "<string>",
"keyTopicsWithBullets": "<string>",
"webArticleSEOFriendly": "<string>"
},
"status": "<string>",
"relevantJobId": "<string>",
"apiKeyId": "<string>",
"billingId": "<string>",
"userId": "<string>",
"systemModelKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.