Delivery Modalities
Once a workflow is designed, it can be delivered to end-users, employees, or partners through three primary modalities:
- Hosted Public Share Links (Zero-code web portals)
- Embedded Client SDKs (Web, React Native, Flutter, Ionic/Capacitor)
- Headless Server-to-Server REST APIs
1. Hosted Public Share Links
Hosted Share Links allow you to generate a secure, standalone URL for any active workflow directly from the dashboard. This allows you to onboard users or vendors without writing a single line of frontend code.
Access Control & Security Modes
When generating a share link, you can configure strict security parameters:
| Setting | Options | Behavior |
|---|---|---|
| Access Mode | public | restricted_email | In restricted_email mode, only pre-authorized emails can access the verification session. |
| OTP Verification | true | false | Enforces a one-time password sent to the applicant's email or phone before starting. |
| Usage Mode | single_use | reusable | single_use links expire immediately upon first completion or attempt. |
| Expiration Date | ISO 8601 Timestamp | Automatically revokes link validity after a designated date and time. |
2. Branding Customization
Ensure hosted verification links match your corporate brand identity seamlessly. Under Settings > Widget Branding (or via per-workflow branding overrides), you can configure:
- Brand Assets: Custom organization logo, mobile app icon, and favicon.
- Color Palette: Brand primary color, secondary accent, border radius, and surface tints.
- Typography: Custom font families matching your web presence.
- Theme Modes: Force light mode, force dark mode, or adapt to the user's system preferences.
3. Client SDK Integration
For applications that require deeply integrated, in-app experiences, Prembly provides SDKs that launch verification flows inside modals or native viewports:
Load the hosted script and start the workflow in a modal with your publishable key. See the Web SDK guide for every option and result.
<script src="https://js.prembly.com/v1/inline/widget-v3.js"></script>
<script>
Prembly.workflow.start({
publishableKey: 'test_pk_...',
workflowId: 'YOUR_WORKFLOW_ID',
customer: { firstName: 'Jane', lastName: 'Doe', email: 'jane@example.com' },
callback: function (result) {
// completed | failed | manual_review | expired | cancelled
// (failed with result.error if it could not start)
console.log('Workflow ended:', result.status, result.sessionId);
}
});
</script>From your server instead. To set values the customer can't change, such as a prefilled ID, create the session from your backend with your Secret Key. Never call this from the browser.
// Server (Node.js)
const res = await fetch('https://api.prembly.com/api/v1/compliance-workflow/sdk/sessions/initiate/', {
method: 'POST',
headers: {
'X-API-Key': process.env.PREMBLY_SECRET_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
workflow_id: 'YOUR_WORKFLOW_ID',
first_name: 'Jane',
last_name: 'Doe',
email: 'jane@example.com',
redirect_url: 'https://your-app.com/onboarding/done', // optional
}),
});
const { data } = await res.json();
// Send data.session_url to your frontendThen send the customer to the link in the browser:
// Browser
window.location.href = sessionUrl;When the workflow ends, Prembly sends the customer to redirect_url if you set one. Read the outcome from webhooks, not from the redirect.