Knowledge to draft

Generate a draft

post

Generates and creates a draft using structured textual data.

Authorizations
Body
templateIdstring | nullableOptional

The ID of the template to use. If not provided, the system will randomly select one.

Responses
200
Draft generated and created successfully
application/json
post
POST /api/knowledge-to-draft/generate-draft HTTP/1.1
Host: app.colossyan.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 136

{
  "summary": {
    "title": "text",
    "description": "text",
    "chapters": [
      {
        "title": "text",
        "script": "text",
        "searchTerms": "text"
      }
    ]
  },
  "templateId": "text"
}
{
  "url": "text"
}

Last updated

Was this helpful?