🪄Create Content

POST

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

{
  "resources": [
    {
      "content": "string",
      "type": "string"
    }
  ],
  "text": "string",
  "outputType": "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

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"
}'

Response

{
    "request_id": "string",
    "error_message": "string"
}
Field
Possible Values

request_id

resource.type

Error message when the request is not successful.

Last updated