Skip to main content

App

Stored in the apps collection. createdAt and updatedAt are maintained automatically.

Returned by GET /apps, PUT /apps, GET /apps/facebook/sync/form-leads/:id, GET /apps/facebook/sync/page-forms-leads/:id, GET /apps/facebook/sync/page-forms/:id, GET /apps/facebook/sync/pages-forms and 6 more.

Example​

One real App as returned by GET /apps. Recorded from a live response, so the defaults, denormalised snapshots and populated fields are the actual ones:

{
"_id": "6a9572df859eafb47bf225ef",
"company": "6a9572df859eafb47bf225d7",
"defaultS3Bucket": {
"isGlobal": true
},
"defaultOcr": {
"isGlobal": true
},
"defaultFacebook": {
"pages": []
},
"defaultGemini": {
"isGlobal": true
},
"defaultOpenAI": {
"isGlobal": true
},
"defaultClaude": {
"isGlobal": true
},
"defaultOffline": {
"isGlobal": true
},
"defaultZoom": {
"isGlobal": true
},
"defaultGoogleCalendar": {
"isGlobal": true
},
"defaultInstagram": {
"isGlobal": true
},
"defaultManualPayment": {
"isGlobal": true
},
"defaultFacebookOAuthApp": {
"isGlobal": true
},
"defaultWhatsAppOAuthApp": {
"isGlobal": true
},
"uniqueKey": "email",
"companyType": "product",
"defaultCompanyType": "product",
"unifiedKeyChangedAt": null,
"createdAt": "2026-08-31T12:26:07.692Z",
"updatedAt": "2026-09-01T06:53:33.381Z",
"__v": 0,
"emailProviders": {
"gmail": 0,
"smtp": 0,
"ses": 0,
"sendgrid": 0,
"postmark": 0,
"brevo": 0,
"sparkpost": 0,
"elasticemail": 0,
"mailchimp": 0
},
"appCounts": {
"whatsapp": 0,
"s3bucket": 0,
"facebook": 0,
"ocr": 0,
"gemini": 0,
"claude": 0,
"telegram": 0,
"instagram": 0,
"offline": 0,
"zoom": 0,
"googleCalendar": 0,
"email": 0
}
}

:::note Trimmed for reading A populated reference is shown by the fields that identify it rather than in full — it arrives as the entire referenced document. Long arrays are cut to the first two entries and marked, long strings are truncated, and any field that could carry a credential is dropped rather than masked. :::

Fields​

FieldTypeNotes
companyObjectId -> Company
defaultSMTPServerobject
defaultSMTPServer.isGlobalbooleandefault true
defaultSMTPServer.idObjectId
defaultSMTPServer.typestringdefault Smtp · one of Smtp, Gmail, Ses, Sendgrid, Postmark, Brevo, Sparkpost, Elasticemail and 1 more
defaultSMTPServer.customFromNamestring
defaultSMTPServer.customFromEmailstring
defaultSMTPServer.customFromNameBoolbooleandefault false
defaultSMTPServer.customFromEmailBoolbooleandefault false
defaultS3Bucket.isGlobalbooleandefault true
defaultS3Bucket.appObjectId -> Bucket
defaultOcr.isGlobalbooleandefault true
defaultOcr.appObjectId -> Ocr
defaultFacebook.appObjectId -> FacebookApp
defaultFacebook.accessTokenstring
defaultFacebook.accessTokenVerifiedbooleandefault false
defaultFacebook.pagesObjectId[] -> Pagedefault []
defaultRazorpayObjectId -> Razorpay
defaultPhonepeObjectId -> Phonepe
defaultPaypalObjectId -> Paypal
defaultStripeObjectId -> Stripe
defaultPayuObjectId -> Payu
defaultGemini.isGlobalbooleandefault true
defaultGemini.appObjectId -> Gemini
defaultOpenAI.isGlobalbooleandefault true
defaultOpenAI.appObjectId -> OpenAI
defaultClaude.isGlobalbooleandefault true
defaultClaude.appObjectId -> Claude
defaultOffline.isGlobalbooleandefault true
defaultOffline.appObjectId -> OfflineLocation
defaultZoom.isGlobalbooleandefault true
defaultZoom.appObjectId -> ZoomAccount
defaultGoogleCalendar.isGlobalbooleandefault true
defaultGoogleCalendar.appObjectId -> GoogleCalendarAccount
defaultInstagram.isGlobalbooleandefault true
defaultInstagram.appObjectId -> InstagramApp
defaultManualPayment.isGlobalbooleandefault true
defaultManualPayment.appObjectId -> ManualPayment
defaultFacebookOAuthApp.isGlobalbooleandefault true
defaultFacebookOAuthApp.appObjectId -> FacebookOAuthApp
defaultWhatsAppOAuthApp.isGlobalbooleandefault true
defaultWhatsAppOAuthApp.appObjectId -> WhatsAppOAuthApp
pendingWhatsAppOAuth.statestring
pendingWhatsAppOAuth.providerObjectId -> WhatsAppOAuthApp
pendingWhatsAppOAuth.redirectPathstring
pendingWhatsAppOAuth.createdAtdate
uniqueKeystringdefault email · one of email, contactNumber
companyTypestringdefault product · one of product, service, both
defaultCompanyTypestringdefault product · one of product, service
unifiedKeyChangedAtdatedefault null
_idObjectId
createdAtdateset once
updatedAtdate