> For the complete documentation index, see [llms.txt](https://publer.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://publer.com/docs/api-reference/accounts.md). Agents can also search and read this documentation through its [MCP server](https://publer.com/docs/~gitbook/mcp).

# Accounts

Manage and retrieve social media accounts connected to your Publer workspaces. Use these accounts as targets when scheduling or publishing content.

### Requirements

* **Authentication**: Bearer API token
* **Scope**: `accounts`
* **Headers**:
  * `Authorization: Bearer-API YOUR_API_KEY`
  * `Publer-Workspace-Id: YOUR_WORKSPACE_ID`

### Endpoint

#### List Accounts

Retrieve all social media accounts in a workspace.

```http
GET /api/v1/accounts
```

Retrieves a list of all social media accounts available in the specified workspace.

## List Accounts

> Retrieves a list of social media accounts available in the specified workspace.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Accounts","description":"Endpoints for managing connected social accounts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"BearerApiAuth":[]}],"components":{"securitySchemes":{"BearerApiAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"API key authentication. Format: \"Bearer-API YOUR_API_KEY\""}},"schemas":{"Account":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the account"},"provider":{"type":"string","description":"The social network provider","enum":["bluesky","facebook","instagram","linkedin","twitter","tiktok","youtube","pinterest","google","wordpress_oauth","wordpress_basic","telegram","mastodon","threads"]},"name":{"type":"string","description":"The display name of the social media account"},"social_id":{"type":"string","description":"Unique identifier for the account on the social media platform"},"picture":{"type":"string","description":"URL to the account's avatar/logo"},"type":{"type":"string","description":"Account type. Values per provider:\n- `facebook`: `fb_page` (Page, including location Pages), `fb_group` (Group), `fb_profile` (Profile)\n- `instagram`: `ig_business` (connected via Facebook Login or Instagram Login)\n- `twitter`: `twitter`\n- `linkedin`: `in_page` (Page), `in_profile` (Profile)\n- `pinterest`: `pin_business` (Business), `pin_personal` (Personal)\n- `youtube`: `youtube` (Channel)\n- `tiktok`: `tiktok`\n- `google`: `google` (Business Profile location)\n- `wordpress_oauth`: `wordpress_oauth` (WordPress.com site)\n- `wordpress_basic`: `wordpress_basic` (self-hosted WordPress site)\n- `telegram`: `channel`, `group`, `supergroup`\n- `mastodon`: `mastodon`\n- `threads`: `threads`\n- `bluesky`: `bluesky`","enum":["fb_page","fb_group","fb_profile","ig_business","twitter","in_page","in_profile","pin_business","pin_personal","youtube","tiktok","google","wordpress_oauth","wordpress_basic","channel","group","supergroup","mastodon","threads","bluesky"]},"privacy_settings":{"type":"object","description":"Default post options saved in Publer for this account (its privacy settings preset), or `null` when none are saved. Returned only for the account types below, and each stores only its own keys:\n- `tiktok`: `privacy`, `comment`, `duet`, `stitch`, `promotional`, `paid`, `ai_generated`\n- `youtube`: `privacy`, `ai_generated`\n- `ig_business`: `trial_reel`, `feed`, `ai_generated`\n- `fb_page`, `threads`, `twitter`, `pin_business`, `pin_personal`: `ai_generated`\n\nThe keys match the `details` keys of a post's network content. Read-only in the API, and not applied to posts created through the API: copy the keys into `networks.<provider>.details` to use them.","properties":{"privacy":{"type":"string","description":"Privacy level. TikTok: `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`. YouTube: `public`, `unlisted`, `private`."},"comment":{"type":"boolean","description":"TikTok: enable comments (true = enable, false = disable)"},"duet":{"type":"boolean","description":"TikTok: enable duets"},"stitch":{"type":"boolean","description":"TikTok: enable stitch"},"promotional":{"type":"boolean","description":"TikTok: mark as branded/promotional content"},"paid":{"type":"boolean","description":"TikTok: mark as paid partnership"},"trial_reel":{"type":"string","description":"Instagram: share reels as trial reels, with this graduation strategy","enum":["MANUAL","SS_PERFORMANCE"]},"feed":{"type":"boolean","description":"Instagram: whether to share the reel to feed"},"ai_generated":{"type":"boolean","description":"Mark posts as AI-generated content. Where each network applies its label is described under `details.ai_generated` in that network's content."}}},"auto_add_music":{"type":"boolean","description":"TikTok accounts only: the account's auto add music preset, the default for adding music to photo posts. `true`, or `null` when not saved (treat `null` as off). Read-only in the API, and not applied to posts created through the API: set `networks.tiktok.details.auto_add_music` on a photo post to use it."}}},"401ErrorResponseWithWorkspace":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"403ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/accounts":{"get":{"summary":"List Accounts","description":"Retrieves a list of social media accounts available in the specified workspace.","tags":["Accounts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve accounts from","required":true}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

The list of accounts returned will include all social media accounts that you have connected to your Publer workspaces and have permission to access. These accounts can be used to schedule and publish content via the Posts API.

The accounts data provides important information about the social media profiles available for posting, including their configuration settings and current synchronization status.

### Supported Providers

Publer supports these network providers and account types:

<table data-header-hidden><thead><tr><th width="161.348388671875"></th><th width="191.26324462890625"></th><th></th></tr></thead><tbody><tr><td>Provider</td><td>Description</td><td>Account Types</td></tr><tr><td><code>facebook</code></td><td>Facebook</td><td>fb_page, fb_group, fb_profile</td></tr><tr><td><code>instagram</code></td><td>Instagram</td><td>ig_business</td></tr><tr><td><code>twitter</code></td><td>Twitter/X</td><td>twitter</td></tr><tr><td><code>linkedin</code></td><td>LinkedIn</td><td>in_page, in_profile</td></tr><tr><td><code>pinterest</code></td><td>Pinterest</td><td>pin_business, pin_personal</td></tr><tr><td><code>youtube</code></td><td>YouTube</td><td>youtube</td></tr><tr><td><code>tiktok</code></td><td>TikTok</td><td>tiktok</td></tr><tr><td><code>google</code></td><td>Google Business</td><td>google</td></tr><tr><td><code>wordpress</code></td><td>WordPress</td><td>wordpress_oauth, wordpress_basic</td></tr><tr><td><code>telegram</code></td><td>Telegram</td><td>channel, group, supergroup</td></tr><tr><td><code>mastodon</code></td><td>Mastodon</td><td>mastodon</td></tr><tr><td><code>threads</code></td><td>Threads</td><td>threads</td></tr><tr><td><code>bluesky</code></td><td>Bluesky</td><td>bluesky</td></tr></tbody></table>

### **Get Account**

**Retrieves a single connected social account.**

```http
GET /api/v1/accounts/{id}
```

## Get Account

> Retrieves a single connected social account.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Accounts","description":"Endpoints for managing connected social accounts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"BearerApiAuth":[]}],"components":{"securitySchemes":{"BearerApiAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"API key authentication. Format: \"Bearer-API YOUR_API_KEY\""}},"schemas":{"Account":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the account"},"provider":{"type":"string","description":"The social network provider","enum":["bluesky","facebook","instagram","linkedin","twitter","tiktok","youtube","pinterest","google","wordpress_oauth","wordpress_basic","telegram","mastodon","threads"]},"name":{"type":"string","description":"The display name of the social media account"},"social_id":{"type":"string","description":"Unique identifier for the account on the social media platform"},"picture":{"type":"string","description":"URL to the account's avatar/logo"},"type":{"type":"string","description":"Account type. Values per provider:\n- `facebook`: `fb_page` (Page, including location Pages), `fb_group` (Group), `fb_profile` (Profile)\n- `instagram`: `ig_business` (connected via Facebook Login or Instagram Login)\n- `twitter`: `twitter`\n- `linkedin`: `in_page` (Page), `in_profile` (Profile)\n- `pinterest`: `pin_business` (Business), `pin_personal` (Personal)\n- `youtube`: `youtube` (Channel)\n- `tiktok`: `tiktok`\n- `google`: `google` (Business Profile location)\n- `wordpress_oauth`: `wordpress_oauth` (WordPress.com site)\n- `wordpress_basic`: `wordpress_basic` (self-hosted WordPress site)\n- `telegram`: `channel`, `group`, `supergroup`\n- `mastodon`: `mastodon`\n- `threads`: `threads`\n- `bluesky`: `bluesky`","enum":["fb_page","fb_group","fb_profile","ig_business","twitter","in_page","in_profile","pin_business","pin_personal","youtube","tiktok","google","wordpress_oauth","wordpress_basic","channel","group","supergroup","mastodon","threads","bluesky"]},"privacy_settings":{"type":"object","description":"Default post options saved in Publer for this account (its privacy settings preset), or `null` when none are saved. Returned only for the account types below, and each stores only its own keys:\n- `tiktok`: `privacy`, `comment`, `duet`, `stitch`, `promotional`, `paid`, `ai_generated`\n- `youtube`: `privacy`, `ai_generated`\n- `ig_business`: `trial_reel`, `feed`, `ai_generated`\n- `fb_page`, `threads`, `twitter`, `pin_business`, `pin_personal`: `ai_generated`\n\nThe keys match the `details` keys of a post's network content. Read-only in the API, and not applied to posts created through the API: copy the keys into `networks.<provider>.details` to use them.","properties":{"privacy":{"type":"string","description":"Privacy level. TikTok: `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`. YouTube: `public`, `unlisted`, `private`."},"comment":{"type":"boolean","description":"TikTok: enable comments (true = enable, false = disable)"},"duet":{"type":"boolean","description":"TikTok: enable duets"},"stitch":{"type":"boolean","description":"TikTok: enable stitch"},"promotional":{"type":"boolean","description":"TikTok: mark as branded/promotional content"},"paid":{"type":"boolean","description":"TikTok: mark as paid partnership"},"trial_reel":{"type":"string","description":"Instagram: share reels as trial reels, with this graduation strategy","enum":["MANUAL","SS_PERFORMANCE"]},"feed":{"type":"boolean","description":"Instagram: whether to share the reel to feed"},"ai_generated":{"type":"boolean","description":"Mark posts as AI-generated content. Where each network applies its label is described under `details.ai_generated` in that network's content."}}},"auto_add_music":{"type":"boolean","description":"TikTok accounts only: the account's auto add music preset, the default for adding music to photo posts. `true`, or `null` when not saved (treat `null` as off). Read-only in the API, and not applied to posts created through the API: set `networks.tiktok.details.auto_add_music` on a photo post to use it."}}},"401ErrorResponseWithWorkspace":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"403ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/accounts/{id}":{"get":{"summary":"Get Account","tags":["Accounts"],"description":"Retrieves a single connected social account.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace containing the resource"},{"schema":{"type":"string"},"name":"id","in":"path","required":true,"description":"ID of the account"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

Returns the same account shape as `GET /api/v1/accounts`, including `provider`, `name`, `social_id`, `picture`, `type` and the account's default settings.

### Related Resources

* [Workspaces API](https://publer.com/docs/api-reference/workspaces.md) - Manage organizational units
* [Posts API](https://publer.com/docs/posting/create-posts.md) - Create and publish content to accounts
* [Media API](https://publer.com/docs/posting/create-posts/media-handling.md) - Upload media files for posting


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://publer.com/docs/api-reference/accounts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
