Help Center

Integrations

Integrations are how Mediastilo publishes your finished drafts to the places your audience actually reads. You connect a destination once per brand, and from then on you can push any ready draft straight to it. Connections are managed from the Integrations section of your dashboard.

<!-- screenshot: Integrations page listing available destinations and their status -->

Supported destinations

Mediastilo ships with three publishing destinations today:

DestinationWhat you connectWhat you'll need
WordPressA self-hosted or WordPress.com site via the REST APISite URL, username, and an Application Password
GhostA Ghost site via the Admin APIAdmin API URL and an Admin API Key (id:secret)
Webhook / Custom RESTAny HTTP endpoint you controlEndpoint URL and a signing secret

Each destination is a per-brand connection, connecting WordPress for one brand doesn't connect it for the others. See Workspaces & Brands.

Publishing is a plan-gated feature. If you don't see Integrations or the Push action, check your plan in Credits & Billing.

Connecting a destination

  1. Go to Integrations and choose a destination type.
  2. Fill in its fields (see below). Secret fields, passwords, API keys, signing secrets, are encrypted at rest and masked whenever you view the connection again.
  3. Mediastilo runs a test connection to confirm the credentials work before saving.
  4. The connection shows as Active when it's good, or Error if a later check fails (for example, if you rotate a key on the destination).

You can re-run the test at any time, reconnect with new credentials, or disconnect a destination entirely.

Disconnecting, and the 30 days after

Disconnect asks first, then stops publishing to the site and stops reading it. Nothing is deleted straight away: the connection and the archive of that site's published posts we read (see What a connection reads) are kept for 30 days, and the page shows them under Removed with the date they go.

  • Restore brings the connection back as it was, archive included. It is greyed out while another site of the same kind is connected; disconnect that one first.
  • Reconnecting the same site within the 30 days does the same, with the credentials you enter.
  • Connecting a different site of the same kind deletes the removed one and its archive at once, so the new site starts clean rather than inheriting the old one's posts.
  • Delete now removes the connection and its archive immediately, without waiting out the 30 days. It cannot be undone.

After 30 days the connection and its archive are deleted for good.

<!-- screenshot: Connect WordPress dialog with masked Application Password field -->

Connecting is a page of its own, in four steps: pick the platform, connect, choose how posts are sent, and a check that signs in to the site without publishing anything. When it finishes you land on the connection's own page. Every connected site has one: Overview (how much was sent and how much failed in the last 30 days, what sends there, you by hand and any automation, and the latest posts), Posts (the latest 10 sends, with the reason for any that failed) and Settings (publishing defaults, reconnect, disconnect).

WordPress

WordPress has a guided setup. Click Sign in on your site, enter your site address, and Mediastilo checks the site and offers the smoothest path:

  • One-click authorization (recommended). If your site supports it, Mediastilo sends you to your own WordPress to approve access, with no passwords to copy. WordPress generates an Application Password and hands it back automatically.
  • Manual entry (fallback). If one-click isn't available, create an Application Password in WordPress (Users → Profile → Application Passwords) and paste it with your site URL and username.

After connecting, the wizard lets you choose publishing defaults (the post type, default categories, and whether posts go out published or as a draft) and optionally refresh your Brand voice by re-analyzing the site (this uses one analysis credit). You can change these later from the WordPress connection (Settings).

Ghost

Mediastilo uses the Ghost Admin API. In Ghost, create a Custom Integration (Settings → Integrations → Add custom integration) to get an Admin API key in the form id:secret, plus the Admin API URL. Paste both here.

Each post Mediastilo creates carries an internal tag such as #mediastilo-draft-42. Internal tags never show on your site; this one lets Mediastilo find the post again if a send's answer gets lost on the way, so a retry updates that post instead of creating a second one. Leave it on the post.

Webhook / Custom REST

For anything else, point Mediastilo at an endpoint URL you control. On publish, Mediastilo sends a JSON POST describing the content, signed with an X-Mediastilo-Signature: sha256=… header derived from your signing secret so your receiver can verify the request is genuine. A ping event is sent when you test the connection.

Each publish payload carries action: "created" the first time a draft is sent, "updated" when the same draft is sent again. On an update, previousExternalId holds the id your receiver returned last time (otherwise it is null), so you can update that record instead of adding a new one. Return JSON with an id (and optionally a url) to have Mediastilo remember it.

Every publish also carries an Idempotency-Key header, with the same value in the payload's idempotencyKey field, for example mediastilo-draft-42-3f1c9a07b2d4e865. It stays the same for one draft sent to one receiver: on a retry (when your answer did not reach us, so we sent again), and on every later update. Key your record on it: if you already hold a record under that key, update it rather than adding a new one. Do not drop a delivery whose key you have seen: it may carry changed content (action: "updated"). The key changes only for another draft, or when the connection points at another host.

The payload also carries dek: the draft's dek (the line under the headline) as plain text, or null when it has none. The body is sent without it, so your receiver decides where it goes.

Publishing a draft

Once a destination is connected and a draft is Ready, use Push in the editor or draft view to send it. You can publish to several destinations at once by selecting them. For a selected WordPress destination, you can fine-tune the post type, categories, tags, and status right there, pre-filled from your saved defaults and overridable per publish. Mediastilo:

  • Sends the title and body, as a published post (or a scheduled one, if you set a publish time), with your chosen post type, categories, and tags.
  • Places the draft's dek (the line under the headline) where your site puts its own, and also sends it as the post excerpt. See below.
  • Records the result, the destination's post ID and a link to view it.
  • Marks the publication published or failed, with the error if something went wrong, so you can fix the connection and try again.

