Linking ShapelessAI as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

PostHog Wizard hedgehog

The ShapelessAI connector pulls your connected social accounts, posts, agent jobs, tags, and daily metrics from ShapelessAI into the PostHog Data warehouse, so you can analyze your social media publishing alongside your product data.

Prerequisites

You need a ShapelessAI account and an API key with the read scope.

Adding a data source

  1. In PostHog, go to the Sources tab of the data pipeline section.
  2. Click + New source and click Link next to this source.
  3. Enter your credentials (see Configuration below) and click Next.
  4. Select the tables you want to sync, choose a sync method and frequency, then click Import.

Once the syncs are complete, you can start querying this data in PostHog.

When linking ShapelessAI, you'll need:

  • API key – create one in ShapelessAI under Settings > API keys. Give the key only the read scope. The key starts with slk_.

Sync modes

Each table can be synced in one of several modes, depending on what the source supports:

  • Webhook (when available) – the source pushes changes to PostHog in real time. Fastest freshness, lowest ongoing cost, and the only mode that reliably captures updates and deletes.
  • Incremental – only new or updated rows are synced on each run, using a cursor field (such as an updated_at timestamp). Cheaper than a full refresh, but deletes aren't captured.
  • Append only – new rows are appended using a cursor field; existing rows are never updated. Ideal for immutable, append-only tables like event logs.
  • Full refresh – the whole table is reloaded on every sync. Use it when a table has no reliable cursor or when you need deletions reflected.

See sync methods for a full explanation of how each mode works and how to choose between them.

All ShapelessAI tables use full refresh, except daily_metrics, which supports incremental sync on the date field.

TableSync method
connectionsFull refresh
postsFull refresh
jobsFull refresh
tagsFull refresh
daily_metricsFull refresh, incremental
connection_metricsFull refresh

On each incremental sync, daily_metrics re-reads the 7 days before the last synced date, because reach and engagement for a day can still change after the day ends. Use Incremental rather than Append only for this table – append mode adds duplicate rows for the re-read days.

Configuration

OptionTypeRequired
API keypasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
connections

A social account connected to ShapelessAI. Holds identity only, never tokens.

Full refresh——
posts

A post on the ShapelessAI calendar: proposed, scheduled, published, handed off or failed. Canceled posts are not included.

Full refresh——
jobs

A job: a goal handed to the ShapelessAI agent team, with the state of its last run.

Full refresh——
tags

A named, coloured label that posts carry.

Full refresh——
daily_metrics

Reach, engagements and posts per UTC day for the whole account.

Incremental, Full refreshdate—
connection_metrics

Followers, totals and daily numbers of each connected account over the last 365 days.

Full refresh——

TableDescription
connectionsYour connected social accounts
postsYour posts from 2024-01-01 onward, including posts scheduled up to one year ahead. Canceled posts aren't included.
jobsYour agent jobs
tagsYour tags
daily_metricsDaily metrics, one row per date
connection_metricsMetrics for each connected account, one row per account

Troubleshooting

  • If you see an authentication error (401), ShapelessAI didn't accept your API key. Create a new key under Settings > API keys in ShapelessAI, then reconnect the source.
  • If you see a forbidden error (403), your API key has no read scope. Create a key with the read scope, then reconnect the source.

If your sync is failing or data looks wrong, see the Data warehouse troubleshooting guide. If that doesn't help, contact support – we're happy to help.

Still have questions?

Was this page useful?