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.

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
- In PostHog, go to the Sources tab of the data pipeline section.
- Click + New source and click Link next to this source.
- Enter your credentials (see Configuration below) and click Next.
- 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
readscope. The key starts withslk_.
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_attimestamp). 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.
| Table | Sync method |
|---|---|
connections | Full refresh |
posts | Full refresh |
jobs | Full refresh |
tags | Full refresh |
daily_metrics | Full refresh, incremental |
connection_metrics | Full 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
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
Supported tables
| Table | Description | Sync method | Incremental field | Primary 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 refresh | date | — |
connection_metrics | Followers, totals and daily numbers of each connected account over the last 365 days. | Full refresh | — | — |
| Table | Description |
|---|---|
connections | Your connected social accounts |
posts | Your posts from 2024-01-01 onward, including posts scheduled up to one year ahead. Canceled posts aren't included. |
jobs | Your agent jobs |
tags | Your tags |
daily_metrics | Daily metrics, one row per date |
connection_metrics | Metrics 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
readscope. Create a key with thereadscope, 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.





