Dub API
TypeScript
import { Dub } from "dub"; const dub = new Dub({ token: "DUB_API_KEY", }); async function run() { const result = await dub.embedTokens.referrals(); console.log(result); } run();
{ "publicToken": "<string>", "expires": "<string>" }
Create a referrals embed token for the given partner/tenant.
Default authentication mechanism
Show child attributes
The created public embed token.
Was this page helpful?