logo
Schedulin Developers

List channels

Channels are exposed as social accounts. Use their id as the socialAccountId when creating posts.

curl https://api.schedulin.app/v0/social-accounts \
  -H "x-api-key: sk_live_..."
import { SchedulinClient } from "@schedulin/sdk";

const client = new SchedulinClient({ apiKey: process.env.SCHEDULIN_API_KEY });

const accounts = await client.socialAccounts.list();
from schedulin import Schedulin

client = Schedulin(api_key=os.environ["SCHEDULIN_API_KEY"])

accounts = client.social_accounts.list()

Example response — list endpoints return the array under a data key:

{
  "data": [
    {
      "id": "acc_123",
      "platform": "instagram",
      "username": "@yourbrand",
      "displayName": "Your Brand",
      "profileImageUrl": "https://cdn.schedulin.app/...",
      "status": "connected",
      "refreshTokenValid": true,
      "analyticsDisabledAt": null,
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z"
    }
  ]
}