App
Stored in the apps collection. createdAt and updatedAt are maintained automatically.
Returned by GET /apps, PUT /apps, DELETE /apps/brevo, DELETE /apps/elasticemail, GET /apps/facebook/apps/:id, GET /apps/facebook/sync/form-leads/:id and 17 more.
| Field | Type | Notes |
|---|---|---|
company | ObjectId -> Company | |
defaultSMTPServer | object | |
defaultSMTPServer.isGlobal | boolean | default true |
defaultSMTPServer.id | ObjectId | |
defaultSMTPServer.type | string | default Smtp · one of Smtp, Gmail, Ses, Sendgrid, Postmark, Brevo, Sparkpost, Elasticemail and 1 more |
defaultSMTPServer.customFromName | string | |
defaultSMTPServer.customFromEmail | string | |
defaultSMTPServer.customFromNameBool | boolean | default false |
defaultSMTPServer.customFromEmailBool | boolean | default false |
defaultS3Bucket.isGlobal | boolean | default true |
defaultS3Bucket.app | ObjectId -> Bucket | |
defaultOcr.isGlobal | boolean | default true |
defaultOcr.app | ObjectId -> Ocr | |
defaultFacebook.app | ObjectId -> FacebookApp | |
defaultFacebook.accessToken | string | |
defaultFacebook.accessTokenVerified | boolean | default false |
defaultFacebook.pages | ObjectId[] -> Page | default [] |
defaultRazorpay | ObjectId -> Razorpay | |
defaultPhonepe | ObjectId -> Phonepe | |
defaultPaypal | ObjectId -> Paypal | |
defaultStripe | ObjectId -> Stripe | |
defaultPayu | ObjectId -> Payu | |
defaultGemini.isGlobal | boolean | default true |
defaultGemini.app | ObjectId -> Gemini | |
defaultOpenAI.isGlobal | boolean | default true |
defaultOpenAI.app | ObjectId -> OpenAI | |
defaultClaude.isGlobal | boolean | default true |
defaultClaude.app | ObjectId -> Claude | |
defaultOffline.isGlobal | boolean | default true |
defaultOffline.app | ObjectId -> OfflineLocation | |
defaultZoom.isGlobal | boolean | default true |
defaultZoom.app | ObjectId -> ZoomAccount | |
defaultGoogleCalendar.isGlobal | boolean | default true |
defaultGoogleCalendar.app | ObjectId -> GoogleCalendarAccount | |
defaultInstagram.isGlobal | boolean | default true |
defaultInstagram.app | ObjectId -> InstagramApp | |
defaultManualPayment.isGlobal | boolean | default true |
defaultManualPayment.app | ObjectId -> ManualPayment | |
defaultFacebookOAuthApp.isGlobal | boolean | default true |
defaultFacebookOAuthApp.app | ObjectId -> FacebookOAuthApp | |
defaultWhatsAppOAuthApp.isGlobal | boolean | default true |
defaultWhatsAppOAuthApp.app | ObjectId -> WhatsAppOAuthApp | |
pendingWhatsAppOAuth.state | string | |
pendingWhatsAppOAuth.provider | ObjectId -> WhatsAppOAuthApp | |
pendingWhatsAppOAuth.redirectPath | string | |
pendingWhatsAppOAuth.createdAt | date | |
uniqueKey | string | default email · one of email, contactNumber |
companyType | string | default product · one of product, service, both |
defaultCompanyType | string | default product · one of product, service |
unifiedKeyChangedAt | date | default null |
_id | ObjectId | default "6a95712f932657988a91c027" |
createdAt | date | set once |
updatedAt | date |