Section9 pages
Custom API
Examples showing how to build custom API endpoints in the # folder.
Create custom API functionsEXAMPLE - Creating your custom API is needed if you want to make interactive functions in your sites. API functions are not cached (by…Create custom JWT loginHow to implement a custom JWT login for your web application: a login page, an authentication endpoint, and a user store with salted…Send mail from API functionFollow this example to send email from your application.DIAGRAM - Static and dynamic sites.pdfAuto reload page if cached and outdatedReload a cached page automatically when it has been updated on the server. The page carries the version it was rendered with; a small API…Calling external APIsExamples for API functions calling external WEB APIs (JSON) with POST and GET. IMPORTANT: These functions are only available from the #/API…Sending SMS through BulkSMS gateway from Docly JS APIThis example sends an SMS from your Docly JS API through BulkSMS. It requires a BulkSMS account with credits. The endpoint only accepts…Fix unique ROWID values in a siteThis API function identifies and optionally sets new ROWID values in a site if there are duplicates.Return embedded file through API with cachingReads a file embedded in the #/Config document and returns it as a download, answering 304 when the client already has the current version…