# twenty | Twenty | Knowledge Base | Instagit

Building a modern alternative to Salesforce, powered by the community.

GitHub Stars: 41.7k

Repository: https://github.com/twentyhq/twenty

---

## Articles

### [Best Practices for Securing APIs in Twenty CRM: NestJS Guard Architecture Explained](/twentyhq/twenty/what-are-the-best-practices-for-securing-apis-in-twenty-crm)

Discover best practices for securing Twenty CRM APIs. Learn how NestJS guard architecture combines JWT, API keys, OAuth 2.0 SSO, and RBAC for robust API security.

- Tags: best-practices
- Published: 2026-03-27

### [How to Integrate Custom Logic into Twenty CRM Workflows: A Complete Guide to Code Steps](/twentyhq/twenty/how-to-integrate-custom-logic-into-twenty-crm-workflows)

Integrate custom logic into Twenty CRM workflows with Code Steps. Execute sandboxed JavaScript/TypeScript snippets to enhance CRM data interactions and automate complex tasks efficiently.

- Tags: how-to-guide
- Published: 2026-03-27

### [Twenty CRM Architectural Explanations: A Deep Dive into the Monorepo Structure and Feature Design](/twentyhq/twenty/are-there-architectural-explanations-available-for-twenty-crm-features)

Explore Twenty CRM's monorepo architecture and feature design. Get deep architectural explanations for its modular NestJS backend, React frontend, and Nx monorepo structure.

- Tags: architecture
- Published: 2026-03-27

### [Twenty CRM Architecture: Essential Source Files for the NestJS and React Codebase](/twentyhq/twenty/what-are-the-key-source-files-for-understanding-twenty-crm-architecture)

Explore Twenty CRM's architecture by reviewing key NestJS and React source files. Understand server bootstrap, root modules, and frontend entry points for deeper insights.

- Tags: architecture
- Published: 2026-03-27

### [Where to Find Twenty CRM Source Code Examples: A Developer's Guide](/twentyhq/twenty/where-can-i-find-source-code-examples-for-twenty-crm-features)

Find Twenty CRM source code examples for React UI and NestJS backend in the twentyhq/twenty repository. Explore complete feature implementations to accelerate your development.

- Tags: developer-guide
- Published: 2026-03-27

### [How the Health Monitoring System Works in Twenty CRM: NestJS Terminus Implementation](/twentyhq/twenty/how-is-the-health-monitoring-system-implemented-in-twenty-crm)

Discover how Twenty CRM's health monitoring system works with NestJS Terminus. Explore its two-layer approach, public healthz endpoint, and rich diagnostics for PostgreSQL, Redis, and workers.

- Tags: internals
- Published: 2026-03-27

### [Contact Creation in Twenty CRM: How Automated Message Processing Builds Your Contact Database](/twentyhq/twenty/what-is-the-process-for-contact-creation-in-twenty-crm)

Discover how Twenty CRM automates contact creation from messages. Learn about participant detection, background jobs, deduplication, and building your contact database efficiently.

- Tags: how-to-guide
- Published: 2026-03-27

### [How Billing Is Handled in Twenty CRM: Stripe Integration and Entitlement Architecture](/twentyhq/twenty/how-is-billing-handled-within-the-twenty-crm-platform)

Discover how Twenty CRM handles billing using Stripe integration and entitlement architecture. Learn about feature flags, metered product gating, and server-side NestJS modules for access control.

- Tags: architecture
- Published: 2026-03-27

### [What Is Included in the Audit Logging for Twenty CRM? A Complete Technical Breakdown](/twentyhq/twenty/what-is-included-in-the-audit-logging-for-twenty-crm)

Explore Twenty CRM's audit logging technical details. Discover how workspace events, record changes, and pageviews are captured and stored in ClickHouse with user context and timestamps.

- Tags: deep-dive
- Published: 2026-03-27

### [How API Keys Are Managed and Used in Twenty CRM: A Complete Technical Guide](/twentyhq/twenty/how-are-api-keys-managed-and-used-in-twenty-crm)

Learn how Twenty CRM manages and uses API keys. Discover secure storage, JWT issuance, and role-based access control for robust API security. Get the complete technical guide.

- Tags: how-to-guide
- Published: 2026-03-27

### [Two-Factor Authentication (2FA) Options for Twenty CRM: TOTP Implementation Guide](/twentyhq/twenty/what-are-the-two-factor-authentication-2fa-options-for-twenty-crm)

Explore Two-Factor Authentication (2FA) options for Twenty CRM. Learn how to implement TOTP with otplib for enhanced security using authenticator apps.

