# Integrations API: connect YouTube, TikTok, Instagram, Slack, Notion and more to short-form research

> The lulubanana connections API is one secure gateway between your account and the platforms you already use: it lists every integration in 7 categories (social analytics, Slack app, automation, content planning sync, messaging, AI assistants and publishing hand-off), starts a sign-in with YouTube, Instagram, TikTok, Slack, Notion, Google or Buffer (OAuth with state and PKCE where the platform supports it), or checks a pasted Notion, Airtable, Buffer or Metricool token live, and stores every token sealed (AES-256-GCM), refreshed before it expires and revoked when you disconnect. Connecting is included: 0 credits.

lulubanana is a content research platform and API for short-form video (TikTok, YouTube Shorts and Instagram Reels). Base address: https://lulubanana.com/api/v3. Authentication: `Authorization: Bearer lb_...`. Reads are free; collection is priced like the app.

## 8 things you can do with the integrations API

1. See every integration in one catalog, grouped by category, with what each one unlocks and whether it is ready for your account now
2. Connect your own YouTube, TikTok or Instagram account by signing in, so your channel numbers and audience feed your research
3. Install the Slack app into your workspace with one sign-in
4. Paste a Notion, Airtable, Buffer or Metricool token: it is checked live before it is stored
5. List your connections with their status (active, needs_reauth, error) and when each was last used
6. Test a connection with one small read at the platform; an expired sign-in is refreshed first
7. Disconnect: access is revoked at the platform where it supports that, and every stored token is wiped
8. Trust that tokens never come back in a reply, are sealed at rest, and are refreshed before they expire

## How it works

1. GET /integrations/providers to see what you can connect and what is ready now.
2. POST /connections/{provider}/start: sign-in platforms answer with authorize_url; open it in a browser where you are signed in to Lulubanana, approve, and you return to the dashboard with the connection stored. Token platforms take {token, config} and answer with the stored connection.
3. GET /connections to see your connections; POST /connections/{id}/test to check one; DELETE /connections/{id} to disconnect.

