> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Links API Overview

> Link shortener and analytics endpoint

export const PlansAvailable = ({plans = [], maxPackRequired}) => {
  let displayPlans = plans;
  if (plans && plans.length === 1) {
    const lowerCasePlan = plans[0].toLowerCase();
    if (lowerCasePlan === "basic") {
      displayPlans = ["Basic", "Premium", "Business", "Enterprise"];
    } else if (lowerCasePlan === "business") {
      displayPlans = ["Business", "Enterprise"];
    } else if (lowerCasePlan === "premium") {
      displayPlans = ["Premium", "Business", "Enterprise"];
    }
  }
  return <Note>
Available on {displayPlans.length === 1 ? "the " : ""}
{displayPlans.join(", ").replace(/\b\w/g, l => l.toUpperCase())}{" "}
{displayPlans.length > 1 ? "plans" : "plan"}.

{maxPackRequired && <span onClick={() => window.open('https://www.ayrshare.com/docs/additional/maxpack', '_self')} className="flex items-center mt-2 cursor-pointer">
 <span className="px-1.5 py-0.5 rounded text-sm" style={{
    backgroundColor: '#C264B6',
    color: 'white',
    fontSize: '12px'
  }}>
   Max Pack required
 </span>
</span>}
</Note>;
};

<PlansAvailable plans={["premium"]} maxPackRequired={true} />

With the /links endpoint you can shorten links to include in social posts.

The Ayrshare link shortener offers several valuable benefits for social publishing.

<ul class="custom-bullets">
  <li>Condenses long and complex URLs into more visually appealing, concise, and memorable links.</li>
  <li>Analytics and tracking capabilities, allowing you to monitor link performance, engagement, and audience insights.</li>
  <li>Save valuable character space, especially on platforms like Twitter where character limits are stringent.</li>
  <li>Add a custom link domain with your own url.</li>
</ul>

## Custom Link Domain

A custom link domain allows you to personalize and brand the domain name used for link shortening and redirection.
Instead of using a generic link shortener domain (e.g., bit.ly, ayr.app), a custom link domain allows you to use own domain name to create shortened links.

Please contact us to set up your custom domain. Available on Business and Enterprise plans.
