Skip to main content
Pearset is the only link management platform that allows you to add custom domains for free. On Pearset, you can add up to 3 domains on the free plan, and 10+ domains on the Pro plan and above. When you add multiple domains to your Pearset account, the first domain you add will automatically be set as the primary domain. This domain will be the default domain in the Pearset link builder:
Primary domain in the Pearset link builder
It will also be the default domain if when using the Pearset API. Here’s an example of how it works with our TypeScript SDK:
config.js
import { Pearset } from "pearset";

const pearset = new Pearset();

async function main() {
  const link = await pearset.links.create({
    url: "string",
    domain: "pearset.sh", // (optional - defaults to primary domain)
  });

  console.log(link);
}

main();
If you want, you can change the primary domain to another domain that you have added to your Pearset account. Here’s how you can set a primary domain on Pearset:
  1. Go to the Pearset dashboard.
  2. Click on the Domains tab on the top navigation bar.
  3. Click on the button of domain that you want to set as the primary domain, which will open a dropdown menu.
  4. In the dropdown menu, click on the Set as Primary button, which will open the primary domain modal.
More options popover
  1. Click on the Set as primary domain button in the modal.
Set as primary domain modal
Voilà! You have successfully set a primary domain on Pearset. Now, the domain you have set as the primary domain will be the default domain in your Pearset link builder and when using the Pearset API.