POST /presentations/generate

Generates a complete presentation based on a provided markdown outline.

application/json

Body

  • presentation object

    The presentation metadata

  • outline string

    The presentation outline in markdown format using educational format with engaging hooks, bold emphasis, and conversational tone

    Minimum length is 1.

Responses

  • 200 application/json

    success

    Hide response attributes Show response attributes object
    • success boolean
    • code integer(int32)
    • message string
    • data object
      Hide data attribute Show data attribute object
      • slides array[object]

        Union type representing any slide accepted by the AI-PPT generator.

        Union type representing any slide accepted by the AI-PPT generator.

        One of:
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
POST /presentations/generate
curl \
 --request POST 'http://localhost:8080/api/presentations/generate' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"presentation":{},"outline":"```markdown\n### The Amazing World of Artificial Intelligence!\n\nDid you know computers can now think and learn just like humans? Let's discover how AI is changing our world!\n\n**What makes AI so special?**\n\n- **AI systems are smart programs** that can learn from experience\n- They are like **digital brains** that solve problems for us\n- This incredible technology helps us in ways we never imagined\n\n_AI doesn't get tired or forget - it keeps learning 24/7!_\n\n### How Does AI Actually Learn?\n\nThe secret ingredient is massive amounts of **data**! AI systems feed on information to become smarter.\n\n**Data: The Brain Food of AI**\n\n- **Machine Learning** is like teaching a computer to recognize patterns\n- AI systems use **algorithms** to process and understand information\n- Without quality data, AI cannot make good decisions\n\n\u003e Just like we learn from our mistakes, AI gets better with every example!\n```"}'
Request examples
{
  "presentation": {},
  "outline": "```markdown\n### The Amazing World of Artificial Intelligence!\n\nDid you know computers can now think and learn just like humans? Let's discover how AI is changing our world!\n\n**What makes AI so special?**\n\n- **AI systems are smart programs** that can learn from experience\n- They are like **digital brains** that solve problems for us\n- This incredible technology helps us in ways we never imagined\n\n_AI doesn't get tired or forget - it keeps learning 24/7!_\n\n### How Does AI Actually Learn?\n\nThe secret ingredient is massive amounts of **data**! AI systems feed on information to become smarter.\n\n**Data: The Brain Food of AI**\n\n- **Machine Learning** is like teaching a computer to recognize patterns\n- AI systems use **algorithms** to process and understand information\n- Without quality data, AI cannot make good decisions\n\n> Just like we learn from our mistakes, AI gets better with every example!\n```"
}
Response examples (200)
{
  "success": true,
  "code": 200,
  "message": "string",
  "data": {
    "slides": [
      {
        "type": "cover",
        "data": {
          "title": "string",
          "text": "string"
        }
      }
    ]
  }
}
Response examples (400)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}