The author, category, tag and custom taxonomy lists (a city taxonomy, for example) come from your site. Mediastilo keeps the last list your site gave it, so the options open at once, and refreshes it in the background at most once every 10 minutes. If your site can't be reached, you keep working from the saved list, with a note giving the date it was saved. The very first time, before any list is saved, the options wait for your site to answer.

Where the dek goes

WordPress has no subtitle field, so every site keeps its dek somewhere different: some open the post with a subheading (H2), others with a first paragraph. The first time you publish a draft that has a dek, Mediastilo reads your site's recent posts, works out which your site does, and remembers it for that connection. With too few posts to tell, it uses the first paragraph. If the body already opens with the dek, it isn't added a second time.

To choose yourself, open Settings on the connection and set Where the dek goes: match my site (detect it), first paragraph, subheading (H2), or excerpt only. On Ghost the dek goes to the post's excerpt.

See Drafts & Publishing for the full draft lifecycle.

What a connection reads

A connection is two-way. Besides sending drafts out, Mediastilo reads back what that site has already published — title, date, author, categories and tags — so your own output can be measured the same way we measure everyone else's. Nothing extra is asked of you: the reading uses the credentials you already gave for publishing, and only ever reads published posts. Drafts, private posts and anything behind an editorial workflow stay where they are.

This is the difference between a site you publish to and a site you watch: a connected CMS gives real dates and real categories rather than what a public page happens to show, so it is the ground truth your benchmarks are built on. Disconnect the destination and the reading stops with it.

What comes back: Google Search Console

Destinations are where your content goes. Search Console is the other half: what happened after it got there. Connecting it lets Mediastilo see the search terms people typed before they found your site, which pages they landed on, and how often, so the ideas we suggest are based on what people actually search for and not only on what you tell us you cover.

It lives in the What comes back section of the Integrations page, below your destinations.

<!-- screenshot: Integrations page, "What comes back" section with Search Console -->

What we read, and what we can't do

  • We read search terms, landing pages, clicks, impressions and average position, for up to the last 16 months.
  • The permission is read-only. Mediastilo cannot change anything in Search Console or anywhere else in your Google account.
  • We never see your Google password, and you can disconnect at any time.

You can also just ask

Once either connection exists, Ask and the draft assistant can read it in a conversation — "what are people typing to find us?", "how did last week's piece do?", "what have we actually published this month?". The tools are offered to a conversation only when the connection is there, so an answer about your search terms is never assembled out of general knowledge. Until you connect, Ask will say what it is missing, and can hand you a card that takes you to this page; the connection itself is always made by you, under your own account.

Before you connect

You need to already be verified as an owner or user of the site in Search Console, using the Google account you're about to connect. If you connect an account that isn't verified for your site, the connection succeeds but there is nothing to measure, Mediastilo will tell you so and offer to try another account.

Choosing which site to measure

After you authorize, you pick one property. Search Console has two kinds and they are not the same dataset:

KindCovers
Domain (example.com)Every subdomain, and both http and https
URL prefix (https://www.example.com/)Only addresses that start with exactly that

This is the single most common way a Search Console connection quietly returns nothing: a site that serves example.com measured by a property for https://www.example.com/. Mediastilo compares each property against the site you already publish to and marks the likely one Matches your site, so in most cases the right answer is already at the top of the list.

Properties you can see but not read (Search Console calls this an unverified user) are shown greyed out with the reason. Ask the site's owner for full or restricted access and they'll become selectable.

Nothing is ever chosen for you, even when there's only one option, because the choice decides what every later number means.

While history fills in

The most recent days arrive first, so the last month is usable almost immediately. Earlier months are collected in the background over the following days and the card shows how many of the sixteen months it holds so far.

Search Console publishes its data on a delay of a few days, so the newest figures are always a little behind today. This is Google's lag, not ours.

Reconnecting and disconnecting

  • Needs reconnecting means Google stopped accepting the connection, usually because access was removed in the Google account, or the person who granted it left. Nothing collected is lost: reconnect and measuring resumes where it stopped.
  • Disconnect removes the connection and deletes the search figures collected under it.

Troubleshooting

  • Connection shows Error: re-run the test. The most common causes are a rotated API key, an expired Application Password, or a changed site URL. Reconnect with fresh credentials.
  • WordPress fails: confirm the Application Password (not the login password) and that the REST API is reachable at …/wp-json/.
  • Ghost fails: confirm the key is the full id:secret Admin API key and the URL points at your Ghost admin domain.
  • Webhook fails: confirm your endpoint returns a 2xx status for the ping event and verifies the X-Mediastilo-Signature header.
  • "That site is refusing our server's requests": the site answered, but its firewall or hosting turned our server away (or never let the request finish). That is not a typo in the address, and credentials won't get past it. We are alerted automatically and follow up; if you manage the site, allowing our server through its firewall or security plugin fixes it.

What's next for integrations

The connection model is built to grow, destinations are pluggable, and one-click authorization is already live for WordPress. Bringing the same paste-free sign-in to more platforms is on the roadmap. New destinations appear in the Integrations list automatically as they ship.

See also