{
 "openapi": "3.1.0",
 "info": {
  "title": "Mailbox Connections (CRM)",
  "version": "20261030b",
  "description": "Your Microsoft 365 or Google mailbox and calendar, logged into CRM as emails and meetings against the people and companies they involve. Nothing is read until you opt in; you choose what is kept."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/crm/mailbox-connections": {
   "get": {
    "summary": "Read mailbox connections",
    "operationId": "action_mailbox_connections_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post mailbox connections",
    "operationId": "action_mailbox_connections_1_4",
    "description": "Body keys: provider; provider one of microsoft365|google|sandbox",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/mailbox-connections/{id}": {
   "get": {
    "summary": "Read mailbox connections",
    "operationId": "action_mailbox_connections_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put mailbox connections",
    "operationId": "action_mailbox_connections_1_5",
    "description": "Body keys: store_body, opted_in, sync_mail, sync_calendar, push_meetings, exclude_domains, exclude_labels, skip_private, log_unmatched; store_body one of none|snippet|full",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/mailbox-connections/{id}/authorize": {
   "post": {
    "summary": "Authorize",
    "operationId": "action_mailbox_connections_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/mailbox-connections/{id}/sync": {
   "post": {
    "summary": "Sync",
    "operationId": "action_mailbox_connections_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/mailbox-connections/{id}/upload": {
   "post": {
    "summary": "Upload",
    "operationId": "action_mailbox_connections_0_6",
    "description": "Body keys: fileName, content*, encoding",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/mailbox-connections/{id}/pause": {
   "post": {
    "summary": "Pause",
    "operationId": "action_mailbox_connections_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/mailbox-connections/{id}/resume": {
   "post": {
    "summary": "Resume",
    "operationId": "action_mailbox_connections_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/mailbox-connections/{id}/revoke": {
   "post": {
    "summary": "Revoke",
    "operationId": "action_mailbox_connections_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}