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

# क्लाइंट सोशल अकाउंट्स को Onboard करें

> JWT social-linking URL के साथ sub-profiles के अंतर्गत क्लाइंट्स के सोशल अकाउंट्स को onboard करने के लिए MCP Server का उपयोग करें।

Business या Enterprise plan पर Integrators अपने क्लाइंट्स के सोशल अकाउंट्स को **sub-profiles** के अंतर्गत onboard कर सकते हैं। [MCP Server](/additional/mcp-action-server) का उपयोग करके, एक agent एक sub-profile बनाता है, उसे target करता है, और एक single sign-on linking URL तैयार करता है जिसे क्लाइंट अपने अकाउंट्स को कनेक्ट करने के लिए खोलता है।

## Flow

<Steps>
  <Step title="एक sub-profile बनाएँ">
    `create_profile` कॉल करें (account-level — कोई `profileKey` नहीं)। यह नए sub-profile के लिए एक **profile key** लौटाता है।
  </Step>

  <Step title="sub-profile को target करें">
    लौटाई गई profile key का उपयोग बाद के कॉल पर करें — या तो connection पर `Profile-Key` header के माध्यम से या प्रति-कॉल `profileKey` argument के रूप में। पूर्वता के लिए [Connect & Setup](/additional/mcp-action-connect#precedence-argument-wins-over-header) देखें।
  </Step>

  <Step title="एक social-linking URL तैयार करें">
    single sign-on linking URL तैयार करने के लिए `generate_jwt_social_linking_url` कॉल करें। JWT signing key और onboarding domain **server-side** से प्राप्त होते हैं — कॉल करने वाला **कोई** `X-Ayrshare-*` headers और कोई private key या domain नहीं देता।
  </Step>

  <Step title="क्लाइंट अपने अकाउंट्स लिंक करता है">
    क्लाइंट URL खोलता है और अपने सोशल अकाउंट्स को अधिकृत (OAuths) करता है। कनेक्ट किए गए अकाउंट्स sub-profile से लिंक हो जाते हैं।
  </Step>
</Steps>

## आवश्यकताएँ

<Warning>
  `generate_jwt_social_linking_url` को एक `profileKey` **आवश्यक** है। यदि कोई resolve नहीं होता, तो कॉल **"Profile Key is required…"** संदेश के साथ **400** लौटाता है।

  आपके अकाउंट के लिए एक **social-linking domain provision किया जाना चाहिए**। यह **Business** और **Enterprise** plans पर उपलब्ध है।
</Warning>

### Error स्थितियाँ

| स्थिति                      | Response                                                                                                       |
| --------------------------- | -------------------------------------------------------------------------------------------------------------- |
| कोई provisioned domain नहीं | **400** — "No social-linking domain is provisioned for this account (available on Business/Enterprise plans)." |
| कोई signing key नहीं        | **400** — "No signing key found for this account's social-linking domain."                                     |

## अगले कदम

<CardGroup cols={2}>
  <Card title="Connect & Setup" icon="plug" href="/additional/mcp-action-connect" horizontal>
    प्रमाणीकरण और profile targeting।
  </Card>

  <Card title="Tool Catalog" icon="list" href="/additional/mcp-action-tools" horizontal>
    domain द्वारा समूहीकृत 27 tools, scope और उद्देश्य के साथ।
  </Card>
</CardGroup>