- Tags: how-to-guide
- Published: 2026-03-27

### [How Single Sign-On (SSO) Works in Twenty CRM: OIDC and SAML Implementation](/twentyhq/twenty/how-does-single-sign-on-sso-work-with-twenty-crm)

Discover how Twenty CRM utilizes OIDC and SAML for secure Single Sign-On (SSO). Learn how admins register identity providers and users authenticate seamlessly.

- Tags: how-to-guide
- Published: 2026-03-27

### [Security Measures for Permissions in Twenty CRM: Role-Based Access Control Implementation](/twentyhq/twenty/what-security-measures-are-in-place-for-permissions-in-twenty-crm)

Explore Twenty CRM's robust security for permissions. Learn about role-based access control, granular flags, and row-level predicates for secure data handling.

- Tags: deep-dive
- Published: 2026-03-27

### [AI Agents in Twenty CRM: Complete Technical Architecture and Implementation Guide](/twentyhq/twenty/how-are-ai-agents-utilized-within-twenty-crm)

Explore the technical architecture of AI agents in Twenty CRM. Learn how administrators configure LLM assistants managed through NestJS and GraphQL mutations for user interaction.

- Tags: architecture
- Published: 2026-03-27

### [What Is the Code Interpreter Feature in Twenty CRM? A Deep Dive into AI-Powered Python Execution](/twentyhq/twenty/what-is-the-code-interpreter-feature-in-twenty-crm)

Explore Twenty CRM's Code Interpreter, an AI tool executing Python code for data analysis, file generation, and workflow automation directly within chat. Unlock powerful insights.

- Tags: deep-dive
- Published: 2026-03-27

### [How Workflows Work in Twenty CRM: A Complete Technical Guide to Automation](/twentyhq/twenty/how-do-workflows-work-in-twenty-crm-for-automation)

Explore Twenty CRM workflows: a technical guide to automation. Understand how declarative, versioned graphs trigger and execute actions step-by-step with a robust backend engine.

- Tags: deep-dive
- Published: 2026-03-27

### [How Search Works in Twenty CRM: Full-Text Implementation with PostgreSQL](/twentyhq/twenty/how-is-the-search-functionality-implemented-in-twenty-crm)

Discover how Twenty CRM implements advanced search using PostgreSQL tsvector full-text indexing. Learn about ILIKE fallbacks, result ranking, and GraphQL pagination for efficient data retrieval.

- Tags: internals
- Published: 2026-03-27

### [How Does Twenty CRM Integrate with Zapier: A Complete Technical Guide](/twentyhq/twenty/how-does-twenty-crm-integrate-with-zapier)

Learn how Twenty CRM integrates with Zapier using its Node.js package for webhook triggers and GraphQL actions. Automate workflows with over 3,000 apps today.

- Tags: how-to-guide
- Published: 2026-03-27

### [How Email Synchronization Works in Twenty CRM: A Technical Architecture Guide](/twentyhq/twenty/how-is-email-synchronization-implemented-in-twenty-crm)

Discover how Twenty CRM email synchronization works. Our technical guide explains the message-import pipeline, sync cursors, and Message Import Manager for seamless Gmail and Microsoft 365 integration.

- Tags: architecture
- Published: 2026-03-27

### [Redis Caching in Twenty CRM: Architecture and Implementation Patterns](/twentyhq/twenty/what-is-the-role-of-redis-caching-in-twenty-crm-architecture)

Discover how Redis caching optimizes Twenty CRM architecture. Learn its role in data storage, subscriptions, sessions, and background jobs for enhanced performance. Explore implementation.

- Tags: architecture
- Published: 2026-03-27

### [How GraphQL APIs Are Implemented in Twenty CRM: Dynamic Schema Generation Explained](/twentyhq/twenty/how-are-graphql-apis-implemented-and-used-in-twenty-crm)

Discover how Twenty CRM dynamically generates GraphQL APIs per workspace using NestJS and Yoga. Learn how runtime schema generation unlocks powerful data access.

- Tags: deep-dive
- Published: 2026-03-27

### [How Twenty CRM Implements Multi-Tenancy for Workspaces: Schema-Per-Tenant Architecture](/twentyhq/twenty/how-does-twenty-crm-handle-multi-tenancy-for-workspaces)

Discover how Twenty CRM implements multi-tenancy for workspaces using a schema-per-tenant architecture. Learn how each workspace gets a dedicated PostgreSQL schema for secure data isolation.

- Tags: architecture
- Published: 2026-03-27

