Skip to main content
POST
/
v3
/
sites
/
invite
/
accept
Accept Invitation
curl --request POST \
  --url https://app.plugchoice.com/api/v3/sites/invite/accept \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "team_uuid": "<string>"
}
'
{
  "message": "<string>",
  "site_id": 123,
  "team_uuid": "<string>",
  "is_owner": true,
  "data_access": true
}
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.
token
string
required
The 64-character invitation token.
team_uuid
string
The UUID of the team to accept the invitation on behalf of. If omitted, the user’s first team is used.

Response

message
string
A confirmation message indicating the invite was accepted successfully.
site_id
integer
The numeric ID of the location.
team_uuid
string
The UUID of the team that accepted the invitation.
is_owner
boolean
Whether the team is now the location owner.
data_access
boolean
Whether the team has sensitive data access.