POST
/
tokens
/
embed
/
referrals
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.embedTokens.referrals();

  // Handle the result
  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

Response

201
application/json
The created public embed token.

The response is of type object.