Skip to content
First requestVisit website ↗
Navigation

Generate Content

Generate new content based on a prompt using GPT-4o. Perfect for creating initial drafts, expanding on ideas, or generating content from minimal input.

Note: This endpoint is deployed on Cloudflare Workers at https://ai-notes.customerconnects.app

POST
https://api.channelautomation.com/api/notes/generate

Authorization

  • NoAuth
    optional
    NoAuth
  • ApiKeyAuth
    optional
    API key in header

Header parameters

  • X-Workspace-Id
    string
    required

    Workspace ID for data isolation

Request body JSON required

  • workspaceId
    integer
    required
  • prompt
    string
    required
  • noteId
    optional
    string

    Optional note ID for tracking

  • options
    optional
    object
    • context
      optional
      note-creation
      or
      technical-documentation
      or
      business-notes
    • maxTokens
      optional
      integer
      maximum: 1500 · minimum: 100
    • temperature
      optional
      number
      maximum: 1 · minimum: 0

Example requests

{
  "workspaceId": 15213,
  "prompt": "Write a summary about AI in customer service"
}

Returns

200

Content generated successfully

JSON
  • success
    optional
    boolean
  • content
    optional
    string
  • metadata
    optional
    object
    • tokensUsed
      optional
      integer
    • processingTime
      optional
      integer
    • model
      optional
      string
    • wordCount
      optional
      integer

400

Request validation failed
JSON
  • error
    optional
    string
  • details
    optional
    array of
    string

401

Authentication required
JSON
  • error
    optional
    string
  • success
    optional
    boolean

403

AI features not enabled
JSON
  • success
    optional
    boolean
  • error
    optional
    string

429

Rate limit exceeded
JSON
  • success
    optional
    boolean
  • error
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close