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

# Trạng thái yêu cầu cộng tác Instagram

> Lấy trạng thái của yêu cầu tới một collaborator

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

Khi bạn [mời một collaborator tới một bài đăng](/apis/post/social-networks/instagram#collaboration), bạn có thể kiểm tra trạng thái của yêu cầu bằng cách sử dụng endpoint này.
Chỉ những người dùng Instagram đã bật gắn thẻ collaborator mới được trả về trong phản hồi.

## Tham số Header

<HeaderAPI noProfileKey={false} />

## Tham số Path

<ParamField path="id" type="string" required>
  Trong tham số path, sử dụng một [ID Type](/apis/overview#id-types)
</ParamField>

## Tham số Query

<ParamField query="searchPlatformId" type="boolean" required>
  Đặt thành `true`. Bắt buộc nếu sử dụng Social Post ID.
</ParamField>

<ResponseExample>
  ```json 200 theme={"system"}
  {
    "collaborators": [
      {
        "id": "17841401319910272",
        "username": "ayrshare",
        "inviteStatus": "accepted"
      },
      {
        "id": "17841401319910273",
        "username": "ayrshare1",
        "inviteStatus": "declined"
      },
      {
        "id": "17841401319910274",
        "username": "ayrshare2",
        "inviteStatus": "pending"
      }
    ],
    "lastUpdated": "2024-03-08T04:08:18.979Z",
    "nextUpdate": "2024-03-08T04:09:18.979Z"
  }
  ```

  ```json 400 theme={"system"}
  {
    "action": "analytics",
    "status": "error",
    "code": 294,
    "message": "Error getting analytics."
  }
  ```
</ResponseExample>
