> ## 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.

# Register Webhook

> एक नया Webhook पंजीकृत करें

export const PlansAvailable = ({plans = [], maxPackRequired}) => {
  let displayPlans = plans;
  if (plans && plans.length === 1) {
    const lowerCasePlan = plans[0].toLowerCase();
    if (lowerCasePlan === "business") {
      displayPlans = ["Launch", "Business", "Enterprise"];
    } else if (lowerCasePlan === "premium") {
      displayPlans = ["Premium", "Launch", "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>;
};

export const HeaderAPI = ({noProfileKey, profileKeyRequired}) => <>
    <ParamField header="Authorization" type="string" required>
      <a href="/apis/overview#authorization">API Key</a> of the Primary Profile.
      <br />
      <br />
      Format: <code>Authorization: Bearer API_KEY</code>
    </ParamField>
    {!noProfileKey && (profileKeyRequired ? <ParamField header="Profile-Key" type="string" required>
          <a href="/apis/overview#profile-key-format">Profile Key</a> of a User Profile.
          <br />
          <br />
          Format: <code>Profile-Key: PROFILE_KEY</code>
        </ParamField> : <ParamField header="Profile-Key" type="string">
          <a href="/apis/overview#profile-key-format">Profile Key</a> of a User Profile.
          <br />
          <br />
          Format: <code>Profile-Key: PROFILE_KEY</code>
        </ParamField>)}
  </>;

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

## Webhook पंजीकृत करें

[उपलब्ध actions](/apis/webhooks/actions) में से किसी एक के लिए एक नया Webhook पंजीकृत करें।
एक Webhook Primary Profile या User Profile के साथ पंजीकृत किया जा सकता है।

आप Ayrshare dashboard में Webhooks पृष्ठ पर webhook भी पंजीकृत कर सकते हैं।

## Header Parameters

<HeaderAPI />

## Body Parameters

<ParamField body="action" type="string" required>
  उपलब्ध actions: `feed`, `social`, `scheduled`, `batch`, `messages`, `mentions`, `comments`, `automations`
</ParamField>

<ParamField body="url" type="string" required>
  Action पर कॉल किए जाने वाला URL। URL एक मान्य format में होना चाहिए और *https\://* से शुरू होना चाहिए
</ParamField>

<ParamField body="secret" type="string">
  HMAC के लिए उपयोग किया गया गुप्त text। अधिक विवरण के लिए कृपया [overview](/apis/webhooks/overview#webhook-security) देखें।
</ParamField>

<ResponseExample>
  ```json 200: Response theme={"system"}
  {
    "status": "success",
    "action": "scheduled",
    "url": "https://mysite.com/hook",
    "refId": "3dc079614bdc3f281d9" // User Profile Ref Id
  }
  ```
</ResponseExample>
