Codapult
ЦеныПлагиныБлогДокументацияДемо

SaaS-бойлерплейт для разработчиков

© 2026 Codapult. Все права защищены.

Сделано на Codapult

Проект

  • Цены
  • Плагины
  • Документация
  • Сравнение SaaS-шаблонов

О нас

  • Контакты

Правовая информация

  • Политика конфиденциальности
  • Условия использования
Все статьи

Getting Started

  • Introduction
  • Quick Start
  • Project Structure
  • License and Permitted Use

Configuration

  • Environment Variables
  • App Configuration

Authentication

  • Authentication
  • OAuth Providers
  • Two-Factor & Passwordless
  • Enterprise SSO (SAML)

Database

  • Database
  • Migrations

Teams

  • Teams & Organizations
  • Permissions & RBAC
  • SCIM Provisioning

Payments

  • Payments & Billing
  • Stripe Setup
  • LemonSqueezy Setup
  • Polar Setup
  • Payment Webhooks

Api

  • API Layer
  • tRPC
  • GraphQL

Ai

  • AI Features
  • Streaming Chat
  • RAG and Semantic Search
  • Quotas and Memory

Email

  • Email
  • Email Templates

Infrastructure

  • Infrastructure
  • Self-Hosting
  • File Storage
  • Docker
  • Background Jobs
  • Terraform & Pulumi
  • Kubernetes

Ui

  • UI & Theming

I18n

  • Internationalization

Content Management

  • Content Management

Admin

  • Admin Panel

Security

  • Security

Monitoring

  • Analytics & Monitoring

Modules

  • Module Architecture
  • Waitlist
  • Audit Log
  • White-Labeling
  • Workflow Automation
  • A/B Testing
  • Welcome Page
  • Referrals
  • GDPR Export and Deletion
  • Outgoing Webhooks

Plugins

  • Plugin System
  • AI Kit Plugin
  • CRM Plugin
  • Helpdesk Plugin
  • Email Marketing Plugin

Deployment

  • Deployment
  • Troubleshooting

Upgrading

  • Upgrading Codapult

Developer Tools

  • AI Agents & IDEs
  • MCP Server
  • Testing
Modules

GDPR Export and Deletion

Export user data and delete accounts with the built-in GDPR compliance helpers.

Codapult includes GDPR-oriented account controls: data export and account deletion. They are implemented as server-side helpers plus authenticated API routes.

Endpoints

RouteMethodPurpose
/api/account/exportGETDownload user data as JSON
/api/account/deletePOSTDelete the authenticated user's account

Exported data

exportUserData(userId) gathers:

  • User profile
  • Sessions and linked auth accounts
  • Subscriptions
  • Organizations
  • Notifications and preferences
  • Activity log
  • API keys without key hashes
  • Usage credits and events
  • Feature requests and votes
  • Experiment assignments

Sensitive auth tokens are omitted from the export.

Deletion behavior

deleteUserAccount(userId) deletes the user and associated records. It also handles organization membership cleanup: if the user is the last member of an organization, the organization and invitations are removed.

Subscriptions should be canceled or handled with your billing provider before deletion if your product requires that policy.

Key files

FilePurpose
src/lib/gdpr/index.tsExport and deletion helpers
src/app/api/account/export/route.tsJSON export route
src/app/api/account/delete/route.tsAccount deletion route
src/lib/db/schema.tsRelated user/account/org tables

Product checklist

  • Add UI copy that explains account deletion consequences.
  • Require explicit confirmation before deletion.
  • Decide whether subscriptions are canceled automatically or manually.
  • Log deletion events before the user row is removed if your compliance policy requires it.
ReferralsOutgoing Webhooks