AutoContent API
  • Getting started
  • 🔮API Docs
    • 🪄Create Content
    • ♻️Modify Podcast
    • 🪄Create Podcast with custom voices
    • 🪄Create Podcast with a custom script
    • 📽️Create Short
    • 🗣️Clone Voice
    • 🧑‍🤝‍🧑Get Voices
    • 📃Get Transcript
    • 🧑‍🤝‍🧑Separate Speakers Voices
    • ⚙️Get Status
    • 📖List content
    • ⚡Webhook
    • 📈Usage
    • Error codes
  • 🪙Credits
  • 📖Code Samples
    • NodeJS
    • Python
    • C#
    • PHP
  • 🌎Languages
  • 🗣️Voices
  • ❓FAQ
  • 🔌Open API
  • ⚒️Test it
  • 💳Billing
  • Support
Powered by GitBook
On this page
  • POST
  • Response
  1. API Docs

Create Content

POST

https://api.autocontentapi.com/content/create

{
  "resources": [
    {
      "content": "string",
      "type": "string"
    }
  ],
  "text": "string",
  "includeCitations": "bool",
  "outputType": "string",
  "callbackData": "string",
  "language": "string"
}

Field
Possible Values

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

language

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"
}
Field
Possible Values

request_id

resource.type

Error message when the request is not successful.

PreviousAPI DocsNextModify Podcast

Last updated 20 days ago

Optional. Contains any custom data that you want to receive with the response or

Options. If no value is passed, it defaults to English. See the NOTE: The value needs to match exactly the string on the table referenced just above.

Id of the request. You can use it to

🔮
🪄
Get Status
via webhook
List of available languages here.
query its status