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

# Accept Invitation

Accepts a pending location invitation using the invitation token. If no team UUID is provided, the authenticated user's first team will be used, or a personal team will be created automatically.

<ParamField body="token" type="string" required>
  The 64-character invitation token.
</ParamField>

<ParamField body="team_uuid" type="string">
  The UUID of the team to accept the invitation on behalf of. If omitted, the user's first team is used.
</ParamField>

## Response

<ResponseField name="message" type="string">
  A confirmation message indicating the invite was accepted successfully.
</ResponseField>

<ResponseField name="site_id" type="integer">
  The numeric ID of the location.
</ResponseField>

<ResponseField name="team_uuid" type="string">
  The UUID of the team that accepted the invitation.
</ResponseField>

<ResponseField name="is_owner" type="boolean">
  Whether the team is now the location owner.
</ResponseField>

<ResponseField name="data_access" type="boolean">
  Whether the team has sensitive data access.
</ResponseField>
