> ## Documentation Index
> Fetch the complete documentation index at: https://docs.followr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Social accounts

> Connect social accounts, list them, and keep their connections alive.

A **social account** is a profile, Page or channel connected to one company. Posts go out through it, so a company needs one before it can publish.

## Connect an account

Most networks need a browser sign-in that only a person can complete. Do it in the app under **Company settings > Integrations**.

| Network | Connect |
| - | - |
| Instagram, Facebook, Threads, X, LinkedIn, TikTok, YouTube, Pinterest | In the app |
| Canva | In the app. It's a source of designs, not a place to publish. |
| Bluesky | In the app, or with the API and an app password |
| Medium | In the app, or with the API and an integration token |

For Bluesky, create an app password under **Settings > Privacy and security > App passwords**, then:

```bash cURL theme={null}
curl --request POST https://api.followr.ai/api/companies/1287/socialNetworks \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{
    "type": "bluesky",
    "handle": "northsidecoffee.bsky.social",
    "social_token": "YOUR_APP_PASSWORD"
  }'
```

Followr checks the credentials with the network before saving them, and the API never returns credentials or tokens. A company holds **one account per network**: connecting a network it already has fails with `400`. Reconnecting a disconnected account brings back the same `id`, with its post history.

### Finish the setup in the app

Some networks need one more choice after sign-in:

* **Facebook and Instagram**: the Page (and its linked Instagram account). Until then, the account can't publish.
* **LinkedIn**: the personal profile or a company page.
* **YouTube**: the channel's region.

## List a company's accounts

```bash cURL theme={null}
curl https://api.followr.ai/api/companies/1287/socialNetworks \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json"
```

Each account has an `id`, a `type` (the network), `name`, `username` and `expires_at`. A post uses the `type` as its `social_network_type`, never the account `id`. For each network's text and media rules, see [Publishing posts](https://docs.followr.ai/guides/publishing-posts.md).

## Keep connections alive

`expires_at` is when the current connection ends:

* Followr renews most connections when they are used.
* When a network refuses a connection (password changed, access revoked, or expired), `expires_at` moves to the past and the company owner gets an email to reconnect.
* `expires_at` is `null` for Bluesky and Medium: they don't expire on a date.

> [!NOTE]
>
> An account whose `expires_at` is in the past must be reconnected in the app. Until then, its posts fail and endpoints that call its network answer `409`. Check `expires_at` before you schedule.

## Network extras

| Need | Endpoints |
| - | - |
| A Pinterest board | [`GET`](https://docs.followr.ai/api-reference/pinterest/list-pinterest-boards) or `POST /socialNetworks/{social_network_id}/boards`. Put its ID in the post's `preferences.board_id`. |
| A YouTube category or playlist | [`GET /socialNetworks/{social_network_id}/categories`](https://docs.followr.ai/api-reference/youtube/list-youtube-video-categories), and [`GET`](https://docs.followr.ai/api-reference/youtube/list-youtube-playlists) or `POST /socialNetworks/{social_network_id}/playlists` |
| A Canva design | List with `GET /companies/{company_id}/canva/designs`, [export](https://docs.followr.ai/api-reference/canva/export-a-canva-design.md) with `POST /companies/{company_id}/canva/designExportJob`, then poll `GET /companies/{company_id}/canva/designExportJob/{id}`. Copy the file into the [media library](https://docs.followr.ai/guides/uploading-media.md) right away: export URLs are temporary. |

> [!TIP]
>
> Pinterest board IDs can exceed JavaScript's safe integer range. Keep them as strings and send them that way (`"board_id": "1093248537482910384"`).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.