List guests and invitations

List the guests and pending invitations of a site from People in the site settings.

GET https://cotlet.dev/api/v1/plausible/site-peoples

read

Returns each guest with their email and role (Guest Viewer or Guest Editor), and whether the invitation was accepted or is still pending. Invitations expire after 48 hours, so an old pending row means the invitation has lapsed.

Parameters

Parameters: list_site_people
NameTypeDescription
site string required string Domain of the site as the Sites page lists it, e.g. acme-shop.example.

Request

cURL
curl "https://cotlet.dev/api/v1/plausible/site-peoples?site=site" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("plausible", "list_site_people", {"site":"site"})
Node.js
const result = await cotlet.call('plausible', 'list_site_people', {"site":"site"});
CLI
cotlet call plausible list_site_people --data '{"site":"site"}'

Example response

JSON

{
  "site": "acme-shop.example",
  "people": [
    {
      "email": "nora@client.example",
      "role": "Guest Viewer",
      "status": "accepted"
    },
    {
      "email": "sam@client.example",
      "role": "Guest Editor",
      "status": "pending"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.