Embedding the Inbox
Authentication
{
"userId": "<recrubo_user_record_id>",
"originUrl": "<origin_of_iframe_request>",
}Initialization
<iframe id="inboxFrame" src="https://api.recrubo.app/public/v2/embed/component/inbox"></iframe>
<!-- A script to communicate the user token as soon as the iframe is loaded -->
<script type="text/javascript">
const inbox = document.querySelector('#inboxFrame')
inbox.onload = (evt) => {
const inboxSettings = {
action: 'initialize',
token: 'XX-XX-XX-XX-XX'
}
// second argument is the origin of the target window, in this case the production url of the Recrubo webapp
inbox.contentWindow.postMessage(inboxSettings, 'https://recrubo.app')
}
</script>Settings
Theme and Styling
Example
Actions
Update Settings
Get Settings For
Get Actions For
Last updated