List shared links

List the shared links of a site from Visibility in the site settings.

GET https://cotlet.dev/api/v1/plausible/shared-links

read

Returns the name and link of each shared link. The name is the label you gave the link and is not shown to viewers. Plausible never shows a link password again after it is set, so this list cannot return one.

Parameters

Parameters: list_shared_links
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/shared-links?site=site" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("plausible", "list_shared_links", {"site":"site"})
Node.js
const result = await cotlet.call('plausible', 'list_shared_links', {"site":"site"});
CLI
cotlet call plausible list_shared_links --data '{"site":"site"}'

Example response

JSON

{
  "site": "acme-shop.example",
  "links": [
    {
      "name": "Acme monthly",
      "url": "https://plausible.io/share/acme-shop.example?auth=k3T9xQ2mVb7Lw0pD"
    }
  ]
}

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.