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

# टिप्पणी का उत्तर दें

> किसी टिप्पणी पर टिप्पणी करें

export const XByoNotice = () => <Info>
  <strong>Targeting X/Twitter?</strong> Starting March 31, 2026, all X operations require your own API credentials. After linking X via OAuth, include these 2 headers in your request:
  <br /><br />
  <code>X-Twitter-OAuth1-Api-Key</code> — Your API Key (Consumer Key)<br />
  <code>X-Twitter-OAuth1-Api-Secret</code> — Your API Key Secret (Consumer Secret)
  <br /><br />
  <strong>One-time setup per Ayrshare account.</strong> You create one X Developer App and reuse the same API Key and Secret across every sub-profile / end-user you link. You do <em>not</em> create a new app per customer.
  <br /><br />
  Not linked yet? See the <a href="/dashboard/connect-social-accounts/x-twitter-byo-keys">full setup guide</a> to connect your X account.
  <br /><br />
  Your keys are never logged or stored by Ayrshare.
</Info>;

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>)}
  </>;

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>;
};

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

<XByoNotice />

Ayrshare से की गई टिप्पणी पर [Ayrshare Comment ID](/apis/comments/overview#comments-with-ayrshare-comment-id) का उपयोग करके, या Ayrshare के बाहर की गई टिप्पणी पर [Social Comment ID](/apis/comments/overview#comments-with-social-comment-id) का उपयोग करके उत्तर दें।

अक्सर, आप Ayrshare के माध्यम से की गई टिप्पणी का उत्तर देंगे, लेकिन जब आप Ayrshare के बाहर की गई टिप्पणी का उत्तर देना चाहते हैं, तो आप Social Comment ID का उपयोग कर सकते हैं, जो आपको [GET /comment](/apis/comments/get-comments) एंडपॉइंट से मिलती है।

समर्थित प्लेटफ़ॉर्म: Bluesky, Facebook, Instagram, LinkedIn, TikTok, X, और YouTube।

## Header Parameters

<HeaderAPI />

## Path Parameters

<ParamField body="commentId" type="string" required>
  यदि Ayrshare के माध्यम से की गई टिप्पणी का उत्तर दे रहे हैं, तो [POST comment endpoint](/apis/comments/post-comment) से लौटाई गई [Ayrshare Comment ID](/apis/comments/overview#comments-with-ayrshare-comment-id) `commentId` का उपयोग करें।

  उदाहरण के लिए, [POST comment endpoint](/apis/comments/post-comment) से लौटाई गई Ayrshare comment ID `commentId` है:

  ```json Ayrshare Comment ID Returned from POST /comment theme={"system"}
  {
    "commentId": "Ut1fWU6XkqkMayHGnJZ"
  }
  ```

  यदि Ayrshare के बाहर की गई टिप्पणी का उत्तर दे रहे हैं, तो सोशल नेटवर्क से [Social Comment ID](/apis/comments/overview#comments-with-social-comment-id) `commentId` का उपयोग करें।

  उदाहरण के लिए, Facebook [POST /comment](/apis/comments/post-comment) या [GET /comment](/apis/comments/get-comments) एंडपॉइंट से लौटाई गई social comment ID `commentId` है:

  ```json Social Comment ID Returned from POST /comment theme={"system"}
  {
    "facebook": { "commentId": "8392829334_1234567890" }
  }
  ```
</ParamField>

## Body Parameters

<ParamField body="platforms" type="array" required>
  यदि [Ayrshare Comment ID](/apis/comments/overview#comments-with-ayrshare-comment-id) का उपयोग करते हुए Ayrshare के माध्यम से की गई टिप्पणी का उत्तर दे रहे हैं, तो उत्तर पोस्ट करने के लिए प्लेटफ़ॉर्म निर्दिष्ट करें। समर्थित प्लेटफ़ॉर्म: `bluesky`, `facebook`, `instagram`, `linkedin`, `tiktok`, `twitter`, `youtube`।

  यदि [Social Comment ID](/apis/comments/overview#comments-with-social-comment-id) का उपयोग करते हुए Ayrshare के बाहर की गई टिप्पणी का उत्तर दे रहे हैं, तो उत्तर पोस्ट करने के लिए एक प्लेटफ़ॉर्म निर्दिष्ट करें। समर्थित प्लेटफ़ॉर्म: `facebook`, `instagram`, `linkedin`, `tiktok`, `twitter`।
</ParamField>

<ParamField body="comment" type="string" required>
  टिप्पणी में जोड़ने के लिए उत्तर।
</ParamField>

<ParamField body="mediaUrls" type="array">
  छवि URL प्रदान करके एक छवि संलग्न करें। केवल एक छवि समर्थित है। केवल Facebook और LinkedIn।
</ParamField>

<ParamField body="searchPlatformId" type="boolean" default={false}>
  यदि [Social Comment ID](/apis/comments/overview#comments-with-social-comment-id) का उपयोग करके किसी टिप्पणी का उत्तर दे रहे हैं तो `true` पर सेट करें, जो सोशल नेटवर्क का पोस्ट `commentId` है।
</ParamField>

<ParamField body="videoId" type="string">
  यदि Social Comment ID के साथ TikTok टिप्पणी का उत्तर दे रहे हैं, तो आपको TikTok वीडियो ID भी प्रदान करनी होगी, जो आपको [POST /comment endpoint](/apis/comments/post-comment) या [GET /comment endpoint](/apis/comments/get-comments) से मिलती है।
  केवल TikTok और `"searchPlatformId": true` के लिए आवश्यक।
</ParamField>

<ParamField body="objResponse" type="boolean" default={true}>
  Object के रूप में प्रतिक्रिया, अन्यथा Array के रूप में। डिफ़ॉल्ट `true`।
</ParamField>

## टिप्पणियों में @Mentions

आप `comment` टेक्स्ट स्ट्रिंग में सीधे @mentions शामिल कर सकते हैं। मेंशन के लिए कोई अलग पैरामीटर नहीं है। बस अपनी टिप्पणी टेक्स्ट में `@handle` जोड़ें।

```json Reply with @Mention theme={"system"}
{
  "comment": "Thanks @CompanyName! Great insight.",
  "platforms": ["linkedin", "twitter", "facebook"]
}
```

<Note>
  **LinkedIn Mentions:** LinkedIn मेंशन को Ayrshare द्वारा सर्वर-साइड पर हल किया जाता है। सही vanity name या member name देखने के लिए [LinkedIn Search endpoint](/apis/listen/search/linkedin-search) का उपयोग करें। संगठनों के लिए, `@handle` का उपयोग करें। सदस्यों के लिए, `@vanity_name` या `@[Full Name]` का उपयोग करें।
</Note>

प्लेटफ़ॉर्म-विशिष्ट विस्तृत मेंशन सिंटैक्स और सीमाओं के लिए, देखें:

* [Bluesky mentions](/apis/post/social-networks/bluesky#bluesky-mentions)
* [Facebook mentions](/apis/post/social-networks/facebook#facebook-page-mentions)
* [Instagram mentions](/apis/post/social-networks/instagram#instagram-mentions)
* [LinkedIn mentions](/apis/post/social-networks/linkedin#linkedin-mentions)
* [Threads mentions](/apis/post/social-networks/threads#threads-mentions)
* [TikTok mentions](/apis/post/social-networks/tiktok#tiktok-mentions)
* [X/Twitter mentions](/apis/post/social-networks/x-twitter#mentions)
* [YouTube mentions](/apis/post/social-networks/youtube#youtube-mentions)

Reddit पर टिप्पणी का उत्तर समर्थित नहीं है। प्लेटफ़ॉर्म-दर-प्लेटफ़ॉर्म मेंशन नियमों और सिफारिशों के लिए [Post Verification](/testing/post-verification) देखें।

<RequestExample>
  ```bash cURL theme={"system"}
  curl \
  -H "Authorization: Bearer API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"platforms": ["bluesky", "facebook", "instagram", "linkedin", "twitter", "youtube"], "comment": "An amazing reply!"}' \
  -X POST https://api.ayrshare.com/api/comments/reply/Ut1fWU6XkqkMayHGnJZ
  ```

  ```javascript JavaScript theme={"system"}
  const API_KEY = "API_KEY";

  fetch("https://api.ayrshare.com/api/comments/reply/Ut1fWU6XkqkMayHGnJZ", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Authorization: `Bearer ${API_KEY}`,
    },
    body: JSON.stringify({
      platforms: ["bluesky", "facebook", "instagram", "linkedin", "twitter", "youtube"], // required
      comment: "An amazing comment!", //required
    }),
  })
    .then((res) => res.json())
    .then((json) => console.log(json))
    .catch(console.error);
  ```

  ```python Python theme={"system"}
  import requests

  payload = {'platforms': ['bluesky', 'facebook', 'instagram', 'linkedin', 'twitter', 'youtube'],
          'comment': 'An amazing comment!'}
  headers = {'Content-Type': 'application/json',
          'Authorization': 'Bearer API_KEY'}

  r = requests.post('https://api.ayrshare.com/api/comments/reply/Ut1fWU6XkqkMayHGnJZ',
      json=payload,
      headers=headers)

  print(r.json())
  ```

  ```php PHP theme={"system"}
  <?php

  $apiUrl = 'https://api.ayrshare.com/api/comments/reply/Ut1fWU6XkqkMayHGnJZ';
  $apiKey = 'API_KEY';  // Replace 'API_KEY' with your actual API key

  $headers = [
      'Content-Type: application/json',
      'Authorization: Bearer ' . $apiKey,
  ];

  $data = json_encode([
      'platforms' => ['bluesky', 'facebook', 'instagram', 'linkedin', 'twitter', 'youtube'],
      'comment' => 'An amazing comment!'
  ]);

  $curl = curl_init($apiUrl);
  curl_setopt_array($curl, [
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_POST => true,
      CURLOPT_HTTPHEADER => $headers,
      CURLOPT_POSTFIELDS => $data
  ]);

  $response = curl_exec($curl);

  if ($response === false) {
      echo 'Curl error: ' . curl_error($curl);
  } else {
      echo json_encode(json_decode($response), JSON_PRETTY_PRINT);
  }

  curl_close($curl);
  ```

  ```go Go theme={"system"}
  package main

  import (
  	"bytes"
  	"encoding/json"
  	"log"
  	"net/http"
  )

  func main() {
  	message := map[string]interface{}{
  		"platforms": []string{"bluesky", "facebook", "instagram", "linkedin", "twitter", "youtube"}, // required
  		"comment": []string{"An amazing comment!"} // required
  	}

  	bytesRepresentation, err := json.Marshal(message)
  	if err != nil {
  		log.Fatalln(err)
  	}

  	req, _ := http.NewRequest("POST", "https://api.ayrshare.com/api/comments/reply/Ut1fWU6XkqkMayHGnJZ",
  		bytes.NewBuffer(bytesRepresentation))

  	req.Header.Add("Content-Type", "application/json; charset=UTF-8")
  	req.Header.Add("Authorization", "Bearer API_KEY")

  	res, err := http.DefaultClient.Do(req)
  	if err != nil {
  		log.Fatal("Error:", err)
  	}

  	res.Body.Close()
  }
  ```

  ```csharp C# theme={"system"}
  using System;
  using System.Net.Http;
  using System.Text;
  using System.Threading.Tasks;

  namespace CommentsReplyPOSTRequest_csharp
  {
      class CommentsReply
      {
          static async Task Main(string[] args)
          {
              string API_KEY = "API_KEY";
              string url = "https://api.ayrshare.com/api/comments/reply/Ut1fWU6XkqkMayHGnJZ";

              using (var httpClient = new HttpClient())
              {
                  httpClient.DefaultRequestHeaders.Add("Authorization", "Bearer " + API_KEY);

                  var json = @"{
                      ""platforms"": [""bluesky"", ""facebook"", ""instagram"", ""linkedin"", ""twitter"", ""youtube""],
                      ""comment"": [""An amazing comment!""]
                  }";

                  var content = new StringContent(
                      json,
                      Encoding.UTF8,
                      "application/json"
                  );

                  try
                  {
                      var response = await httpClient.PostAsync(url, content);
                      response.EnsureSuccessStatusCode();
                      string responseBody = await response.Content.ReadAsStringAsync();
                      Console.WriteLine(responseBody);
                  }
                  catch (HttpRequestException e)
                  {
                      Console.WriteLine($"Error: {e.Message}");
                  }
              }
          }
      }
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 200: Success theme={"system"}
  {
    "commentId": "Eh61xHheGHvAqXqGISGVa",
    "bluesky": {
      "status": "success",
      "commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4bquqrxd2d",
      "cid": "bafyreie2jt5iw6rk2ekmiq6aljyiv7nj4sjucbpkamqc73tmggh5fmrqha",
      "comment": "Truth is ever to be found in simplicity.",
      "platform": "bluesky",
      "postUrl": "https://bsky.app/profile/ayrshare.com/post/3lf4bquqrxd2d",
      "sourceCommentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i"
    },
    "facebook": {
      "status": "success",
      "commentId": "729149842469573_696560159169326",
      "sourceCommentId": "729149842469573_738966840899770",
      "comment": "Truth is ever to be found in simplicity.",
      "platform": "facebook"
    },
    "instagram": {
      "status": "success",
      "commentId": "18020060386920755",
      "sourceCommentId": "17998452434360734",
      "comment": "Truth is ever to be found in simplicity.",
      "platform": "instagram"
    },
    "linkedin": {
      "status": "success",
      "commentId": "7140161360574713856",
      "sourceCommentId": "urn:li:ugcPost:7140160850354397187",
      "comment": "Truth is ever to be found in simplicity.",
      "platform": "linkedin"
    },
    "tiktok": {
      "status": "success",
      "commentId": "7484295933044572922",
      "sourceCommentId": "7484407021429703422",
      "comment": "Truth is ever to be found in simplicity.",
      "platform": "tiktok",
      "videoId": "7484993689815715122"
    },
    "twitter": {
      "status": "success",
      "commentId": "1734395672961441821",
      "sourceCommentId": "1734395509526155733",
      "comment": "Truth is ever to be found in simplicity.",
      "platform": "twitter",
      "postUrl": "https://twitter.com/ayrshare/status/1734395672961441821"
    },
    "youtube": {
      "status": "success",
      "commentId": "UgxZ55j-FDri8lrTgVR4AaABAg.9yCaV71m1fo9yCaZvu7Hj4",
      "sourceCommentId": "UgxZ55j-FDri8lrTgVR4AaABAg",
      "comment": "Truth is ever to be found in simplicity.",
      "platform": "youtube"
    },
    "status": "success",
    "id": "ytDgi5vyz36F2yshlJka"
  }
  ```

  ```json 400: Unknown commentId theme={"system"}
  {
    "facebook": {
      "action": "post",
      "status": "error",
      "code": 215,
      "message": "Error posting comment. Please be sure you are posting a valid comment, the original post exists, the original post is publicly available."
    },
    "code": 215,
    "status": "error",
    "errors": [
      {
        "action": "post",
        "status": "error",
        "code": 215,
        "message": "Error posting comment. Please be sure you are posting a valid comment, the original post exists, the original post is publicly available.",
        "platform": "facebook"
      }
    ],
    "id": "5360106757501_178916202161"
  }
  ```
</ResponseExample>
