Skip to main content
POST
/
tokens
/
embed
/
referrals
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>"
}
Referrals embed token endpoint require an Advanced plan subscription or higher.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
partnerId
string
tenantId
string
partner
object

Response

The created public embed token.

publicToken
string
required
expires
string
required