🪄Create Content
POST
https://api.autocontentapi.com/content/create
{
"resources": [
{
"content": "string",
"type": "string"
}
],
"text": "string",
"includeCitations": "bool",
"outputType": "string",
"callbackData": "string",
"language": "string"
}
resource.content
Website link (i.e: "https://resourcewebsite.com")
Plain text ("This is the resource text")
File content in base64 when resource.type is set to pdf
resource.type
text
youtube
website
pdf
outputType
audio
text
faq
study_guide
timeline
briefing_doc
text
Your prompt for the AI: - When outputType = "text" it represents the question to ask. - When outputType = "audio" it represents the custom instructions shared with the AI hosts to direct the podcast.
includeCitations
Whether to include the source references. Available only when outputType = "text". Only available to PRO subscribers. Defaults to false.
callbackData
Optional. Contains any custom data that you want to receive with the Get Status response or via webhook
language
Options. If no value is passed, it defaults to English. See the List of available languages here. NOTE: The value needs to match exactly the string on the table referenced just above.
Sample request
curl -X 'POST'
'https://api.autocontentapi.com/Content/Create'
-H 'accept: text/plain'
-H 'Authorization: Bearer YOUR_TOKEN_HERE'
-H 'Content-Type: application/json'
-d '{
"resources": [
{
"content": "https://autocontentapi.com",
"type": "website"
},
{
"content": "74% of businesses expect AI to increase productivity",
"type": "text"
}
],
"text": "Explain why automating with AutoContent API is a game changer for any business",
"outputType": "audio",
"includeCitations": false
}'
Response
{
"request_id": "string",
"error_message": "string"
}
request_id
Id of the request. You can use it to query its status
resource.type
Error message when the request is not successful.
Last updated