Skip to main content

/api/workflow/*

OpenChat uses workflow routes for long-running or operational actions.

Endpoints

Execution Modes

  • Local/non-production: inline execution.
  • Production: queued execution via Upstash Workflow callbacks.

Shared Controls

  • Same-origin and auth checks for user-triggered writes.
  • Rate limits on sensitive endpoints.
  • Callback signature verification for workflow callbacks.

Notable Payload Fields

  • generate-title: chatId, length, provider, optional seedText.
  • export-chat: chatId, format (markdown or json).
  • delete-account: optional batchSize, auth-bound identity.
  • cleanup: retentionDays, batchSize, cleanup token auth.