In the dashboard: Settings -> Integrations (https://lulubanana.com/app/dashboard/#/settings/integrations), My channel (https://lulubanana.com/app/dashboard/#/channel)

## See the catalog, connect Notion with a token, start a sign-in

Replace lb_YOUR_KEY with a key from Settings -> API. A token is checked live at the platform before it is stored; a sign-in answers with an address to open in a browser where you are signed in to Lulubanana.

### The catalog: every integration, grouped by category, with what it unlocks

```bash
curl https://lulubanana.com/api/v3/integrations/providers -H "Authorization: Bearer lb_YOUR_KEY"
```

### Connect Notion with an internal integration token

```bash
curl -X POST https://lulubanana.com/api/v3/connections/notion/start -H "Authorization: Bearer lb_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"token":"ntn_YOUR_NOTION_TOKEN"}'
# -> {"data":{"provider":"notion","mode":"token","connection":{"id":"con_Hk3Wq8Zp2LmTxR4v","provider":"notion","status":"active",...}}}  (the token never comes back)
```

### Start a YouTube sign-in, then test and list your connections

```bash
curl -X POST https://lulubanana.com/api/v3/connections/youtube/start -H "Authorization: Bearer lb_YOUR_KEY" -H "Content-Type: application/json" -d '{}'
# -> {"data":{"authorize_url":"https://accounts.google.com/o/oauth2/v2/auth?...","state_expires_at":"..."}}  (open it; the link works once, for 10 minutes)
curl -X POST https://lulubanana.com/api/v3/connections/con_Hk3Wq8Zp2LmTxR4v/test -H "Authorization: Bearer lb_YOUR_KEY"
curl https://lulubanana.com/api/v3/connections -H "Authorization: Bearer lb_YOUR_KEY"
```

## Key terms

- **Connection**: A link between your account and one account on another platform (a YouTube channel, a Slack workspace, a Notion workspace). Its id starts with con_.
- **Provider**: A platform you can connect, such as youtube, tiktok, instagram, slack, notion, airtable, google_sheets or buffer.
- **Sign-in (OAuth)**: You approve access on the platform's own page; we receive a token, never your password. The sign-in link works once, for 10 minutes.
- **PKCE**: A one-time proof that the sign-in that comes back is the one that started; used with every platform that supports it.
- **needs_reauth**: The platform no longer accepts the sign-in (it expired or was revoked). Connect again to carry on; nothing else is lost.
- **Sealed token**: A token encrypted with AES-256-GCM before it is stored. It is opened only in memory when it is used and never returned by the API.

## Endpoints

### GET /api/v3/integrations/providers

The catalog of integrations in 7 categories (social analytics, Slack app, automation, content planning sync, messaging, AI assistants, publishing hand-off): what each unlocks, how it connects, whether it is ready now and how many you have connected. Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `category` | query | social_analytics, slack_app, automation, content_sync, messaging, ai_assistants, publishing | Only this category |

```bash
curl "https://lulubanana.com/api/v3/integrations/providers" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

Example reply:

```json
{
  "data": {
    "categories": [
      {
        "id": "social_analytics",
        "name": "Social analytics",
        "about": "Connect your own TikTok, YouTube and Instagram accounts so your channel numbers, audience and results feed your research.",
        "providers": [
          {
            "id": "youtube",
            "name": "YouTube",
            "category": "social_analytics",
            "category_name": "Social analytics",
            "auth": "oauth",
            "available": true,
            "status": "available",
            "status_text": "Ready to connect",
            "modes": [
              {
                "mode": "oauth",
                "available": true
              },
              {
                "mode": "public",
                "available": true
              }
            ],
            "needs_setup": [],
            "scopes": [
              "https://www.googleapis.com/auth/youtube.readonly",
              "https://www.googleapis.com/auth/yt-analytics.readonly"
            ],
            "unlocks": [
              "Sign in to add watch time, average view percentage, retention, subscribers gained, traffic sources and your top YouTube search terms"
            ],
            "price": "included",
            "credits": 0,
            "setup_minutes": 2,
            "redirect_uri": "https://lulubanana.com/api/connect/youtube/callback",
            "connected": 1
          }
        ]
      }
    ],
    "providers": 19,
    "available": 19,
    "price": "included",
    "credits": 0
  }
}
```

### GET /api/v3/connections

Your connections to outside platforms, newest first: provider, account, status (active, needs_reauth, error, revoked, pending), scopes and last use. Tokens are never returned. Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `provider` | query | youtube, instagram, tiktok, slack, zapier, make, n8n, notion, airtable, google_sheets, calendar, teams, telegram, whatsapp, mcp, buffer, metricool, later, webhook | Only this provider, e.g. youtube |

```bash
curl "https://lulubanana.com/api/v3/connections" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

Example reply:

```json
{
  "data": [
    {
      "id": "con_Hk3Wq8Zp2LmTxR4v",
      "provider": "youtube",
      "provider_name": "YouTube",
      "category": "social_analytics",
      "mode": "oauth",
      "external_id": "UCx2Lm8Qp4Rt7Wv9Zk3Nh5Ty",
      "display_name": "Skincare on a Budget",
      "handle": "skincareonabudget",
      "scopes": [
        "https://www.googleapis.com/auth/youtube.readonly",
        "https://www.googleapis.com/auth/yt-analytics.readonly"
      ],
      "status": "active",
      "needs_reauth": false,
      "expires_at": "2026-11-24T10:30:00.000Z",
      "config": {
        "subscribers": 48200,
        "videos": 312
      },
      "has_token": true,
      "last_used_at": "2026-11-24T09:31:00.000Z",
      "last_sync_at": null,
      "last_refresh_at": "2026-11-24T09:30:00.000Z",
      "last_error": null,
      "created_at": "2026-11-20T15:02:00.000Z",
      "updated_at": "2026-11-24T09:30:00.000Z"
    }
  ]
}
```

### GET /api/v3/connections/{id}

One connection (no tokens). Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `id` (required) | path | string | The id in the path |

```bash
curl "https://lulubanana.com/api/v3/connections/con_Hk3Wq8Zp2LmTxR4v" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

Example reply:

```json
{
  "data": {
    "id": "con_Hk3Wq8Zp2LmTxR4v",
    "provider": "youtube",
    "provider_name": "YouTube",
    "category": "social_analytics",
    "mode": "oauth",
    "external_id": "UCx2Lm8Qp4Rt7Wv9Zk3Nh5Ty",
    "display_name": "Skincare on a Budget",
    "handle": "skincareonabudget",
    "scopes": [
      "https://www.googleapis.com/auth/youtube.readonly",
      "https://www.googleapis.com/auth/yt-analytics.readonly"
    ],
    "status": "active",
    "needs_reauth": false,
    "expires_at": "2026-11-24T10:30:00.000Z",
    "config": {
      "subscribers": 48200,
      "videos": 312
    },
    "has_token": true,
    "last_used_at": "2026-11-24T09:31:00.000Z",
    "last_sync_at": null,
    "last_refresh_at": "2026-11-24T09:30:00.000Z",
    "last_error": null,
    "created_at": "2026-11-20T15:02:00.000Z",
    "updated_at": "2026-11-24T09:30:00.000Z"
  }
}
```

### DELETE /api/v3/connections/{id}

Disconnect: the access is revoked at the platform where it supports that, the stored tokens are wiped and the alerts and sync rules that used this connection are removed. A verified channel goes back to public numbers. Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `id` (required) | path | string | The id in the path |

```bash
curl -X DELETE "https://lulubanana.com/api/v3/connections/con_Hk3Wq8Zp2LmTxR4v" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

Example reply:

```json
{
  "data": {
    "id": "con_Hk3Wq8Zp2LmTxR4v",
    "provider": "youtube",
    "deleted": true,
    "revoked_at_provider": true
  }
}
```

### POST /api/v3/connections/{id}/test

Check that a connection still works with one small read at the platform (a token close to expiry is refreshed first). A refused sign-in sets status needs_reauth. Free, up to 100 a day.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `id` (required) | path | string | The id in the path |

```bash
curl -X POST "https://lulubanana.com/api/v3/connections/con_Hk3Wq8Zp2LmTxR4v/test" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Example reply:

```json
{
  "data": {
    "ok": true,
    "checked": true,
    "detail": {
      "display_name": "Skincare on a Budget",
      "handle": "skincareonabudget"
    },
    "connection": {
      "id": "con_Hk3Wq8Zp2LmTxR4v",
      "provider": "youtube",
      "provider_name": "YouTube",
      "category": "social_analytics",
      "mode": "oauth",
      "external_id": "UCx2Lm8Qp4Rt7Wv9Zk3Nh5Ty",
      "display_name": "Skincare on a Budget",
      "handle": "skincareonabudget",
      "scopes": [
        "https://www.googleapis.com/auth/youtube.readonly",
        "https://www.googleapis.com/auth/yt-analytics.readonly"
      ],
      "status": "active",
      "needs_reauth": false,
      "expires_at": "2026-11-24T10:30:00.000Z",
      "config": {
        "subscribers": 48200,
        "videos": 312
      },
      "has_token": true,
      "last_used_at": "2026-11-24T09:31:00.000Z",
      "last_sync_at": null,
      "last_refresh_at": "2026-11-24T09:30:00.000Z",
      "last_error": null,
      "created_at": "2026-11-20T15:02:00.000Z",
      "updated_at": "2026-11-24T09:30:00.000Z"
    }
  }
}
```

### POST /api/v3/connections/{provider}/start

Connect a platform. Sign-in platforms answer {authorize_url, state_expires_at}: open the address, approve, and the connection is stored when you come back (PKCE where the platform supports it). Token platforms (Notion, Airtable, Buffer, Metricool) take {token, config}: the token is checked live and stored sealed. Free, up to 50 a day.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `provider` (required) | path | string | provider |
| `mode` | body | oauth, token | oauth (sign in) or token (paste a token); chosen for you when left out |
| `return_to` | body | string | Dashboard page to open after the sign-in, e.g. #/settings/integrations (default) or #/channel |
| `token` | body | string | For token platforms: the integration token, personal access token or API key (stored sealed, never shown again) |
| `config` | body | object | Platform settings: Airtable {base_id, table}, Metricool {user_id, blog_id}, Buffer {channel_id}, Google Sheets {spreadsheet_id, sheet} |

```bash
curl -X POST "https://lulubanana.com/api/v3/connections/youtube/start" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_to":"#/settings/integrations"}'
```

Example reply:

```json
{
  "data": {
    "provider": "youtube",
    "mode": "oauth",
    "authorize_url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...&scope=...&redirect_uri=https%3A%2F%2Flulubanana.com%2Fapi%2Fconnect%2Fyoutube%2Fcallback&response_type=code&state=...&access_type=offline&prompt=consent&code_challenge=...&code_challenge_method=S256",
    "state_expires_at": "2026-11-24T09:40:00.000Z",
    "redirect_uri": "https://lulubanana.com/api/connect/youtube/callback",
    "pkce": true,
    "next": "Open authorize_url in a browser where you are signed in to Lulubanana, approve, and you come back to the dashboard with the connection stored. The link works once, for 10 minutes."
  }
}
```

## FAQ

**Which platforms can I connect to lulubanana?**
YouTube, TikTok and Instagram (your own accounts), Slack, Zapier, Make, n8n, Notion, Airtable, Google Sheets, a calendar feed, Microsoft Teams, Telegram, WhatsApp, AI assistants over MCP, Buffer, Metricool, Later (through an automation tool) and your own webhook. GET /integrations/providers lists them with what each unlocks and whether it is ready for your account now.

**Does connecting cost credits?**
No. Connecting, testing and disconnecting are included (0 credits), with a daily fair use of 50 new connections and 100 tests per account, and up to 50 connections.

**How are my tokens stored?**
Sealed with AES-256-GCM and bound to your account and the platform, opened only in memory when used, refreshed before they expire, and wiped when you disconnect. The API never returns a token.

**What does "being set up by Lulubanana" mean?**
The platform needs a one-time registration on our side before anyone can sign in with it. Until then you can add public YouTube, TikTok and Instagram accounts by handle.

**Can a read-only key connect a platform?**
No. A read-only key can list the catalog and your connections; starting, testing and removing a connection need a full-access key.

**Where do I connect platforms in the app?**
Settings -> Integrations shows the same catalog with a status for each platform: Connected, Ready to connect, or Being set up by Lulubanana. Your own TikTok, YouTube and Instagram accounts are added under My channel.

More: https://lulubanana.com/developers/ - all endpoints https://lulubanana.com/developers/endpoints/ - research guide https://lulubanana.com/ai-guide.txt
