This guide explains how to update your RentCafe website so applicants are routed through Aptly's screening process instead of the default RentCafe application.
Prerequisites
Make sure you have the following before getting started:
- Access to RentCafe Website Manager
- Your organization’s Aptly orgId (available in Global Admin within Aptly)
Step 1: Copy the Script
Here’s the script you'll need to insert into your RentCafe website:
<script> window.onload = function() { let anchors = document.querySelectorAll('a'); let domain='api.getaptly.com'; let orgId='ORG_ID_HERE'; // ← Replace this! let params = new URLSearchParams(window.location.search); if(params.has('domain')) { domain=params.get('domain'); } anchors.forEach(function(anchor) { if (/https:\/\/.*?\.securecafe\.com\/onlineleasing\/.*\?/.test(anchor.href)) { let parts = anchor.href.split('?'); if(parts.length>1) anchor.href = "https://" + domain + "/api/rca?orgId=" + orgId + '&' + parts[1]; else anchor.href = "https://" + domain + "/api/rca?orgId=" + orgId; } }); } </script>
Step 2: Update the Org ID
In the script above, replace the following line:
let orgId='
With your actual Aptly org ID, for example:
let orgId='pGLh5DyYg3QDTGf6M';
You can ask your Yardi Account Manager for your Aptly Org ID if you do not know it.
Step 3: Add the Script to RentCafe
- Log in to your RentCafe Site Manager
- Go to Content Management → Site Design
- Under the Themes tab, click Open Site Editor
- Use the Add a Script Tag option
- Paste the full code snippet into the script tag field and save
If you don’t see the option to add a script, your Yardi representative can assist.

What This Does
After this is set up:
- The “Apply Now” buttons on your site will redirect applicants to Aptly’s screening process
- The full application flow, payment, and workflow automation will begin within Aptly
For help testing or verifying your setup, feel free to contact the Aptly Support Team at help@getaptly.com.