/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, optionalseedText.export-chat:chatId,format(markdownorjson).delete-account: optionalbatchSize, auth-bound identity.cleanup:retentionDays,batchSize, cleanup token auth.