General
SDK
Steps to embed the Clasp Employer and Employee Component via iFrame.
Clasp components are plug-and-play UIs delivered as secure, magic-link URLs. You create the company/employee via API → request a component URL → iframe it in your app (or open it as a standalone page). That’s it.
Prerequisites
What | Why |
---|---|
Clasp API key | Used as a Bearer token from your backend to call the API and mint component links. |
Employer & Member IDs | Returned from the API when you create each record. |
Never expose your long‑lived API key in the browser.
All API calls that use the Bearer key should originate server‑side.
1. Employer Component
Response
2. Employee (Member) Component
Response
Each URL is already scoped to that employer or member via the one‑time token (otp_token
).
Embedding the Component
- ✅ Works in any framework that supports iframes (React, Vue, plain HTML, etc.).
- ✅ Can also be opened as a standalone magic link (handy for email‑based flows).
Need help? Ping us at support@withclasp.com or your dedicated solutions engineer.