Where pages publish, Search Console, other agents and the events webhook. A site has one publishing destination: a second is refused, so remove the first to move. check: true reads the site and stores nothing.
action:
- connect_wordpress(siteUrl, token, authorId?, categoryId?, check?): A WordPress site, with the Sightkick plugin active and its token (wp option get sightkick_token). Guide: https://sightkick.so/connect/wordpress.md
- connect_shopify(shopDomain, clientId?, clientSecret?, accessToken?, blogId?, authorName?, check?): A Shopify store's blog, with the owner's app's clientId and clientSecret (or an shpat_ accessToken). Guide: https://sightkick.so/connect/shopify.md
- connect_framer(projectUrl, apiKey, collectionId?, blogUrl?, check?): A Framer project's CMS collection, with its address and an API key. Guide: https://sightkick.so/connect/framer.md
- connect_webhook(webhookUrl, blogUrl?, bearerToken?): A site on its own code: each page POSTed, signed, to its https webhookUrl. Returns signingSecret and indexNowKey this once. Guide: https://sightkick.so/connect/webhook.md
- edit(connectionId, label?, authorId?, categoryId?, token?, blogId?, authorName?, clientId?, clientSecret?, accessToken?, blogUrl?, autoPublish?, apiKey?, webhookUrl?, bearerToken?, removeBearerToken?): Change a connection: what's left out stays, new credentials are checked against the site.
- test(connectionId): Check a connection works (a webhook gets a signed test event).
- remove(connectionId): Stop publishing there and forget which page is which post (the site keeps its pages, and a later publish there is a new post). Can't be undone.
- destination(key, label?, path?, on?): Change a destination (get_settings destinations): rename it, move it to another folder (refused while a live page is in it: its address would change), or switch a page type's off (no new pages go there) or on.
- add_destination(label, path): Add one of the owner's own destinations: a folder of blog-style pages beside the blog (Guides at /guides). Up to 10.
- remove_destination(key): Remove one of the owner's own destinations once no page is in it (a page type's is switched off instead).
- search_console_link: Connecting Google is the owner's: the app page they open, and a line to hand them.
- search_console_properties: The owner's Search Console properties that cover the site.
- pick_property(siteUrl): Use one of those properties (another one drops the old one's data).
- disconnect_search_console: Disconnect Search Console: the property and the Google grant go, the daily sync stops, the numbers read so far stay. Connecting again is the owner's Google sign-in.
- invite_agent: The line to hand another agent to connect it, and its guide.
- webhook(url?, types?, rotateSecret?, remove?): POST each event (get_activity events) to a public https url, signed (x-sightkick-signature: sha256 HMAC of `<x-sightkick-timestamp>.<body>`). The secret comes back once, or on rotateSecret. remove takes it away.
- test_webhook: Send the events webhook a signed ping.