# Plain Docs ## Docs - [Attachments](https://www.plain.com/docs/api-reference/attachments): How to upload attachments programmatically for messages and events in Plain. - [Customer cards](https://www.plain.com/docs/api-reference/customer-cards): Live context straight from your own systems when helping customers. - [Create a customer card](https://www.plain.com/docs/api-reference/customer-cards/create-a-customer-card): Define the details of the customer card. - [Examples](https://www.plain.com/docs/api-reference/customer-cards/examples) - [Playground](https://www.plain.com/docs/api-reference/customer-cards/playground) - [Protocol](https://www.plain.com/docs/api-reference/customer-cards/protocol): Learn how we request customer cards from your API and how to respond to these requests. - [API Explorer](https://www.plain.com/docs/api-reference/graphql/api-explorer) - [Authentication](https://www.plain.com/docs/api-reference/graphql/authentication) - [Companies](https://www.plain.com/docs/api-reference/graphql/companies) - [Get companies](https://www.plain.com/docs/api-reference/graphql/companies/get-companies) - [Update customer company](https://www.plain.com/docs/api-reference/graphql/companies/update-customer-company) - [Customers](https://www.plain.com/docs/api-reference/graphql/customers) - [Customer groups](https://www.plain.com/docs/api-reference/graphql/customers/customer-groups) - [Delete customers](https://www.plain.com/docs/api-reference/graphql/customers/delete) - [Fetch customers](https://www.plain.com/docs/api-reference/graphql/customers/get) - [Upserting customers](https://www.plain.com/docs/api-reference/graphql/customers/upsert): Learn how to create and update customers programmatically. - [Error codes](https://www.plain.com/docs/api-reference/graphql/error-codes): If you receive an error code as part of an API call, this is where you can look up what it means - [Error handling](https://www.plain.com/docs/api-reference/graphql/error-handling): GraphQL queries and mutations require different error handling. - [Events](https://www.plain.com/docs/api-reference/graphql/events): Log important events to have the full picture of what happened in Plain. - [Create a customer event](https://www.plain.com/docs/api-reference/graphql/events/create-customer-event) - [Create a thread event](https://www.plain.com/docs/api-reference/graphql/events/create-thread-event) - [Introduction](https://www.plain.com/docs/api-reference/graphql/introduction): An overview of Plain's GraphQL API. - [Labels](https://www.plain.com/docs/api-reference/graphql/labels) - [Add labels](https://www.plain.com/docs/api-reference/graphql/labels/add) - [Remove labels](https://www.plain.com/docs/api-reference/graphql/labels/remove) - [Messaging](https://www.plain.com/docs/api-reference/graphql/messaging) - [Reply to emails](https://www.plain.com/docs/api-reference/graphql/messaging/reply-email) - [Reply to threads](https://www.plain.com/docs/api-reference/graphql/messaging/reply-to-thread) - [Send new emails](https://www.plain.com/docs/api-reference/graphql/messaging/send-email) - [Pagination](https://www.plain.com/docs/api-reference/graphql/pagination) - [Schema](https://www.plain.com/docs/api-reference/graphql/schema) - [Tenants](https://www.plain.com/docs/api-reference/graphql/tenants) - [Add customers to tenants](https://www.plain.com/docs/api-reference/graphql/tenants/add-customers) - [Get tenants](https://www.plain.com/docs/api-reference/graphql/tenants/get) - [Remove customers to tenants](https://www.plain.com/docs/api-reference/graphql/tenants/remove-customers) - [Set customer tenants](https://www.plain.com/docs/api-reference/graphql/tenants/set-customer-tenants) - [Upserting tenants](https://www.plain.com/docs/api-reference/graphql/tenants/upsert) - [Threads](https://www.plain.com/docs/api-reference/graphql/threads) - [Assignment](https://www.plain.com/docs/api-reference/graphql/threads/assignment) - [null](https://www.plain.com/docs/api-reference/graphql/threads/autoresponders) - [Create threads](https://www.plain.com/docs/api-reference/graphql/threads/create) - [Changing status](https://www.plain.com/docs/api-reference/graphql/threads/status-changes) - [Thread fields](https://www.plain.com/docs/api-reference/graphql/threads/thread-fields) - [Tiers & SLAs](https://www.plain.com/docs/api-reference/graphql/tiers) - [Add companies and tenants to tiers](https://www.plain.com/docs/api-reference/graphql/tiers/add-members) - [Get tiers](https://www.plain.com/docs/api-reference/graphql/tiers/get) - [Remove companies and tenants to tiers](https://www.plain.com/docs/api-reference/graphql/tiers/remove-members) - [Update company tier](https://www.plain.com/docs/api-reference/graphql/tiers/update-company-tier) - [Update tenant tier](https://www.plain.com/docs/api-reference/graphql/tiers/update-tenant-tier) - [Typescript SDK](https://www.plain.com/docs/api-reference/graphql/typescript-sdk) - [mTLS](https://www.plain.com/docs/api-reference/mtls) - [Request signing](https://www.plain.com/docs/api-reference/request-signing) - [UI Components](https://www.plain.com/docs/api-reference/ui-components) - [Badge](https://www.plain.com/docs/api-reference/ui-components/badge): Useful for statuses or when you need to attract attention to something. - [Container](https://www.plain.com/docs/api-reference/ui-components/container): Useful when you need to create a bit of structure. - [CopyButton](https://www.plain.com/docs/api-reference/ui-components/copy-button): Useful if you have any IDs or other details you want to copy for use in messages or outside of Plain. - [Divider](https://www.plain.com/docs/api-reference/ui-components/divider): Useful when you need a bit of structure. - [LinkButton](https://www.plain.com/docs/api-reference/ui-components/link-button): Useful when you want to link somewhere external (e.g. your own admin tool or payment provider) - [PlainText](https://www.plain.com/docs/api-reference/ui-components/plain-text): Useful when you want to show any text that should not have any formatting (is not Markdown). If you want markdown please use [Text](/api-reference/ui-components/text). - [Row](https://www.plain.com/docs/api-reference/ui-components/row): Useful when you need to show two things next to each-other. - [Spacer](https://www.plain.com/docs/api-reference/ui-components/spacer) - [Text](https://www.plain.com/docs/api-reference/ui-components/text) - [Webhooks](https://www.plain.com/docs/api-reference/webhooks) - [Customer created](https://www.plain.com/docs/api-reference/webhooks/customer-created) - [Customer deleted](https://www.plain.com/docs/api-reference/webhooks/customer-deleted) - [Customer Group Membership Changed Event](https://www.plain.com/docs/api-reference/webhooks/customer-group-membership-changed) - [Customer updated](https://www.plain.com/docs/api-reference/webhooks/customer-updated) - [Thread assignment transitioned](https://www.plain.com/docs/api-reference/webhooks/thread-assignment-transitioned) - [Chat sent](https://www.plain.com/docs/api-reference/webhooks/thread-chat-sent) - [Thread created](https://www.plain.com/docs/api-reference/webhooks/thread-created) - [Email received](https://www.plain.com/docs/api-reference/webhooks/thread-email-received) - [Email sent](https://www.plain.com/docs/api-reference/webhooks/thread-email-sent) - [Thread Field created](https://www.plain.com/docs/api-reference/webhooks/thread-field-created) - [Thread Field deleted](https://www.plain.com/docs/api-reference/webhooks/thread-field-deleted) - [Thread Field updated](https://www.plain.com/docs/api-reference/webhooks/thread-field-updated) - [Thread labels changed](https://www.plain.com/docs/api-reference/webhooks/thread-labels-changed) - [Note created](https://www.plain.com/docs/api-reference/webhooks/thread-note-created) - [Thread priority changed](https://www.plain.com/docs/api-reference/webhooks/thread-priority-changed) - [Thread SLA status transitioned](https://www.plain.com/docs/api-reference/webhooks/thread-service-level-agreement-status-transitioned) - [Slack message received](https://www.plain.com/docs/api-reference/webhooks/thread-slack-message-received) - [Slack message sent](https://www.plain.com/docs/api-reference/webhooks/thread-slack-message-sent) - [Thread status transitioned](https://www.plain.com/docs/api-reference/webhooks/thread-status-transitioned) - [Webhooks and Typescript](https://www.plain.com/docs/api-reference/webhooks/typescript) - [Webhook Versions](https://www.plain.com/docs/api-reference/webhooks/versions) - [Assignment](https://www.plain.com/docs/assignment) - [Auto-responses](https://www.plain.com/docs/auto-responses) - [Broadcasts](https://www.plain.com/docs/broadcasts) - [Chat](https://www.plain.com/docs/chat) - [Authentication](https://www.plain.com/docs/chat/authentication) - [Companies](https://www.plain.com/docs/company-support) - [Contact forms](https://www.plain.com/docs/contact-forms): The best way to offer support at scale. - [Customer cards](https://www.plain.com/docs/customer-cards): Live context straight from your own systems when helping customers. - [Customer groups](https://www.plain.com/docs/customer-groups): Organize and segment your customers. - [Data model](https://www.plain.com/docs/data-model): A quick overview of how Plain is structured. - [Digests](https://www.plain.com/docs/digests) - [Email](https://www.plain.com/docs/email) - [Alternate addresses](https://www.plain.com/docs/email/alternate-emails) - [Email avatars](https://www.plain.com/docs/email/email-avatars) - [Receiving emails](https://www.plain.com/docs/email/receiving) - [Sending emails](https://www.plain.com/docs/email/sending) - [Events](https://www.plain.com/docs/events): Get the full picture of what happened and why straight in Plain. - [Headless Support Portal](https://www.plain.com/docs/headless-support-portal): Give your customers visibility over their support requests. - [Insights](https://www.plain.com/docs/insights) - [Discourse Integration](https://www.plain.com/docs/integrations/discourse) - [Help Scout Sync](https://www.plain.com/docs/integrations/helpscout) - [HubSpot Sync](https://www.plain.com/docs/integrations/hubspot) - [Jira integration](https://www.plain.com/docs/integrations/jira) - [Linear integration](https://www.plain.com/docs/integrations/linear) - [Salesforce importer](https://www.plain.com/docs/integrations/salesforce) - [Zendesk importer](https://www.plain.com/docs/integrations/zendesk) - [Can I forward emails to Plain?](https://www.plain.com/docs/knowledge-base/kb-forwarding-emails) - [Can I connect my personal email address to Plain?](https://www.plain.com/docs/knowledge-base/kb-personal-email) - [How long does it take to set up Plain? Do I need to have someone technical do it for me?](https://www.plain.com/docs/knowledge-base/kb-setup-time) - [Are you SOC2 certified?](https://www.plain.com/docs/knowledge-base/kb-soc2) - [Knowledge Base](https://www.plain.com/docs/knowledge-base/overview) - [Labels](https://www.plain.com/docs/labels) - [Microsoft Teams](https://www.plain.com/docs/microsoft-teams) - [Installation](https://www.plain.com/docs/microsoft-teams/installation) - [Notifications](https://www.plain.com/docs/notifications) - [Plain AI](https://www.plain.com/docs/plain-ai) - [Priorities](https://www.plain.com/docs/priorities) - [Quickstart](https://www.plain.com/docs/quickstart): Everything you need to know to start supporting your customers with Plain. - [Roles & Permissions](https://www.plain.com/docs/roles-in-plain) - [Security](https://www.plain.com/docs/security) - [Shortcuts](https://www.plain.com/docs/shortcuts) - [Slack](https://www.plain.com/docs/slack) - [Data Retention](https://www.plain.com/docs/slack/data-retention) - [Ingestion Modes](https://www.plain.com/docs/slack/ingestion-modes) - [Smart AI Replies](https://www.plain.com/docs/smart-ai-replies) - [Snippets](https://www.plain.com/docs/snippets) - [null](https://www.plain.com/docs/statuses) - [Syntax highlighting](https://www.plain.com/docs/syntax-highlighting) - [Tenants](https://www.plain.com/docs/tenant-support) - [Thread Discussions](https://www.plain.com/docs/thread-discussions) - [Thread Fields](https://www.plain.com/docs/thread-fields): Extend and customise Plain's data model. - [Tiers & SLAs](https://www.plain.com/docs/tiers) - [Workflow Rules](https://www.plain.com/docs/workflow-rules) ## Optional - [Changelog](https://plain.com/changelog) - [Blog](https://plain.com/blog)