# 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
This site has an agentic ask interface you may use to query the documentation dynamically 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/index.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.

---

# Overview

{% hint style="info" %}
**Access & Availability**\
The Publer API is available exclusively to Business and Enterprise customers.\
\
[Upgrade your plan](https://publer.com/plans)
{% endhint %}

### Introduction

Welcome to the Publer API. This RESTful JSON API brings Publer’s social media scheduling, publishing, and analytics capabilities into your own applications, scripts, or services. Whether you’re automating campaigns, building dashboards, or integrating content workflows, the Publer API provides the same power you know from the Publer web platform.

### What is Publer?

Publer is an all-in-one social media management solution. From a single dashboard you can:

* Schedule and publish posts
* Manage accounts and team workspaces
* Track performance with built-in analytics

Supported networks: Facebook, Instagram, Twitter/X, LinkedIn, Pinterest, YouTube, TikTok, Google Business Profile, WordPress, Telegram, Mastodon, Threads, Bluesky.

### What can I do with the Publer API?

* Create, schedule, and publish posts (text, images, videos, links, polls, carousels, PDFs)
* Upload, organize, and reuse media assets (images, videos, GIFs, documents)
* List workspaces, accounts, and user details
* Retrieve posts and their performance analytics
* Analytics:
  * Charts: Discover available analytics charts and fetch chart data for dashboards
  * Post Insights: Per‑post metrics with filtering, sorting, pagination, and competitor mode
  * Hashtag Analysis: Aggregate hashtag performance plus top performing posts per hashtag
  * Best Times to Post: Day/hour heatmap for optimal posting times (supports competitor view)
  * Members: Per‑member activity and performance (posts, reach, engagements)
  * Competitor Analysis: List competitors and compare followers, engagement, reach, and posting mix
* Build custom integrations, dashboards, or bots

### API Specifications

<table><thead><tr><th width="193.2862548828125">Property</th><th>Value</th></tr></thead><tbody><tr><td>Base URL</td><td><code>https://app.publer.com/api/v1</code></td></tr><tr><td>Format</td><td>JSON</td></tr><tr><td>Auth Method</td><td>Bearer-API Token</td></tr><tr><td>Version</td><td>v1 (semantic versioning MAJOR.MINOR.PATCH)</td></tr><tr><td>Rate Limits</td><td>100 requests/2 minutes per user</td></tr></tbody></table>

### Authentication

Include your API token in every request header:

```http
Authorization: Bearer-API YOUR_API_TOKEN
Publer-Workspace-Id: YOUR_WORKSPACE_ID // Required on special cases
Content-Type: application/json
```

Manage and regenerate tokens in [**Settings → Access & Login →** **API Keys**](https://publer.com/help/en/article/how-to-access-the-publer-api-1w08edo/).

### Getting Started

1. **Generate an API key** in your Publer Dashboard.
2. **Validate your credentials**:

   ```sh
   curl -H "Authorization: Bearer YOUR_API_TOKEN" \
        https://app.publer.com/api/v1/me
   ```
3. **Follow our** [quickstart guide](https://publer.com/docs/getting-started/quickstart) to make your first API request
4. **Explore the full** [**API reference**](https://publer.com/docs/api-reference/introduction) for detailed endpoint docs.

### Support & Resources

If you need assistance with the API:

* Review our [quickstart guide](https://publer.com/docs/getting-started/quickstart) for basic concepts
* Check the [API reference](https://publer.com/docs/api-reference/introduction) for detailed endpoint information
* Contact <support@publer.com> for technical issues

### Jump right in

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Quickstart</strong></td><td>Get up and running with the API in minutes</td><td></td><td></td><td><a href="https://publer.com/docs/getting-started/quickstart">Quickstart Guide</a></td></tr><tr><td><strong>Authentication</strong></td><td>Learn how to authenticate your API requests</td><td></td><td></td><td><a href="broken://pages/O1wndcfhZXqO3zYWivDJ">Broken link</a></td></tr><tr><td><strong>API Reference</strong></td><td>Explore detailed endpoint documentation</td><td></td><td></td><td><a href="https://publer.com/docs/api-reference/introduction">Introduction</a></td></tr></tbody></table>


# Quickstart Guide

{% hint style="info" %}
**BUSINESS ACCESS ONLY**: The Publer API is currently available exclusively to Publer Business users.
{% endhint %}

This guide walks you through the core steps to integrate with Publer’s API in minutes. By the end, you’ll have published your first scheduled post.

### Prerequisites

* A Business Publer account
* Basic familiarity with HTTP/JSON APIs
* A command-line tool (curl) or API client (Postman, Insomnia)

### Step 1: Generate an API Key

1. Sign in to Publer and verify you have Business plan access.
2. Go to **Settings → Access & Login →** **API Keys**.
3. Click **Create API Key**.
4. Enter a descriptive name, then select scopes:
   * `workspaces`
   * `accounts`
   * `posts`
5. Click **Create**.
6. **Copy and store** the key securely—this value will not be shown again.

### Step 2: List Workspaces

Before making other requests, let's retrieve your workspaces. The workspace ID is required in the header for most API operations:

```bash
curl -X GET "https://app.publer.com/api/v1/workspaces" \
  -H "Authorization: Bearer-API YOUR_API_KEY"
```

#### **Sample** Response

```json
[
    {
      "id": "5f8d7a62c9e77e001f36e3a1",
      "name": "My Primary Workspace",
      "role": "owner",
      "picture": "https://publer.io/uploads/workspaces/thumb_mini_workspace_123.png"
    },
    {
      "id": "60a2e45f9b3c8d002a4b7c32",
      "name": "Client Workspace",
      "role": "admin",
      "picture": "https://publer.io/uploads/workspaces/thumb_mini_workspace_456.png"
    }
]
```

Now you can use a workspace ID in your subsequent requests by including it in the header:

```
Publer-Workspace-Id: 5f8d7a62c9e77e001f36e3a1
```

### Step 3: List Social Accounts

Next, let's retrieve the social media accounts in your workspace. You'll need the account IDs to specify where to publish your posts:

```bash
curl -X GET "https://app.publer.com/api/v1/accounts" \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-ID: 5f8d7a62c9e77e001f36e3a1"
```

#### Expected Response

```json
{
  "accounts": [
    {
      "id": "63c675b54e299e9cf2b667ea",
      "name": "My Facebook Page",
      "provider": "facebook",
      "type": "page",
      "picture": "https://publer.io/uploads/accounts/thumb_mini_facebook_page.jpg",
      "status": "active"
    },
    {
      "id": "63c675d74e299e9cf2b667eb",
      "name": "Company LinkedIn Page",
      "provider": "linkedin",
      "type": "page",
      "picture": "https://publer.io/uploads/accounts/thumb_mini_linkedin_page.jpg",
      "status": "active"
    },
    {
      "id": "63c675e94e299e9cf2b667ec",
      "name": "Brand Twitter",
      "provider": "twitter",
      "type": "profile",
      "picture": "https://publer.io/uploads/accounts/thumb_mini_twitter.jpg",
      "status": "active"
    }
  ]
}
```

Make note of the account IDs as you'll need them to specify where to publish your content in the next step.

### Step 4: Create a Scheduled Post

Make your first scheduled post with one API call:

```bash
curl -X POST "https://app.publer.com/api/v1/posts/schedule" \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-Id: 5f8d7a62c9e77e001f36e3a1" \
  -H "Content-Type: application/json" \
  -d '{
    "bulk": {
      "state": "scheduled",
      "posts": [
        {
          "networks": {
            // You need to provide the network provider as the key, e.g., facebook, twitter
            "facebook": {
              "type": "status", // Type of the post
              "text": "Status Update Post" // Text of the post
            }
          },
          "accounts": [
            {
              "id": "63c675b54e299e9cf2b667ea", // Id of the selected account
              "scheduled_at": "2025-09-06T14:16+02:00" // Scheduled time
            }
          ]
        }
      ]
    }
  }'
```

#### **Sample** Response

The API returns a job ID that you can use to check the status of your request:

```json
{
  "job_id": "68176fa0f0eb419444bee686"
}
```

### Step 5: Poll Job Status

Posts are created asynchronously. Use the returned `job_id` to check progress:

```bash
curl -X GET "https://app.publer.com/api/v1/job_status/68176fa0f0eb419444bee686" \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-Id: 5f8d7a62c9e77e001f36e3a1"
```

#### Successful Job Response

```json
{
  "status": "complete",
  "payload": {
    "failures": {}
  },
  "plan": {
    // other account-specific data
  }
}
```

#### Failed Job Response

If there's an error with your request, the response will include details about what went wrong:

```json
{
  "status": "complete",
  "payload": {
    "failures":[
        {
          "account_id": "63c675b54e299e9cf2b667ea",
          "account_name": "Test Page",
          "provider": "facebook",
          "message": "There's another post at this time. A one minute gap is required between posts"
        }
    ]
  },
  "plan": {
    // other account-specific data
  }
}
```

### Step 6: Verify Scheduled Posts

List your scheduled posts to confirm creation:

```bash
curl -X GET "https://app.publer.com/api/v1/posts?state=scheduled" \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-ID: 5f8d7a62c9e77e001f36e3a1"
```

#### **Sample** Response

```json
{
  "posts": [
    {
      "id": "68176f0e8bee9dc9b0ce3427",
      "text": "Status Update Post for 2025-05-07!",
      "url": null,
      "title": null,
      "state": "scheduled",
      "type": "status",
      "account_id": "63c675b54e299e9cf2b667ea",
      "user": {
        "id": "5b1ec026db27977424e8599e",
        "name": "Business User",
        "picture": "https://publer.io/uploads/photos/thumb_mini_magick20250123-28707-otuw0w.png"
      },
      "scheduled_at": "2025-05-08T14:30:00.000+02:00",
      "post_link": null
    }
  ],
  "total": 1
}
```

### Understanding the Workflow

1. **Generate** an API key
2. **List** workspaces → pick a workspace ID
3. **List** accounts → pick account IDs
4. **Submit** a post creation request
5. **Poll** job status until `completed`
6. **Fetch** posts to verify

This async pattern scales across multiple workspaces, accounts, and post types.

### Next Steps

* Explore [**Content Types**](https://publer.com/docs/posting/create-posts/content-types) (photos, videos, links, polls)
* Dive into [**Media Handling**](https://publer.com/docs/posting/create-posts/media-handling) and upload workflows
* Learn about [**Publishing Methods**](https://publer.com/docs/posting/create-posts/publishing-methods) (drafts, recurring posts)
* Review [**Network Reference**](https://publer.com/docs/posting/create-posts/networks) for platform-specific limits

For full API details, see the [**API Reference**](https://publer.com/docs/api-reference/introduction).\
For assistance, contact <support@publer.com>.

<br>


# Authentication

Every Publer API request must include a valid API key. This guide shows you how to obtain, use, and manage your keys securely.

### Obtaining an API Key

1. Sign in to your Publer account (Business plan).
2. Navigate to [**Settings → Access & Login →** **API Keys**](https://publer.com/help/en/article/how-to-access-the-publer-api-1w08edo/).
3. Click **Create API Key**.
4. Enter a descriptive name for your key.
5. Select only the scopes your integration needs (e.g., `posts`, `media`, `accounts`).
6. Click **Create**.
7. **Copy** and **securely store** the key — you won’t see it again.

### Using Your API Key

Include your key in the `Authorization` header for every request. Also provide your workspace ID:

```sh
Authorization: Bearer-API YOUR_API_KEY  
Publer-Workspace-Id: YOUR_WORKSPACE_ID  
Content-Type: application/json
```

Example (list posts):

```bash
curl -X GET https://app.publer.com/api/v1/posts \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-Id: 5f8d7a62c9e77e001f36e3a1"
```

### API Key Scopes

When creating an API key, you must select specific permission scopes based on your integration needs:

<table data-header-hidden><thead><tr><th width="134.11492919921875"></th><th width="407.987548828125"></th><th></th></tr></thead><tbody><tr><td>Scope</td><td>Description</td><td>Example Endpoints</td></tr><tr><td><code>workspaces</code></td><td>Retrieve user's workspaces</td><td><code>/workspaces</code></td></tr><tr><td><code>accounts</code></td><td>Retrieve user's accounts of selected workspace</td><td><code>/accounts</code></td></tr><tr><td><code>posts</code></td><td>Manage user's posts</td><td><code>/posts</code></td></tr><tr><td><code>media</code></td><td>Upload and list media assets</td><td><code>/media</code></td></tr></tbody></table>

### Common Authentication Errors

* **401 Unauthorized**\
  • Missing or invalid `Authorization` header\
  • Key revoked or expired
* **403 Forbidden**\
  • Insufficient scopes for the endpoint\
  • Missing `Publer-Workspace-Id` header

Always inspect the JSON error response for `message` and `code`.

### Security Best Practices

* **Environment Variables**\
  Store your key outside code—e.g., in a `.env` file:

  ```bash
  PUBLER_API_KEY=your_api_key_here
  ```
* **Secrets Management**\
  Use a vault (AWS Secrets Manager, Azure Key Vault, HashiCorp Vault).
* **Key Rotation**\
  Rotate keys every 90–180 days, or after team changes/incidents.
* **Least Privilege**\
  Create separate keys for different use cases.
* **Safe Logging**\
  Never log full keys; mask all but the last 4 characters:

  ```
  console.log(`Using key ***${apiKey.slice(-4)}`);
  ```
* **Always HTTPS**\
  Never send keys over plain HTTP.

### Troubleshooting

If you continue to see authentication errors:

1. Confirm your key is active and not expired.
2. Verify you have the correct header names and values.
3. Double-check that your key has the required scopes.
4. Contact <support@publer.com> for assistance.

### Related Documentation

* [Quickstart Guide](https://publer.com/docs/getting-started/quickstart)
* [Rate Limits](https://publer.com/docs/getting-started/rate-limits)
* [API Reference](https://publer.com/docs/api-reference/introduction)


# Rate Limits

To keep our service reliable and fair, the Publer API enforces rate limits on all requests. Limits are applied per user account (across all API keys) and use a fixed-window algorithm.

### Default Limits

<table><thead><tr><th width="189.25604248046875">Limit Window</th><th>Requests Allowed</th></tr></thead><tbody><tr><td>2-minute fixed</td><td>100 requests</td></tr></tbody></table>

> Note: If you need higher throughput for your integration, see [**Requesting Higher Limits**](#requesting-higher-limits) below.

### Tracking Your Usage

When you reach the rate limits, every API response includes these headers so you can monitor your rate limit status:

<table><thead><tr><th width="227.82421875">Header</th><th>Description</th></tr></thead><tbody><tr><td>X-RateLimit-Limit</td><td>Total requests allowed in the current window</td></tr><tr><td>X-RateLimit-Remaining</td><td>Requests remaining in the current time window</td></tr><tr><td>X-RateLimit-Reset</td><td>UNIX timestamp when your window resets (next available slot)</td></tr></tbody></table>

**Example Response Headers**

```bash
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1714558492
```

### When You Exceed the Limit

If you go over your quota, the API returns:

* HTTP Status: `429 Too Many Requests`
* Response Body:

  ```json
  {
    "error": "Rate limit exceeded. Retry later."
  }
  ```
* Headers will show `X-RateLimit-Remaining: 0` and a future `X-RateLimit-Reset`.

### Daily Post Limits

While most social networks don't explicitly limit daily posts, Publer implements posting limits to prevent spam, ensure compliance with platform guidelines, and allocate resources fairly. These limits are calculated on a rolling 24-hour basis in **UTC timezone**.

#### Post Limits by Plan

<table><thead><tr><th width="221.37188720703125">Platform</th><th width="151.285400390625">Free Plan</th><th>Professional Plan</th><th>Business Plan</th></tr></thead><tbody><tr><td><strong>Facebook Posts &#x26; Reels</strong></td><td>12 / day / profile</td><td>24 / day / profile</td><td>36 / day / profile</td></tr><tr><td><strong>Facebook Stories</strong></td><td>12</td><td>24</td><td>36</td></tr><tr><td><strong>Instagram Posts &#x26; Reels</strong></td><td>15</td><td>20</td><td>25</td></tr><tr><td><strong>Instagram Stories</strong></td><td>15</td><td>20</td><td>25</td></tr><tr><td><strong>Threads App Posts</strong></td><td>150</td><td>200</td><td>250</td></tr><tr><td><strong>TikTok Videos</strong></td><td>15</td><td>20</td><td>25</td></tr><tr><td><strong>Twitter / X Posts</strong></td><td>25</td><td>50</td><td>100</td></tr><tr><td><strong>Mastodon Posts</strong></td><td>25</td><td>50</td><td>100</td></tr><tr><td><strong>Bluesky Posts</strong></td><td>25</td><td>50</td><td>100</td></tr><tr><td><strong>LinkedIn Profile Posts</strong></td><td>10</td><td>12</td><td>14</td></tr><tr><td><strong>LinkedIn Page Posts</strong></td><td>12</td><td>18</td><td>24</td></tr><tr><td><strong>Pinterest Pins</strong></td><td>12</td><td>24</td><td>36</td></tr><tr><td><strong>Google Business Updates</strong></td><td>5</td><td>10</td><td>15</td></tr><tr><td><strong>YouTube Videos &#x26; Shorts</strong></td><td>5</td><td>10</td><td>15</td></tr><tr><td><strong>WordPress Articles</strong></td><td>12</td><td>18</td><td>24</td></tr><tr><td><strong>Telegram Messages</strong></td><td>5</td><td>10</td><td>15</td></tr></tbody></table>

#### Important Notes

* **Rolling 24-hour window:** Limits are calculated based on the previous 24 hours from the current time (UTC)
* **Per profile/account:** Facebook limits apply per connected profile or page
* **Anti-spam protection:** These limits help maintain a balance between automation and spam prevention
* **Platform compliance:** Limits align with each social network's community guidelines

### Best Practices to Avoid Throttling

* **Cache responses** for idempotent or infrequently changing endpoints.
* **Use bulk endpoints** (e.g., `POST /api/v1/posts/schedule` for multiple posts).
* **Stagger non-urgent requests** during off-peak hours.
* **Monitor headers** and throttle your client.
* **Implement exponential backoff** when you approach or hit the limit.

### Requesting Higher Limits

For integrations requiring a higher rate limit, please contact us with:

* Your expected request volume (per minute/hour/day)
* Use case description and critical endpoints
* Project or company name and contact info

Email: <support@publer.com>


# Introduction

{% hint style="info" %}
**BUSINESS ACCESS ONLY**: The Publer API is currently available exclusively to Publer Business users.
{% endhint %}

### What Is the Publer API?

A RESTful JSON interface for automating social media workflows—scheduling, publishing, media management, and analytics—across multiple networks.

### Base URL

All endpoints share this root URL:

```http
https://app.publer.com/api/v1/
```

### Authentication

Include your API key and workspace ID on almost every request:

```http
Authorization: Bearer-API YOUR_API_KEY
Publer-Workspace-Id: YOUR_WORKSPACE_ID
Content-Type: application/json
```

### Request Format

#### GET

Use query parameters for filters and pagination:

```http
GET /posts?state=scheduled&from=2025-04-20
```

#### POST, PUT, PATCH

Send JSON in the request body:

```json
POST /posts
{
  "bulk": {
    "state": "scheduled",
    "posts": [ … ]
  }
}
```

#### DELETE

Send identifiers as query parameters or in the body; no body required (unless otherwise noted):

```http
DELETE /posts/post_ids[]={post_is}
```

### Response Format

All responses are JSON.

#### Success

* **Synchronous endpoints** return the requested resource or collection.
* **Asynchronous endpoints** (e.g., post creation) return a `job_id`:

  ```json
  { "job_id": "6810dec617eae6d55d7a5e5b" }
  ```

#### Error

* Status codes indicate general error type (4xx, 5xx).
* The response body contains an `errors` array:

  ```json
  { "errors": ["Detailed error message"] }
  ```

#### Common HTTP Status Codes

* 200 OK
* 201 Created
* 202 Accepted (async)
* 400 Bad Request
* 401 Unauthorized
* 403 Forbidden
* 404 Not Found
* 429 Too Many Requests
* 500 Internal Server Error

### Versioning

Current version: **v1** (in the URL path).\
We follow [Semantic Versioning](https://semver.org/). Breaking changes only occur on MAJOR version bumps; you will be notified in advance.

### Asynchronous Operations

1. Submit your request → **202 Accepted** + `{"job_id": "…"}`
2. Poll the job status endpoint until complete:

   ```sh
   GET /job_status/{job_id}
   ```

   ```json
   {
     "status": "completed",
     "payload": { "failures": {} }
   }
   ```

### Date & Time

All timestamps use ISO 8601 with timezone:

```
YYYY-MM-DDThh:mm:ss±hh:mm
```

Example: `2025-05-04T14:58:35+00:00`

### Privacy & Security

* Always use HTTPS.
* Sensitive fields may be redacted.
* Adhere to least-privilege scope selection.

### Next Steps

* [Users API](https://publer.com/docs/api-reference/users)
* [Workspaces API](https://publer.com/docs/api-reference/workspaces)
* [Accounts API](https://publer.com/docs/api-reference/accounts)
* [Posts API](https://publer.com/docs/api-reference/posts)

For implementation examples, see the Quickstart Guide and sections on creating content, media handling, and network-specific formats.


# Users

Retrieve profile and application settings for the currently authenticated user. Use this endpoint to adapt your integration to user preferences and entitlements.

### Requirements

* **Authentication**: Bearer API token
* **Headers**:
  * `Authorization: Bearer-API YOUR_API_KEY`

### Endpoint

#### Get Current User

```http
GET /api/v1/users/me
```

## Get Current User

> Retrieves information about the currently authenticated user.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Users","description":"Endpoints for managing user accounts and authentication"}],"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":{"User":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the user"},"email":{"type":"string","format":"email","description":"Email address of the user"},"name":{"type":"string","description":"Full name of the user"},"first_name":{"type":"string","description":"First name of the user"},"picture":{"type":"string","description":"URL to the profile picture of the user"}}},"401ErrorResponse":{"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":{"/users/me":{"get":{"summary":"Get Current User","description":"Retrieves information about the currently authenticated user.","tags":["Users"],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Related Resources

* [Authentication](broken://pages/O1wndcfhZXqO3zYWivDJ) - Managing API keys and scopes
* [Workspaces API](https://publer.com/docs/api-reference/workspaces) - Access workspace information
* [Rate Limits](https://publer.com/docs/getting-started/rate-limits) - Understanding API usage limits


# Workspaces

Manage organizational units (“workspaces”) that group social accounts, members, and content. Workspaces help agencies, brands, and departments keep clients and campaigns separate under a single Publer login.

### Requirements

* **Authentication**: Bearer API token
* **Scope**: `workspaces`
* **Headers**:
  * `Authorization: Bearer-API YOUR_API_KEY`

### Endpoint

#### List Workspaces

Retrieve all workspaces accessible by the authenticated user.

```http
GET /api/v1/workspaces
```

## List Workspaces

> Retrieves a list of all workspaces that the authenticated user has access to.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Workspaces","description":"Endpoints for managing workspaces and teams"}],"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":{"Workspace":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the workspace"},"owner":{"type":"object","description":"Information about the workspace owner","properties":{"id":{"type":"string","description":"Unique identifier for the owner"},"email":{"type":"string","description":"Email address of the owner"},"name":{"type":"string","description":"Username of the owner"},"first_name":{"type":"string","description":"First name of the owner"},"picture":{"type":"string","description":"URL to the owner's profile picture"}}},"name":{"type":"string","description":"The workspace's display name"},"members":{"type":"array","description":"List of users with access to the workspace","items":{"type":"object"}},"plan":{"type":"string","description":"Subscription plan of the workspace"},"picture":{"type":"string","description":"URL to the workspace's logo"}}},"401ErrorResponse":{"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":{"/workspaces":{"get":{"summary":"List Workspaces","description":"Retrieves a list of all workspaces that the authenticated user has access to.","tags":["Workspaces"],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Workspace"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Working with Workspaces

* A user can belong to multiple workspaces.
* Each workspace has its own accounts, posts, and settings.
* Use the workspace context (`Publer-Workspace-Id` header) to target API calls at the correct workspace.

### Workspace Context for Other Endpoints

Many endpoints require you to specify which workspace you’re operating in. Include the `Publer-Workspace-Id` header:

```bash
curl -X GET https://app.publer.com/api/v1/accounts \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-Id: 61a7c2e4f9e8c3b2d1e0f9a8"
```

### Get Workspace

Retrieves a single workspace the authenticated user has access to.

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

## Get Workspace

> Retrieves a single workspace the authenticated user has access to.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Workspaces","description":"Endpoints for managing workspaces and teams"}],"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":{"Workspace":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the workspace"},"owner":{"type":"object","description":"Information about the workspace owner","properties":{"id":{"type":"string","description":"Unique identifier for the owner"},"email":{"type":"string","description":"Email address of the owner"},"name":{"type":"string","description":"Username of the owner"},"first_name":{"type":"string","description":"First name of the owner"},"picture":{"type":"string","description":"URL to the owner's profile picture"}}},"name":{"type":"string","description":"The workspace's display name"},"members":{"type":"array","description":"List of users with access to the workspace","items":{"type":"object"}},"plan":{"type":"string","description":"Subscription plan of the workspace"},"picture":{"type":"string","description":"URL to the workspace's logo"}}},"401ErrorResponse":{"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":{"/workspaces/{id}":{"get":{"summary":"Get Workspace","tags":["Workspaces"],"description":"Retrieves a single workspace the authenticated user has access to.","parameters":[{"schema":{"type":"string"},"name":"id","in":"path","required":true,"description":"ID of the workspace"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Forbidden - the workspace does not belong to this user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

{% hint style="info" %}
Like `GET /api/v1/workspaces`, this endpoint does not require the `Publer-Workspace-Id` header — the workspace is identified by the path. A workspace the user cannot access returns **403**.
{% endhint %}

### Related Resources

* [Users API](https://publer.com/docs/api-reference/users) - Access user profile information
* [Accounts API](https://publer.com/docs/api-reference/accounts) - Access social accounts within workspaces
* [Posts API](https://publer.com/docs/posting/create-posts) — Create, schedule, and manage content


# 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) - Manage organizational units
* [Posts API](https://publer.com/docs/posting/create-posts) - Create and publish content to accounts
* [Media API](https://publer.com/docs/posting/create-posts/media-handling) - Upload media files for posting


# Posts

The Posts API lets you list, filter, and inspect social media posts across your connected accounts. Build dashboards, content calendars, or analytics by combining powerful query parameters.

### Requirements

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

### Endpoint

#### List Posts

Retrieve posts with optional filters and pagination.

```http
GET /api/v1/posts
```

#### Query Parameters

<table><thead><tr><th width="147.7412109375">Parameter</th><th width="77.00274658203125">Type</th><th width="155.2493896484375">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>state</code></td><td>string</td><td>No</td><td>Filter by a single post state (see <strong>State Values</strong> below)</td></tr><tr><td><code>state[]</code></td><td>array</td><td>No</td><td>Filter by multiple post states</td></tr><tr><td><code>from</code></td><td>string</td><td>Yes if <code>to</code> used</td><td>ISO date or datetime; include posts on/after this timestamp</td></tr><tr><td><code>to</code></td><td>string</td><td>Yes if <code>from</code> used</td><td>ISO date or datetime; include posts on/before this timestamp</td></tr><tr><td><code>page</code></td><td>integer</td><td>No</td><td>Page number (default: 0)</td></tr><tr><td><code>account_ids[]</code></td><td>array</td><td>No</td><td>List of account IDs to filter by</td></tr><tr><td><code>query</code></td><td>string</td><td>No</td><td>Full-text search keyword in post content</td></tr><tr><td><code>postType</code></td><td>string</td><td>No</td><td>Filter by post type (see <strong>Type Values</strong> below)</td></tr><tr><td><code>member_id</code></td><td>string</td><td>No</td><td>Filter posts created by a specific workspace member</td></tr></tbody></table>

**State Values**

<table data-header-hidden><thead><tr><th width="237.26531982421875"></th><th></th></tr></thead><tbody><tr><td>Value</td><td>Description</td></tr><tr><td><code>all</code></td><td>All posts regardless of state</td></tr><tr><td><code>scheduled</code></td><td>All scheduled posts</td></tr><tr><td><code>scheduled_approved</code></td><td>Scheduled posts that have been approved</td></tr><tr><td><code>scheduled_pending</code></td><td>Scheduled posts pending approval</td></tr><tr><td><code>scheduled_declined</code></td><td>Scheduled posts that were declined</td></tr><tr><td><code>scheduled_reauth</code></td><td>Scheduled posts requiring account reauthorization</td></tr><tr><td><code>scheduled_locked</code></td><td>Scheduled posts that are locked</td></tr><tr><td><code>published</code></td><td>All published posts</td></tr><tr><td><code>published_posted</code></td><td>Posts that were successfully published</td></tr><tr><td><code>published_deleted</code></td><td>Published posts that were deleted</td></tr><tr><td><code>published_hidden</code></td><td>Published posts that were hidden</td></tr><tr><td><code>draft</code></td><td>All draft posts</td></tr><tr><td><code>draft_dated</code></td><td>Draft posts with a scheduled date</td></tr><tr><td><code>draft_undated</code></td><td>Draft posts without a scheduled date</td></tr><tr><td><code>draft_private</code></td><td>Private draft posts</td></tr><tr><td><code>draft_public</code></td><td>Public draft posts</td></tr><tr><td><code>failed</code></td><td>Posts that failed to publish</td></tr><tr><td><code>recycling</code></td><td>All recycling posts</td></tr><tr><td><code>recycling_active</code></td><td>Active recycling posts</td></tr><tr><td><code>recycling_paused</code></td><td>Paused recycling posts</td></tr><tr><td><code>recycling_expired</code></td><td>Expired recycling posts</td></tr><tr><td><code>recycling_failed</code></td><td>Failed recycling posts</td></tr><tr><td><code>recycling_pending</code></td><td>Recycling posts pending approval</td></tr><tr><td><code>recycling_declined</code></td><td>Recycling posts that were declined</td></tr><tr><td><code>recycling_reauth</code></td><td>Recycling posts requiring account reauthorization</td></tr><tr><td><code>recycling_locked</code></td><td>Recycling posts that are locked</td></tr><tr><td><code>recurring</code></td><td>Recurring posts</td></tr></tbody></table>

**Type Values**

<table data-header-hidden><thead><tr><th width="127.1854248046875"></th><th></th></tr></thead><tbody><tr><td>Value</td><td>Description</td></tr><tr><td><code>status</code></td><td>Text-only posts</td></tr><tr><td><code>link</code></td><td>Posts with links</td></tr><tr><td><code>photo</code></td><td>Photo posts</td></tr><tr><td><code>gif</code></td><td>GIF posts</td></tr><tr><td><code>video</code></td><td>Video posts</td></tr><tr><td><code>reel</code></td><td>Instagram or Facebook reels</td></tr><tr><td><code>story</code></td><td>Instagram or Facebook stories</td></tr><tr><td><code>short</code></td><td>YouTube shorts</td></tr><tr><td><code>poll</code></td><td>Poll posts</td></tr><tr><td><code>document</code></td><td>Document posts</td></tr><tr><td><code>carousel</code></td><td>Multi-image carousel posts</td></tr><tr><td><code>article</code></td><td>Article/blog posts</td></tr></tbody></table>

## List Posts

> Retrieves a list of posts based on the specified filters.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"PostsListResponse":{"type":"object","properties":{"posts":{"type":"array","description":"List of posts matching the query parameters","items":{"$ref":"#/components/schemas/PostSummary"}},"total":{"type":"integer","description":"Total number of posts matching the query"},"page":{"type":"integer","description":"Current page number"},"per_page":{"type":"integer","description":"Number of posts per page"},"total_pages":{"type":"integer","description":"Total number of pages"}}},"PostSummary":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the post"},"text":{"type":"string","description":"Post text content"},"url":{"type":"string","description":"URL for link posts"},"state":{"type":"string","description":"Current state of the post"},"type":{"type":"string","description":"Type of post"},"account_id":{"type":"string","description":"ID of the social account"},"user":{"type":"object","description":"User who created the post","properties":{"id":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"}}},"scheduled_at":{"type":"string","description":"Scheduled publication time"},"post_link":{"type":"string","description":"Link to the published post on the social network"},"has_media":{"type":"boolean","description":"Indicates if the post contains media"},"network":{"type":"string","description":"Social network for this post"}}},"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":{"/posts":{"get":{"summary":"List Posts","description":"Retrieves a list of posts based on the specified filters.","tags":["Posts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve posts from","required":true},{"schema":{"type":"string","enum":["all","scheduled","scheduled_approved","scheduled_pending","scheduled_declined","scheduled_reauth","scheduled_locked","published","published_posted","published_deleted","published_hidden","draft","draft_dated","draft_undated","draft_private","draft_public","failed","recycling","recycling_active","recycling_paused","recycling_expired","recycling_failed","recycling_pending","recycling_declined","recycling_reauth","recycling_locked","recurring"]},"name":"state","in":"query","description":"Filter by post state\n\n Available options: \n\n `all`, `scheduled`, `scheduled_approved`, `scheduled_pending`, `scheduled_declined`, `scheduled_reauth`, `scheduled_locked`, `published`, `published_posted`, `published_deleted`, `published_hidden`, `draft`, `draft_dated`, `draft_undated`, `draft_private`, `draft_public`, `failed`, `recycling`, `recycling_active`, `recycling_paused`, `recycling_expired`, `recycling_failed`, `recycling_pending`, `recycling_declined`, `recycling_reauth`, `recycling_locked`, `recurring`","required":false},{"schema":{"type":"array","items":{"type":"string","enum":["all","scheduled","scheduled_approved","scheduled_pending","scheduled_declined","scheduled_reauth","scheduled_locked","published","published_posted","published_deleted","published_hidden","draft","draft_dated","draft_undated","draft_private","draft_public","failed","recycling","recycling_active","recycling_paused","recycling_expired","recycling_failed","recycling_pending","recycling_declined","recycling_reauth","recycling_locked","recurring"]}},"style":"form","explode":true,"name":"state","in":"query","description":"Filter by multiple post states\n\n Available options: \n\n `all`, `scheduled`, `scheduled_approved`, `scheduled_pending`, `scheduled_declined`, `scheduled_reauth`, `scheduled_locked`, `published`, `published_posted`, `published_deleted`, `published_hidden`, `draft`, `draft_dated`, `draft_undated`, `draft_private`, `draft_public`, `failed`, `recycling`, `recycling_active`, `recycling_paused`, `recycling_expired`, `recycling_failed`, `recycling_pending`, `recycling_declined`, `recycling_reauth`, `recycling_locked`, `recurring`","required":false},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Filter posts scheduled/published after this date \n\n- Example: 2025-05-15 \n\n Required if `to` is provided","required":false},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"Filter posts scheduled/published before this date \n\n- Example: 2025-05-15 \n\n Required if `from` is provided","required":false},{"schema":{"type":"integer"},"name":"page","in":"query","description":"Page number for pagination","required":false},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"name":"account_ids","in":"query","description":"Filter posts by multiple account IDs","required":false},{"schema":{"type":"string"},"name":"query","in":"query","description":"Search query to filter posts by content","required":false},{"schema":{"type":"string","enum":["status","link","photo","gif","video","reel","story","short","poll","document","carousel","article"]},"name":"postType","in":"query","description":"Filter by post type \n\n Available options: \n\n `status`, `link`, `photo`, `gif`, `video`, `reel`, `story`, `short`, `poll`, `document`, `carousel`, `article`","required":false},{"schema":{"type":"string"},"name":"member_id","in":"query","description":"Filter posts by team member ID","required":false}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostsListResponse"}}}},"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"}}}}}}}}}
```

### Filtering Examples

* **Photo posts scheduled next month containing “launch”**\
  `GET /posts?state=scheduled&postType=photo&from=2025-06-01&to=2025-06-30&query=launch`
* **All failed posts across accounts**\
  `GET /posts?state=failed&account_ids[]=63c675b54e299e9cf2b667ea&account_ids[]=64d786c54e299e9cf2b667fb`
* **Drafts by a workspace member**\
  `GET /posts?state=draft&member_id=5b1ec026db27977424e8599e`

### Get Post

Retrieve a single post by its ID.

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

**Path Parameters**

<table><thead><tr><th width="125.5078125">Parameter</th><th width="96">Type</th><th width="86">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td>Yes</td><td>ID of the post to retrieve</td></tr></tbody></table>

**Query Parameters**

<table><thead><tr><th width="124.0859375">Parameter</th><th width="96">Type</th><th width="86">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>analytics</code></td><td>boolean</td><td>No</td><td>Include analytics data. Only applies to imported/synced posts; ignored for posts created through Publer.</td></tr></tbody></table>

## Get Post

> Retrieves a single post by its ID, including media, link details, labels, and recycling or recurring settings.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"PostDetail":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the post"},"text":{"type":"string","description":"Post text content"},"state":{"type":"string","description":"Current state of the post"},"type":{"type":"string","description":"Type of post"},"account_id":{"type":"string","description":"ID of the social account"},"account":{"type":"object","description":"Details of the social account","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"}}},"user":{"type":"object","description":"User who created the post","properties":{"id":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"}}},"scheduled_at":{"type":"string","description":"Scheduled publication time"},"created_at":{"type":"string","description":"Creation timestamp"},"updated_at":{"type":"string","description":"Last update timestamp"},"post_link":{"type":"string","description":"Link to the published post on the social network"},"media":{"type":"array","description":"Media items attached to the post","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"alt_text":{"type":"string"}}}},"link":{"type":"object","description":"Link details for link posts","properties":{"url":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"image_url":{"type":"string"}}},"labels":{"type":"array","description":"Labels assigned to this post","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}}},"auto":{"type":"boolean","description":"Whether this post was auto-scheduled"},"recycling":{"type":"object","description":"Recycling settings if applicable","properties":{"solo":{"type":"boolean"},"gap":{"type":"integer"},"gap_freq":{"type":"string"},"start_date":{"type":"string"},"expire_count":{"type":"integer"}}},"recurring":{"type":"object","description":"Recurring settings if applicable","properties":{"frequency":{"type":"string"},"repeat_every":{"type":"integer"},"weekdays":{"type":"array","items":{"type":"string"}},"start_date":{"type":"string"}}}}},"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"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/posts/{id}":{"get":{"summary":"Get Post","tags":["Posts"],"description":"Retrieves a single post by its ID, including media, link details, labels, and recycling or recurring settings.","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 post to retrieve"},{"schema":{"type":"boolean"},"name":"analytics","in":"query","required":false,"description":"Include analytics data. Only applies to imported/synced posts; ignored for posts created through Publer."}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - the post exists but is not accessible in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}},"422":{"description":"Unprocessable Entity - no post with that ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}}}}}}
```

### Related Resources

* [Accounts API](https://publer.com/docs/api-reference/accounts) - List social media accounts
* [Media API](https://publer.com/docs/posting/create-posts/media-handling) - Upload and manage media for posts
* [Create Posts](https://publer.com/docs/posting/create-posts) - Post creation endpoints


# Labels

## Labels

Labels are shared, colour-coded tags that group posts, media library items, and time slots inside a workspace. Use this API to list what exists, rename or recolour a label, and remove one.

#### Requirements

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

{% hint style="info" %}
**There is no create endpoint.** Labels come into existence when you attach one to something. Pass `labels` on a post at creation time, and any name that does not already exist in the workspace is created for you:

```json
{ "labels": [{ "name": "Q4 Launch", "color": "#E8613C" }] }
```

The same array works on `POST /api/v1/posts/schedule` and when updating media.
{% endhint %}

#### Endpoint

### List Labels

Retrieve every label in the workspace, ordered by name.

```http
GET /api/v1/labels
```

## List Labels

> Retrieves every label in the workspace, ordered by name.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Labels","description":"Endpoints for managing post, media and timeslot labels"}],"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":{"LabelList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Label"}}}},"Label":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the label"},"name":{"type":"string","description":"Label name"},"color":{"type":"string","description":"Label colour"}}},"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":{"/labels":{"get":{"summary":"List Labels","tags":["Labels"],"description":"Retrieves every label in the workspace, ordered by name.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace containing the labels"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelList"}}}},"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 every label regardless of whether anything is currently attached to it:

```json
{
  "data": [
    { "id": "665f1a2b3c4d5e6f7a8b9c0d", "name": "Q4 Launch", "color": "#E8613C" },
    { "id": "665f1a2b3c4d5e6f7a8b9c0e", "name": "Evergreen", "color": "#2C6A4C" }
  ]
}
```

***

### List Labels by Type

Retrieve only the labels currently attached to resources of a given type.

```http
GET /api/v1/labels/{type}
```

**Path Parameters**

<table><thead><tr><th width="120">Parameter</th><th width="100">Type</th><th width="90">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td>string</td><td>Yes</td><td>One of <code>post</code>, <code>medium</code> (media library items) or <code>timeslot</code></td></tr></tbody></table>

## List Labels by Type

> Retrieves only the labels currently attached to resources of a given type. NOTE: for this operation the path segment is a label TYPE, not a label ID.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Labels","description":"Endpoints for managing post, media and timeslot labels"}],"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":{"Label":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the label"},"name":{"type":"string","description":"Label name"},"color":{"type":"string","description":"Label colour"}}},"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":{"/labels/{id}":{"get":{"summary":"List Labels by Type","tags":["Labels"],"description":"Retrieves only the labels currently attached to resources of a given type. NOTE: for this operation the path segment is a label TYPE, not a label ID.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace containing the labels"},{"schema":{"type":"string","enum":["post","medium","timeslot"]},"name":"id","in":"path","required":true,"description":"Label type to list: post, medium (media library items) or timeslot"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Label"}},"type":{"type":"string","description":"The requested type, echoed back"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - unknown label type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

```json
{
  "data": [{ "id": "665f1a2b3c4d5e6f7a8b9c0d", "name": "Q4 Launch", "color": "#E8613C" }],
  "type": "post"
}
```

When `type` is `post`, this endpoint also accepts the same filters as List Posts — `state`, `account_ids[]`, `from`, `to`, `query`, `postType`, `member_id` and others — and returns only the labels attached to posts matching that filter. This is how you answer "which labels are in use on failed posts this month".

An unrecognised type returns **403 Forbidden**, not 404.

***

### Update Label

Rename a label or change its colour.

```http
PUT /api/v1/labels/{id}
```

## Update Label

> Renames a label or changes its colour. Renaming also updates any timeslot or recycling rule that referenced the old name.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Labels","description":"Endpoints for managing post, media and timeslot labels"}],"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":{"Label":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the label"},"name":{"type":"string","description":"Label name"},"color":{"type":"string","description":"Label colour"}}},"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"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/labels/{id}":{"put":{"summary":"Update Label","tags":["Labels"],"description":"Renames a label or changes its colour. Renaming also updates any timeslot or recycling rule that referenced the old name.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace containing the labels"},{"schema":{"type":"string"},"name":"id","in":"path","required":true,"description":"ID of the label to update"}],"responses":{"200":{"description":"Label updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - requires workspace admin or owner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}},"422":{"description":"Unprocessable Entity - invalid attributes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New label name"},"color":{"type":"string","description":"New label colour"}}}}},"required":true,"description":"Label attributes"}}}}}
```

```json
{ "name": "Q4 Launch 2026", "color": "#2C6A4C" }
```

{% hint style="info" %}
Renaming is not cosmetic. Auto-scheduling timeslots and recycling rules match on the label **name**, so a rename rewrites those references in place to keep existing schedules working.
{% endhint %}

{% hint style="info" %}
For the full list of supported label colors and their hex values, see [Label Colors](https://app.gitbook.com/o/N5p5zfz9EYbsFeJqhOWj/sites/site_TcFEg/s/cXusjO4XO5e71kL7hLQj/~/edit/~/changes/290/posting/create-posts/post-labels#label-colors).
{% endhint %}

***

### Delete Label

Delete a label and detach it from everything it was attached to.

```http
DELETE /api/v1/labels/{id}?type=post
```

**Query Parameters**

<table><thead><tr><th width="120">Parameter</th><th width="100">Type</th><th width="90">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td>string</td><td>Yes</td><td>One of <code>post</code>, <code>medium</code> or <code>timeslot</code>. The request is rejected without it.</td></tr></tbody></table>

## Delete Label

> Deletes a label and detaches it from every resource it was attached to.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Labels","description":"Endpoints for managing post, media and timeslot labels"}],"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":{"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":{"/labels/{id}":{"delete":{"summary":"Delete Label","tags":["Labels"],"description":"Deletes a label and detaches it from every resource it was attached to.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace containing the labels"},{"schema":{"type":"string"},"name":"id","in":"path","required":true,"description":"ID of the label to delete"},{"schema":{"type":"string","enum":["post","medium","timeslot"]},"name":"type","in":"query","required":true,"description":"Label type. Required - the request is rejected without it."}],"responses":{"200":{"description":"Label deleted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - requires workspace admin or owner, or unknown label type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

```json
{ "id": "665f1a2b3c4d5e6f7a8b9c0d", "type": "post" }
```

Deleting removes the label everywhere at once — it is not scoped to the `type` you pass. The `type` parameter is required for the request to be accepted and is echoed back in the response.

#### Notes

* **Permissions.** `List Labels` and `List Labels by Type` are available to any member of the workspace. **Update and Delete require workspace admin or owner** — other roles receive `403 Forbidden`.
* **The path segment means different things per method.** On `GET` it is a label *type*; on `PUT` and `DELETE` it is a label *ID*. They share one path template because a type listing and a label lookup occupy the same position in the URL.
* Label names are unique per workspace. Attaching an existing name reuses that label rather than creating a duplicate.
* Colours are free-form strings; the apps use hex values such as `#E8613C`.

#### Related Resources

* [Post Labels](https://publer.com/docs/posting/create-posts) — Attaching labels when creating posts
* [List Posts](https://publer.com/docs/api-reference/posts) — Filter posts by label
* [Media](https://publer.com/docs/api-reference/media) — Filter the library by label


# Media

The Media API lets you list and filter items in your library. You can page through results, query by IDs, or apply filters such as type, usage status, source, and search terms.

### Requirements

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

### Endpoint

#### List Media

Retrieve all social media accounts in a workspace.

```http
GET /api/v1/media
```

#### Query Parameters

<table><thead><tr><th width="108.32867431640625">Parameter</th><th width="96.4034423828125">Type</th><th width="86.43267822265625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>ids[]</code></td><td>string[]</td><td>No</td><td>Specific media IDs (pagination and other filters ignored when set)</td></tr><tr><td><code>page</code></td><td>integer</td><td>No</td><td>Page number (0-based). Default: 0</td></tr><tr><td><code>types[]</code></td><td>string[]</td><td>Yes</td><td>Filter by media type: <code>photo</code>, <code>video</code>, <code>gif</code></td></tr><tr><td><code>used[]</code></td><td>boolean[]</td><td>Yes</td><td>Filter by usage status</td></tr><tr><td><code>source[]</code></td><td>string[]</td><td>No</td><td>Filter by source: <code>canva</code>, <code>vista</code>, <code>postnitro</code>, <code>contentdrips</code>, <code>openai</code>, <code>favorites</code>, <code>upload</code></td></tr><tr><td><code>search</code></td><td>string</td><td>No</td><td>Full-text search on name or caption</td></tr><tr><td><code>folder_id</code></td><td>string</td><td>No</td><td>Restrict results to one folder. Omit for items not in any folder.</td></tr></tbody></table>

## List Media

> Retrieves a paginated list of media items from the user's library. The endpoint supports filtering by various parameters and can also retrieve specific media items by their IDs.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"401ErrorResponse":{"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":{"/media":{"get":{"summary":"List Media","description":"Retrieves a paginated list of media items from the user's library. The endpoint supports filtering by various parameters and can also retrieve specific media items by their IDs.","tags":["Media"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve media from","required":true},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false,"name":"ids","in":"query","description":"Specific media IDs to retrieve. If provided, pagination and other filters are ignored","required":false},{"schema":{"type":"integer"},"name":"page","in":"query","description":"Page number for pagination (0-based)","required":false},{"schema":{"type":"array","items":{"type":"string","enum":["photo","video","gif"]}},"style":"form","explode":false,"name":"types","in":"query","description":"Filter by media types","required":true},{"schema":{"type":"array","items":{"type":"boolean"}},"style":"form","explode":false,"name":"used","in":"query","description":"Filter by used status","required":true},{"schema":{"type":"array","items":{"type":"string","enum":["canva","vista","postnitro","contentdrips","openai","favorites"]}},"style":"form","explode":false,"name":"source","in":"query","description":"Filter by source","required":false},{"schema":{"type":"string"},"name":"search","in":"query","description":"Search term to filter media by name or caption","required":false}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the media"},"type":{"type":"string","description":"Type of media","enum":["photo","video","gif"]},"name":{"type":"string","description":"Name of the media"},"caption":{"type":"string","description":"Caption for the media"},"path":{"type":"string","description":"URL to the full media"},"thumbnails":{"type":"array","description":"Array of thumbnails objects associated with the media","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the thumbnail"},"small":{"type":"string","description":"URL to the small thumbnail"},"real":{"type":"string","description":"URL to the real thumbnail"}}}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp"},"favorite":{"type":"boolean","description":"Whether the media is marked as favorite"},"in_library":{"type":"boolean","description":"Whether the media is saved in the library"}}}},"total":{"type":"integer","description":"Total count of media items matching the query (without pagination)"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Notes

* Free trial users see placeholder data unless they supply specific query filters.
* Paid accounts have full library access.
* `page` is **zero-based** and the page size is fixed at **20**. There is no `per_page` parameter.
* When `ids[]` is supplied, pagination and all other filters are ignored.

{% hint style="warning" %}
This endpoint lists **library items only**. Media uploaded without `in_library: true` will never appear here, no matter how long you wait — see Uploading media.
{% endhint %}

### Get Media Item

Retrieve a single media item.

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

> Retrieves a single media item including its per-network compatibility matrix.

## Get Media Item

> Retrieves a single media item including its per-network compatibility matrix.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"MediaLibraryItem":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier"},"name":{"type":"string","description":"Display name, used by library search"},"caption":{"type":"string","description":"Caption, also searchable"},"type":{"type":"string","description":"Media type","enum":["photo","video","gif"]},"path":{"type":"string","description":"URL of the media. While an upload is still processing this is a temporary path; it becomes the permanent URL once processing finishes."},"favorite":{"type":"boolean"},"in_library":{"type":"boolean"},"width":{"type":"number"},"height":{"type":"number"},"size":{"type":"number"},"source":{"type":"string"},"folder_id":{"type":"string"},"created_at":{"type":"string"},"labels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}}},"thumbnail":{"type":"string","description":"Photos and GIFs only"},"thumbnails":{"type":"array","description":"Videos only","items":{"type":"object","properties":{"id":{"type":"string"},"small":{"type":"string"},"real":{"type":"string"}}}},"validity":{"type":"object","description":"Per-network compatibility for this item, derived from size, dimensions, format and duration"}}},"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":{"/media/{id}":{"get":{"summary":"Get Media Item","tags":["Media"],"description":"Retrieves a single media item including its per-network compatibility matrix.","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 media item"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaLibraryItem"}}}},"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 `validity` object reports whether this item can be published on each network and format, derived from its size, dimensions, type and duration:

```json
{
  "validity": {
    "instagram": { "post": true, "reel": true, "story": false },
    "twitter": true,
    "tiktok": false
  }
}
```

{% hint style="info" %}
**Checking whether an upload has finished.** This endpoint does not return an explicit processing status. While an upload is still being processed `path` holds a temporary location, and it becomes the permanent URL once processing completes.

For a reliable signal, use the `job_id` returned by `POST /api/v1/media/from-url` and poll Job Status instead of polling this endpoint.
{% endhint %}

***

### Update Media Item

Change a media item's metadata.

```http
PUT /api/v1/media/{id}
```

## Update Media Item

> Updates the editable metadata of a media item: name, caption, favourite flag, folder and labels.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"MediaLibraryItem":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier"},"name":{"type":"string","description":"Display name, used by library search"},"caption":{"type":"string","description":"Caption, also searchable"},"type":{"type":"string","description":"Media type","enum":["photo","video","gif"]},"path":{"type":"string","description":"URL of the media. While an upload is still processing this is a temporary path; it becomes the permanent URL once processing finishes."},"favorite":{"type":"boolean"},"in_library":{"type":"boolean"},"width":{"type":"number"},"height":{"type":"number"},"size":{"type":"number"},"source":{"type":"string"},"folder_id":{"type":"string"},"created_at":{"type":"string"},"labels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}}},"thumbnail":{"type":"string","description":"Photos and GIFs only"},"thumbnails":{"type":"array","description":"Videos only","items":{"type":"object","properties":{"id":{"type":"string"},"small":{"type":"string"},"real":{"type":"string"}}}},"validity":{"type":"object","description":"Per-network compatibility for this item, derived from size, dimensions, format and duration"}}},"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":{"/media/{id}":{"put":{"summary":"Update Media Item","tags":["Media"],"description":"Updates the editable metadata of a media item: name, caption, favourite flag, folder and labels.","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 media item"}],"responses":{"200":{"description":"Media updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaLibraryItem"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - you did not upload this item and are not a workspace owner or admin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"media":{"type":"object","properties":{"name":{"type":"string","description":"Display name, used by library search"},"caption":{"type":"string","description":"Caption, also searchable"},"favorite":{"type":"boolean"},"folder_id":{"type":"string","description":"Move the item to this folder"},"labels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}}}}}}}}},"required":true,"description":"Media metadata"}}}}}
```

```json
{ "media": { "name": "Q4 launch hero", "caption": "Product shot, dark background" } }
```

{% hint style="info" %}
Library search matches on `name` and `caption`. Uploads that arrive without a meaningful name are effectively unfindable, so setting one here is worth doing right after upload.
{% endhint %}

Only the item's uploader, the workspace owner, or a workspace admin may update an item. Anyone else receives **403**.

### Related Resources

* [Accounts API](https://publer.com/docs/api-reference/accounts) — Manage connected social accounts
* [Posts API](https://publer.com/docs/posting/create-posts) — Create and schedule posts
* [Media Upload](https://publer.com/docs/posting/create-posts/media-handling) — Upload new media files


# Folders

### Requirements

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

### Endpoint

### List Media Folders

Retrieve the folders in a workspace's media library.

```http
GET /api/v1/media/folders
```

**Query Parameters**

<table><thead><tr><th width="185.06640625">Parameter</th><th width="96">Type</th><th width="86">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>parent_folder_id</code></td><td>string</td><td>No</td><td>Return the direct children of this folder. Omit to return root-level folders.</td></tr></tbody></table>

## List Media Folders

> Retrieves media library folders for a workspace. Returns root-level folders by default, or the direct children of a folder when parent\_folder\_id is supplied.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"MediaFolderList":{"type":"object","properties":{"folders":{"type":"array","description":"Folders at the requested level, newest first","items":{"$ref":"#/components/schemas/MediaFolder"}},"previous_folders":{"type":"array","description":"Breadcrumb trail from the root down to and including the requested folder. Empty when listing root-level folders.","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}},"MediaFolder":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parent_folder_id":{"type":"string","description":"null for a root-level folder"},"created_at":{"type":"string"}}},"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"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/media/folders":{"get":{"summary":"List Media Folders","tags":["Media"],"description":"Retrieves media library folders for a workspace. Returns root-level folders by default, or the direct children of a folder when parent_folder_id is supplied.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace containing the resource"},{"schema":{"type":"string"},"name":"parent_folder_id","in":"query","required":false,"description":"Return the direct children of this folder. Omit to return root-level folders."}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaFolderList"}}}},"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"}}}},"422":{"description":"Unprocessable Entity - no folder with that ID in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}}}}}}
```

### Create Media Folder

Creates a folder in the media library.

```http
POST /api/v1/media/folders
```

## Create Media Folder

> Creates a folder in the media library.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"MediaFolder":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parent_folder_id":{"type":"string","description":"null for a root-level folder"},"created_at":{"type":"string"}}},"401ErrorResponseWithWorkspace":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/media/folders":{"post":{"summary":"Create Media Folder","tags":["Media"],"description":"Creates a folder in the media library.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace containing the resource"}],"responses":{"201":{"description":"Folder created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaFolder"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"422":{"description":"Unprocessable Entity - invalid name or parent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Folder name, 1 to 150 characters"},"parent_folder_id":{"type":"string","description":"Create inside this folder. Omit for a root-level folder."}}}}},"required":true,"description":"Folder attributes"}}}}}
```

{% hint style="info" %}
Folder names are unique within a parent. Creating `Campaigns` when one already exists produces `Campaigns (1)` rather than an error, so the name you send is not always the name you get — read it back from the response.
{% endhint %}

***

### Update Media Folder

Rename a folder or moves it under a different parent.

```http
PUT /api/v1/media/folders/{id}
```

## Update Media Folder

> Renames a folder or moves it under a different parent.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"MediaFolder":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parent_folder_id":{"type":"string","description":"null for a root-level folder"},"created_at":{"type":"string"}}},"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"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/media/folders/{id}":{"put":{"summary":"Update Media Folder","tags":["Media"],"description":"Renames a folder or moves it under a different parent.","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 folder"}],"responses":{"200":{"description":"Folder updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaFolder"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - invalid parent folder, or you are not the folder creator, owner or an admin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}},"422":{"description":"Unprocessable Entity - the move would create a circular reference","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"parent_folder_id":{"type":"string","description":"New parent folder"}}}}},"required":true,"description":"Folder attributes"}}}}}
```

A folder cannot be moved into itself or into one of its own descendants; either returns **422**.

***

### Delete Media Folder

Deletes an empty folder.

```http
DELETE /api/v1/media/folders/{id}
```

## Delete Media Folder

> Deletes an empty folder.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"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":{"/media/folders/{id}":{"delete":{"summary":"Delete Media Folder","tags":["Media"],"description":"Deletes an empty folder.","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 folder"}],"responses":{"204":{"description":"Folder deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - the folder still contains media or sub-folders, or you lack permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

Returns **204 No Content** on success. A folder that still contains library media or sub-folders returns **403** — empty it first, using the move endpoint below.

***

### Move Media Between Folders

Moves a set of media items into a folder, or to the library root.

```http
PUT /api/v1/media/folders/move_to_folder
```

## Move Media Between Folders

> Moves a set of media items into a folder, or to the library root.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"MoveMediaResponse":{"type":"object","properties":{"updated_ids":{"type":"array","description":"IDs actually moved. Items you lack permission on are skipped silently.","items":{"type":"string"}},"folder_id":{"type":"string","description":"Destination folder, or null for the library root"}}},"401ErrorResponseWithWorkspace":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/media/folders/move_to_folder":{"put":{"summary":"Move Media Between Folders","tags":["Media"],"description":"Moves a set of media items into a folder, or to the library root.","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":"query","required":false,"description":"Destination folder ID. Pass a non-ID value (or omit) to move items to the library root."},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"name":"media_ids","in":"query","required":true,"description":"IDs of the media items to move"}],"responses":{"200":{"description":"Move completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveMediaResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}}}}}}}
```

```json
{ "updated_ids": ["665f...", "665e..."], "folder_id": "664a..." }
```

{% hint style="warning" %}
Items you lack permission on are **skipped silently** rather than causing an error. Always compare `updated_ids` against the IDs you sent to confirm every item moved.
{% endhint %}

Omit `id` to move items back to the library root.

#### Notes

* Folders are returned newest first.
* `previous_folders` is the breadcrumb trail from the root down to and including the requested folder, so you can render or walk the current location. It is empty when listing root-level folders.
* Listing is scoped to one level at a time. To walk a tree, call the endpoint again with the `id` of each folder you want to descend into.
* Folder names are unique per level. Creating a folder whose name already exists in the same parent appends a counter, for example `Campaigns (1)`.
* A `parent_folder_id` that does not exist in this workspace returns **422 Unprocessable Entity**.


# Creating Posts

The Posts Create endpoints let you asynchronously schedule, draft, or immediately publish content across one or more social networks. Submit a batch request, receive a job ID, then poll for completion.

### Requirements

* **Authentication**: Bearer API token
* **Scopes**: `posts, media`
* **Headers**:
  * `Authorization: Bearer-API YOUR_API_KEY`
  * `Publer-Workspace-Id: YOUR_WORKSPACE_ID`

### Core Concepts

#### Asynchronous Workflow

```markdown
Submit Request  →  Receive Job ID  →  Poll Job Status  →  Processing Complete
```

1. **Submit Request** to `/posts/schedule` or `/posts/schedule/publish`
2. **Receive** `{ "job_id": "…" }`
3. **Poll** `/job_status/{job_id}` until `status: "completed"`
4. **Handle** results or errors

#### Common Request Structure

All create requests share this shape:

```json
{
  "bulk": {
    "state": "[publishing_method]",
    "posts": [
      {
        "networks": {
          "[network_provider]": {
            "type": "[content_type]",
            "text": "Post content",
            // other network-specific fields
          }
        },
        "accounts": [
          { 
            "id": "ACCOUNT_ID"
            // Additional parameters based on publishing method
            }
        ],
        // optional: recycling, recurring, labels, etc.
      }
    ]
  }
}
```

* **bulk**: batch container
* **state**: how to handle content (see **Publishing Methods**)
* **posts**: array of post definitions
* **networks**: per-network content config
* **accounts**: target profiles with scheduling overrides

### Endpoints

<table data-header-hidden><thead><tr><th width="297.33209228515625"></th><th width="251.6776123046875"></th><th></th></tr></thead><tbody><tr><td>Endpoint</td><td>Purpose</td><td>Result</td></tr><tr><td><code>/api/v1/posts/schedule</code></td><td>Schedule posts for future publication including drafts</td><td>Scheduled post or draft</td></tr><tr><td><code>/api/v1/posts/schedule/publish</code></td><td>Publish content immediately</td><td>Published post</td></tr><tr><td><code>/api/v1/job_status/{job_id}</code></td><td>Check status of submitted job</td><td>Job status</td></tr></tbody></table>

### Publishing Methods

The `state` parameter determines how your content will be handled:

<table data-header-hidden><thead><tr><th></th><th width="254.7000732421875"></th><th></th></tr></thead><tbody><tr><td>State</td><td>Description</td><td>Additional Parameters</td></tr><tr><td><code>scheduled</code></td><td>Schedule for specific date/time</td><td><code>scheduled_at</code> (ISO timestamp)</td></tr><tr><td><code>draft</code>, <code>draft_private</code>, <code>draft_public</code></td><td>Save as draft</td><td>None required</td></tr><tr><td><code>scheduled</code> + <code>auto: true</code></td><td>Use AI-powered auto-scheduling</td><td><code>range.start_date</code>, <code>range.end_date</code></td></tr><tr><td><code>scheduled</code> + <code>recycling</code></td><td>Reuse content multiple times</td><td><code>recycling.gap</code>, <code>recycling.expire_count</code></td></tr><tr><td><code>recurring</code></td><td>Create repeating posts</td><td><code>recurring.repeat</code>, <code>recurring.days_of_week</code></td></tr></tbody></table>

### Content Types

The `type` parameter specifies the content format:

| Type       | Description             | Required Properties   |
| ---------- | ----------------------- | --------------------- |
| `status`   | Text-only post          | `text`                |
| `photo`    | Image post              | `text`, `media` array |
| `video`    | Video post              | `text`, `media` array |
| `link`     | Link post with preview  | `text`, `url`         |
| `carousel` | Multi-image post        | `text`, `media` array |
| `pdf`      | PDF document (LinkedIn) | `text`, `media` array |

### Network Providers

Supported platforms and their keys under `networks`:\
`facebook`, `instagram`, `twitter`, `linkedin`, `pinterest`, `youtube`, `tiktok`, `google`, `wordpress_basic` (self-hosted wordpress), `wordpress_oauth` (hosted on wordpress), `telegram`, `mastodon`, `threads`, `bluesky`.

### Job Status

Poll your job with:

```sh
GET /api/v1/job_status/{job_id}
```

**Response**:

```json
{
  "status": "working|completed|failed",
  "payload": { /* results or errors */ }
}
```

### Common Patterns

#### Network-Specific Content

To customize content for specific platforms:

```json
{
"networks": {
  "facebook": {
    "type": "status",
    "text": "Facebook simple status update"
  },
  "twitter": {
    "type": "status", 
    "text": "Twitter/X specific content with #hashtags"
  },
  "linkedin": {
    "type": "status",
    "text": "Longer, more professional content for LinkedIn audience"
  }
},
"accounts": [
  {
    "id": "66db83154e299efa19a2d8eb",
    "scheduled_at": "2025-05-15T14:30:00Z"
  },
  {
    "id": "66e973ac4e299e531f5dc034",
    "scheduled_at": "2025-05-15T15:00:00Z"
  },
  {
    "id": "66e973ac4e299e531f4hc034",
    "scheduled_at": "2025-05-15T15:00:00Z"
  }
]
}
```

#### Media References

Media files must be pre-uploaded and referenced by ID, see [Media Handling](https://publer.com/docs/posting/create-posts/media-handling):

```json
"media": [
  {
    "id": "66fba4234e299e531f5dc100",
    "type": "image",
    "alt_text": "Optional accessibility description"
  }
]
```

## Schedule posts

> Schedule one or more posts for publishing. Supports immediate publishing, scheduled publishing, auto-scheduling, recurring posts, and more.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"JobResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the job was created successfully"},"data":{"type":"object","properties":{"job_id":{"type":"string","description":"ID of the created job"}}}}},"ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"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"}}}},"BulkPostsRequest":{"type":"object","required":["bulk"],"properties":{"bulk":{"type":"object","required":["state","posts"],"properties":{"state":{"type":"string","description":"State of the posts","enum":["scheduled","draft","draft_private","draft_public","recurring"]},"posts":{"type":"array","description":"List of posts to create","items":{"type":"object","required":["networks"],"properties":{"networks":{"type":"object","description":"Network-specific content for the post","properties":{"facebook":{"$ref":"#/components/schemas/FacebookNetworkContent"},"instagram":{"$ref":"#/components/schemas/InstagramNetworkContent"},"twitter":{"$ref":"#/components/schemas/TwitterNetworkContent"},"linkedin":{"$ref":"#/components/schemas/LinkedInNetworkContent"},"pinterest":{"$ref":"#/components/schemas/PinterestNetworkContent"},"google":{"$ref":"#/components/schemas/GoogleBusinessNetworkContent"},"youtube":{"$ref":"#/components/schemas/YouTubeNetworkContent"},"tiktok":{"$ref":"#/components/schemas/TikTokNetworkContent"},"wordpress_oauth":{"$ref":"#/components/schemas/WordPressNetworkContent"},"wordpress_basic":{"$ref":"#/components/schemas/WordPressNetworkContent"},"telegram":{"$ref":"#/components/schemas/TelegramNetworkContent"},"mastodon":{"$ref":"#/components/schemas/MastodonNetworkContent"},"threads":{"$ref":"#/components/schemas/ThreadsNetworkContent"},"bluesky":{"$ref":"#/components/schemas/BlueskyNetworkContent"}}},"accounts":{"type":"array","description":"List of accounts to post to","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Account identifier"},"scheduled_at":{"type":"string","description":"Time to schedule the post","format":"date-time"},"labels":{"type":"array","description":"List of labels for the post","items":{"type":"string"}},"previewed_media":{"type":"boolean","description":"Whether media has been previewed"},"share":{"type":"object","description":"Auto-share settings for this post","properties":{"text":{"type":"string","description":"Custom text for the shared post. If not provided, the original post text will be used."},"account_ids":{"type":"array","description":"Array of account IDs to share the post with","items":{"type":"string"}},"after":{"type":"object","description":"When to share the post after the original is published","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}},"delay":{"type":"object","description":"Delay between sharing to multiple accounts","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}}}},"comments":{"type":"array","description":"Follow-up comments to be posted after the original post","items":{"type":"object","properties":{"text":{"type":"string","description":"The text content of the comment"},"language":{"type":"string","description":"The language of the comment"},"delay":{"type":"object","description":"When to post the comment after the original post is published","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}},"media":{"type":"object","description":"Media to include with the comment","properties":{"type":{"type":"string","description":"Type of media (photo, video, gif)","enum":["photo","video","gif"]},"path":{"type":"string","description":"Path to the media file"},"caption":{"type":"string","description":"Caption for the media"},"thumbnail":{"type":"string","description":"Thumbnail for video media"},"thumbnails":{"type":"object","description":"Different sizes of thumbnails for video media","properties":{"real":{"type":"string","description":"Full-size thumbnail"},"small":{"type":"string","description":"Small thumbnail"}}}}}}}},"delete":{"type":"object","description":"Auto-delete settings for this post","properties":{"hide":{"type":"boolean","description":"If true, the post will be hidden instead of deleted (platform-dependent)"},"delay":{"type":"object","description":"When to delete/hide the post after it's published","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}}}}}}},"recycling":{"type":"object","description":"Recycling configuration for the post","properties":{"solo":{"type":"boolean","description":"Whether to recycle as a solo post"},"gap":{"type":"integer","description":"Gap between recycles"},"gap_freq":{"type":"string","description":"Frequency of the gap","enum":["Day","Week","Month"]},"start_date":{"type":"string","description":"Start date for recycling","format":"date"},"expire_count":{"type":"string","description":"Number of times to recycle"},"expire_date":{"type":"string","description":"Date when recycling expires","format":"date"}}},"recurring":{"type":"object","description":"Recurring configuration for the post","required":["start_date","end_date","repeat","repeat_rate"],"properties":{"start_date":{"type":"string","description":"Start date for recurring posts","format":"date-time"},"end_date":{"type":"string","description":"End date for recurring posts","format":"date-time"},"repeat":{"type":"string","description":"Recurrence pattern","enum":["daily","weekly","monthly","yearly"]},"days_of_week":{"type":"array","description":"Days of the week (0=Monday, 6=Sunday)","items":{"type":"integer","minimum":0,"maximum":6}},"repeat_rate":{"type":"integer","description":"Rate of repetition"}}},"share_next":{"type":"boolean","description":"Whether to share the post next in queue"},"range":{"type":"object","description":"Time range for auto-scheduled posts","properties":{"start_date":{"type":"string","description":"Start date of the range","format":"date-time"},"end_date":{"type":["string","null"],"description":"End date of the range","format":"date-time"}}},"auto":{"type":"boolean","description":"Whether to use auto scheduling"}}}}}}}},"FacebookNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Facebook","enum":["status","photo","video","link","carousel","story","reel","gif"]},"text":{"type":"string","description":"Post text content"},"title":{"type":"string","description":"Video title (for videos, truncated to 255 chars)"},"excerpt":{"type":"string","description":"Post excerpt"},"url":{"type":"string","description":"Link URL for link posts"},"post_id":{"type":"string","description":"Facebook post ID after publishing"},"post_link":{"type":"string","description":"Facebook post URL after publishing"},"question":{"type":"string","description":"Poll question"},"duration":{"type":"integer","description":"Poll duration in hours"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Network-specific content type","enum":["reel","story"]},"text_format_preset_id":{"type":"string","description":"Background color for the post","enum":["106018623298955","365653833956649","618093735238824","191761991491375","2193627793985415","200521337465306","1821844087883360","177465482945164","160419724814650","248623902401250","240401816771706","1868855943417360","255989551804163","1792915444087912","1654916007940525","1679248482160767","518948401838663","423339708139719","204187940028597","621731364695726","518596398537417","134273813910336","217321755510854","323371698179784","901751159967576","552118025129095","263789377694911","606643333067842","458988134561491","548109108916650","175493843120364","338976169966519","206513879997925","168373304017982","1271157196337260","174496469882866","862667370603267","127541261450947","218067308976029","688479024672716","238863426886624","301029513638534","154977255088164","1941912679424590","396343990807392","143093446467972","161409924510923","145893972683590","217761075370932","931584293685988","148862695775447","100114277230063","558836317844129","172497526576609","433967226963128","197865920864520","643122496026756","762009070855346","228164237768720","146487026137131","221828835275596","1903718606535395","1881421442117417","249307305544279","1777259169190672","303063890126415","122708641613922","319468561816672","121945541697934","288211338285858","446330032368780","219266485227663","1289741387813798","1365883126823705"]},"feed":{"type":"boolean","description":"Whether to share the reel to feed"},"reminder":{"type":"boolean","description":"Use reminder publishing instead of API"},"audio":{"type":"string","description":"Audio name for the reel"},"start":{"type":"string","description":"Start time for events"},"end":{"type":"string","description":"End time for events"},"coupon":{"type":"string","description":"Coupon code"},"terms":{"type":"string","description":"Terms and conditions"},"privacy":{"type":"string","description":"Privacy setting"},"comment":{"type":"boolean","description":"Allow comments"},"duet":{"type":"boolean","description":"Allow duets"},"stitch":{"type":"boolean","description":"Allow stitch"},"promotional":{"type":"boolean","description":"Mark as promotional content"},"paid":{"type":"boolean","description":"Mark as paid partnership"},"language":{"type":"string","description":"Content language"},"auto_add_music":{"type":"boolean","description":"Auto add music"},"sponsor":{"type":"object","description":"Sponsor information for branded content","properties":{"id":{"type":"string","description":"Sponsor Facebook ID"},"name":{"type":"string","description":"Sponsor name"},"verified":{"type":"boolean","description":"Whether sponsor is verified"},"boost":{"type":"boolean","description":"Whether post can be boosted"}}},"community":{"type":"object","description":"Community information","properties":{"id":{"type":"string","description":"Community ID"},"name":{"type":"string","description":"Community name"}}}}},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"sublinks":{"type":"array","description":"Facebook carousel sublinks","items":{"$ref":"#/components/schemas/FacebookSublink"}},"tags":{"type":"array","description":"Post tags","items":{"type":"string"}},"categories":{"type":"array","description":"Post categories","items":{"type":"string"}},"featured_media":{"type":"object","description":"Featured media information","properties":{"path":{"type":"string","description":"Path to featured media"}}},"options":{"type":"array","description":"Poll options","items":{"type":"string"}}}},"MediaItem":{"type":"object","properties":{"id":{"type":"string","description":"Media ID (from upload)"},"type":{"type":"string","enum":["image","video","document","gif"]},"alt_text":{"type":"string","description":"Accessibility description for images"}}},"LinkDetails":{"type":"object","description":"Link details for link posts","properties":{"url":{"type":"string","description":"URL to link to"},"title":{"type":"string","description":"Title of the link"},"description":{"type":"string","description":"Description of the link"},"image_id":{"type":"string","description":"ID of the image to use for link preview"}}},"FacebookSublink":{"type":"object","description":"Configuration for a Facebook link post sublink preview","properties":{"url":{"type":"string","description":"URL of the link"},"provider_display":{"type":"string","description":"Display name of the link provider (typically domain name)"},"original_description":{"type":"string","description":"Original meta description of the linked webpage"},"original_title":{"type":"string","description":"Original meta title of the linked webpage"},"original_images":{"type":"array","description":"Array of original images found on the linked webpage","items":{"type":"string","format":"uri"}},"original_url":{"type":"string","description":"Original URL without protocol"},"description":{"type":"string","description":"Description to use in the link preview (can be customized)"},"title":{"type":"string","description":"Title to use in the link preview (can be customized)"},"images":{"type":"array","description":"Images to use in the link preview (can be customized)","items":{"type":"string","format":"uri"}},"default_image":{"type":"integer","description":"Index of the default image to display in the preview (0-based)","minimum":0},"caption":{"type":"string","description":"Additional caption for the link"},"call_to_action":{"type":"string","description":"Call-to-action button type for the link preview","enum":["NO_BUTTON","SHOP_NOW","BOOK_TRAVEL","LEARN_MORE","SIGN_UP","DOWNLOAD","GET_OFFER","GET_DIRECTIONS","BUY_NOW","CALL_NOW","APPLY_NOW","MESSAGE_PAGE","SEND_MESSAGE","CONTACT_US","SUBSCRIBE","USE_APP","PLAY_GAME","WATCH_VIDEO","WATCH_MORE","OPEN_LINK"]},"phone_number":{"type":"string","description":"Phone number to use with CALL_NOW call-to-action button"},"customized":{"type":"boolean","description":"Whether this sublink has been customized from the original link preview"}},"required":["url","title","description","images"]},"InstagramNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Instagram","enum":["photo","video","carousel","story","reel"]},"text":{"type":"string","description":"Caption text"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"carouselOptions":{"$ref":"#/components/schemas/CarouselOptions"},"firstComment":{"type":"string","description":"Text for first comment (often used for hashtags)"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Network-specific content type","enum":["reel","story"]},"// Reel-specific properties":{},"audio":{"type":"string","description":"Audio name for the reel"},"feed":{"type":"boolean","description":"Whether to share the reel to feed"}}}}},"CarouselOptions":{"type":"object","description":"Carousel-specific options","properties":{"slides":{"type":"array","description":"Individual slide configurations","items":{"type":"object","properties":{"media_id":{"type":"string","description":"Media ID for this slide"},"alt_text":{"type":"string","description":"Accessibility description for this slide"},"caption":{"type":"string","description":"Caption for this specific slide"}}}}}},"TwitterNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Twitter/X","enum":["status","photo","video","link","gif","poll"]},"text":{"type":"string","description":"Tweet text"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"// Poll-specific properties":{},"options":{"type":"array","description":"Options for poll posts (required when type='poll')","items":{"type":"string"}},"duration":{"type":"integer","description":"Duration of the poll in days (required when type='poll')"},"// End of Poll-specific properties":{},"replySettings":{"type":"string","description":"Who can reply to this tweet","enum":["everyone","mentionedUsers","following"]},"details":{"type":"object","description":"Twitter-specific publishing details","properties":{"type":{"type":"string","description":"Specific tweet type for long posts","enum":["long_post"]},"community":{"type":"object","description":"Community to post in","properties":{"id":{"type":"string","description":"Community ID"},"name":{"type":"string","description":"Community name"}}}}},"location":{"type":"object","description":"Geographic location to tag","properties":{"id":{"type":"string","description":"Place ID for geo tagging"},"name":{"type":"string","description":"Location name"}}}}},"LinkedInNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for LinkedIn","enum":["status","photo","video","link","document","poll","gif"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"document":{"type":"object","description":"Document details","properties":{"id":{"type":"string","description":"Document ID (from upload)"},"title":{"type":"string","description":"Document title"}}},"// Poll-specific properties":{},"options":{"type":"array","description":"Options for poll posts (required when type='poll')","items":{"type":"string"}},"duration":{"type":"integer","description":"Duration of the poll in days (required when type='poll')"},"question":{"type":"string","description":"Poll question (required for LinkedIn when type='poll')"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"PDF document type","enum":["document"]}}}}},"PinterestNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Pinterest","enum":["photo","video","carousel"]},"text":{"type":"string","description":"Pin description"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"boardId":{"type":"string","description":"Pinterest board ID to pin to"},"title":{"type":"string","description":"Title of the pin"}}},"GoogleBusinessNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Google Business","enum":["status","photo","event","offer"]},"text":{"type":"string","description":"Post text content"},"title":{"type":"string","description":"Post title"},"url":{"type":"string","description":"URL to link to"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Content type","enum":["photo","event"]},"title":{"type":"string","description":"Event title"},"start":{"type":"string","description":"Event start time","format":"date-time"},"end":{"type":"string","description":"Event end time","format":"date-time"},"// Offer-specific properties":{},"coupon":{"type":"string","description":"Coupon code for the offer"},"terms":{"type":"string","description":"Terms and conditions Url for the offer"},"// End of Offer-specific properties":{}}}}},"YouTubeNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for YouTube","enum":["video","short"]},"media":{"type":"array","description":"Video to upload","items":{"$ref":"#/components/schemas/MediaItem"}},"title":{"type":"string","description":"Video title"},"description":{"type":"string","description":"Video description"},"tags":{"type":"array","description":"Video tags","items":{"type":"string"}},"category":{"type":"string","description":"Video category ID"},"privacy":{"type":"string","description":"Privacy setting","enum":["public","unlisted","private"]},"isShort":{"type":"boolean","description":"Whether this is a YouTube Short"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Network-specific content type","enum":["short"]},"// Youtube Short-specific properties":{},"privacy":{"type":"string","description":"Privacy setting for the short","enum":["public","unlisted","private"]}}}}},"TikTokNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for TikTok","enum":["video","photo","carousel"]},"text":{"type":"string","description":"Caption text"},"title":{"type":"string","description":"Video title (for video type)"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"carouselOptions":{"$ref":"#/components/schemas/CarouselOptions"},"soundId":{"type":"string","description":"TikTok sound ID to use"},"duetWith":{"type":"string","description":"Video ID to duet with"},"details":{"type":"object","description":"TikTok-specific publishing details","properties":{"privacy":{"type":"string","description":"Privacy level for the post","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},"comment":{"type":"boolean","description":"Enable comments (true = enable, false = disable)"},"duet":{"type":"boolean","description":"Enable duets"},"stitch":{"type":"boolean","description":"Enable stitch"},"promotional":{"type":"boolean","description":"Mark as branded/promotional content"},"paid":{"type":"boolean","description":"Mark as paid partnership"},"auto_add_music":{"type":"boolean","description":"Auto add music to photo posts"},"reminder":{"type":"boolean","description":"Use reminder publishing instead of direct API"}}}}},"WordPressNetworkContent":{"type":"object","required":["type","content"],"properties":{"type":{"type":"string","description":"Content type for WordPress","enum":["article"]},"text":{"type":"string","description":"Post text content"},"excerpt":{"type":"string","description":"Short excerpt of the article"},"title":{"type":"string","description":"Article title"},"url":{"type":"string","description":"Article URL slug"},"post_link":{"type":["string","null"],"description":"Link to published post"},"source":{"type":"string","description":"Source of the post","enum":["schedule","publish","draft"]},"state":{"type":"string","description":"Post state","enum":["draft","scheduled","published"]},"content":{"type":"array","description":"Structured content blocks","items":{"type":"object","properties":{"id":{"type":"string","description":"Block unique identifier"},"type":{"type":"string","description":"Block type","enum":["paragraph","header","list","media","table","delimiter","code","html","quote"]},"data":{"type":"object","description":"Block-specific data","properties":{"text":{"type":"string","description":"Text content for paragraph, header, quote blocks"},"level":{"type":"integer","description":"Header level (1-6)"},"style":{"type":"string","description":"List style","enum":["ordered","unordered"]},"items":{"type":"array","description":"List items","items":{"type":"string"}},"url":{"type":"string","description":"Media URL"},"type":{"type":"string","description":"Media type","enum":["photo","video"]},"stretched":{"type":"boolean","description":"Whether media is stretched"},"withHeadings":{"type":"boolean","description":"Whether table has headings"},"content":{"type":"array","description":"Table content","items":{"type":"string"}},"code":{"type":"string","description":"Code content"},"html":{"type":"string","description":"HTML content"},"caption":{"type":"string","description":"Quote caption/author"}}}},"required":["id","type","data"]}},"categories":{"type":"array","items":{"type":"string"},"description":"Article category IDs"},"tags":{"type":"array","items":{"type":"string"},"description":"Article tag IDs"},"featured_media":{"type":"object","description":"Featured media information","properties":{"path":{"type":"string","description":"Path to featured media"}}}}},"TelegramNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Telegram","enum":["status","photo","video","link","gif"]},"text":{"type":"string","description":"Message text"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"parseMode":{"type":"string","description":"Message parse mode","enum":["Markdown","HTML"]},"disableNotification":{"type":"boolean","description":"Whether to send the message silently"},"disableWebPagePreview":{"type":"boolean","description":"Whether to disable link previews"}}},"MastodonNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Mastodon","enum":["status","photo","video","link","gif","poll"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"// Poll-specific properties":{},"options":{"type":"array","description":"Options for poll posts (required when type='poll')","items":{"type":"string"}},"duration":{"type":"integer","description":"Duration of the poll in days (required when type='poll')"},"// End of Poll-specific properties":{},"visibility":{"type":"string","description":"Post visibility","enum":["public","unlisted","private","direct"]},"sensitive":{"type":"boolean","description":"Mark media as sensitive"},"spoilerText":{"type":"string","description":"Content warning text"}}},"ThreadsNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Threads","enum":["status","photo","video","link"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"replyTo":{"type":"string","description":"ID of the thread to reply to"}}},"BlueskyNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Bluesky","enum":["status","photo","video","link"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"replyTo":{"type":"string","description":"ID of the post to reply to"},"labels":{"type":"array","description":"Self-labeled content warnings or categories","items":{"type":"string"}}}}}},"paths":{"/posts/schedule":{"post":{"summary":"Schedule posts","description":"Schedule one or more posts for publishing. Supports immediate publishing, scheduled publishing, auto-scheduling, recurring posts, and more.","operationId":"schedulePosts","tags":["Posts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to schedule posts in","required":true}],"responses":{"200":{"description":"Posts scheduled successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"400":{"description":"Invalid scheduling parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPostsRequest"}}},"description":"Post scheduling parameters","required":true}}}}}
```

## Create post

> Creates a new social media post. Can be scheduled for immediate publishing, future publishing, or saved as a draft.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"JobResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the job was created successfully"},"data":{"type":"object","properties":{"job_id":{"type":"string","description":"ID of the created job"}}}}},"ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"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"}}}},"BulkPostsRequest":{"type":"object","required":["bulk"],"properties":{"bulk":{"type":"object","required":["state","posts"],"properties":{"state":{"type":"string","description":"State of the posts","enum":["scheduled","draft","draft_private","draft_public","recurring"]},"posts":{"type":"array","description":"List of posts to create","items":{"type":"object","required":["networks"],"properties":{"networks":{"type":"object","description":"Network-specific content for the post","properties":{"facebook":{"$ref":"#/components/schemas/FacebookNetworkContent"},"instagram":{"$ref":"#/components/schemas/InstagramNetworkContent"},"twitter":{"$ref":"#/components/schemas/TwitterNetworkContent"},"linkedin":{"$ref":"#/components/schemas/LinkedInNetworkContent"},"pinterest":{"$ref":"#/components/schemas/PinterestNetworkContent"},"google":{"$ref":"#/components/schemas/GoogleBusinessNetworkContent"},"youtube":{"$ref":"#/components/schemas/YouTubeNetworkContent"},"tiktok":{"$ref":"#/components/schemas/TikTokNetworkContent"},"wordpress_oauth":{"$ref":"#/components/schemas/WordPressNetworkContent"},"wordpress_basic":{"$ref":"#/components/schemas/WordPressNetworkContent"},"telegram":{"$ref":"#/components/schemas/TelegramNetworkContent"},"mastodon":{"$ref":"#/components/schemas/MastodonNetworkContent"},"threads":{"$ref":"#/components/schemas/ThreadsNetworkContent"},"bluesky":{"$ref":"#/components/schemas/BlueskyNetworkContent"}}},"accounts":{"type":"array","description":"List of accounts to post to","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Account identifier"},"scheduled_at":{"type":"string","description":"Time to schedule the post","format":"date-time"},"labels":{"type":"array","description":"List of labels for the post","items":{"type":"string"}},"previewed_media":{"type":"boolean","description":"Whether media has been previewed"},"share":{"type":"object","description":"Auto-share settings for this post","properties":{"text":{"type":"string","description":"Custom text for the shared post. If not provided, the original post text will be used."},"account_ids":{"type":"array","description":"Array of account IDs to share the post with","items":{"type":"string"}},"after":{"type":"object","description":"When to share the post after the original is published","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}},"delay":{"type":"object","description":"Delay between sharing to multiple accounts","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}}}},"comments":{"type":"array","description":"Follow-up comments to be posted after the original post","items":{"type":"object","properties":{"text":{"type":"string","description":"The text content of the comment"},"language":{"type":"string","description":"The language of the comment"},"delay":{"type":"object","description":"When to post the comment after the original post is published","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}},"media":{"type":"object","description":"Media to include with the comment","properties":{"type":{"type":"string","description":"Type of media (photo, video, gif)","enum":["photo","video","gif"]},"path":{"type":"string","description":"Path to the media file"},"caption":{"type":"string","description":"Caption for the media"},"thumbnail":{"type":"string","description":"Thumbnail for video media"},"thumbnails":{"type":"object","description":"Different sizes of thumbnails for video media","properties":{"real":{"type":"string","description":"Full-size thumbnail"},"small":{"type":"string","description":"Small thumbnail"}}}}}}}},"delete":{"type":"object","description":"Auto-delete settings for this post","properties":{"hide":{"type":"boolean","description":"If true, the post will be hidden instead of deleted (platform-dependent)"},"delay":{"type":"object","description":"When to delete/hide the post after it's published","properties":{"duration":{"type":"number","description":"The duration value"},"unit":{"type":"string","description":"The time unit (Minute, Hour, Day, Week)","enum":["Minute","Hour","Day","Week"]}}}}}}}},"recycling":{"type":"object","description":"Recycling configuration for the post","properties":{"solo":{"type":"boolean","description":"Whether to recycle as a solo post"},"gap":{"type":"integer","description":"Gap between recycles"},"gap_freq":{"type":"string","description":"Frequency of the gap","enum":["Day","Week","Month"]},"start_date":{"type":"string","description":"Start date for recycling","format":"date"},"expire_count":{"type":"string","description":"Number of times to recycle"},"expire_date":{"type":"string","description":"Date when recycling expires","format":"date"}}},"recurring":{"type":"object","description":"Recurring configuration for the post","required":["start_date","end_date","repeat","repeat_rate"],"properties":{"start_date":{"type":"string","description":"Start date for recurring posts","format":"date-time"},"end_date":{"type":"string","description":"End date for recurring posts","format":"date-time"},"repeat":{"type":"string","description":"Recurrence pattern","enum":["daily","weekly","monthly","yearly"]},"days_of_week":{"type":"array","description":"Days of the week (0=Monday, 6=Sunday)","items":{"type":"integer","minimum":0,"maximum":6}},"repeat_rate":{"type":"integer","description":"Rate of repetition"}}},"share_next":{"type":"boolean","description":"Whether to share the post next in queue"},"range":{"type":"object","description":"Time range for auto-scheduled posts","properties":{"start_date":{"type":"string","description":"Start date of the range","format":"date-time"},"end_date":{"type":["string","null"],"description":"End date of the range","format":"date-time"}}},"auto":{"type":"boolean","description":"Whether to use auto scheduling"}}}}}}}},"FacebookNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Facebook","enum":["status","photo","video","link","carousel","story","reel","gif"]},"text":{"type":"string","description":"Post text content"},"title":{"type":"string","description":"Video title (for videos, truncated to 255 chars)"},"excerpt":{"type":"string","description":"Post excerpt"},"url":{"type":"string","description":"Link URL for link posts"},"post_id":{"type":"string","description":"Facebook post ID after publishing"},"post_link":{"type":"string","description":"Facebook post URL after publishing"},"question":{"type":"string","description":"Poll question"},"duration":{"type":"integer","description":"Poll duration in hours"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Network-specific content type","enum":["reel","story"]},"text_format_preset_id":{"type":"string","description":"Background color for the post","enum":["106018623298955","365653833956649","618093735238824","191761991491375","2193627793985415","200521337465306","1821844087883360","177465482945164","160419724814650","248623902401250","240401816771706","1868855943417360","255989551804163","1792915444087912","1654916007940525","1679248482160767","518948401838663","423339708139719","204187940028597","621731364695726","518596398537417","134273813910336","217321755510854","323371698179784","901751159967576","552118025129095","263789377694911","606643333067842","458988134561491","548109108916650","175493843120364","338976169966519","206513879997925","168373304017982","1271157196337260","174496469882866","862667370603267","127541261450947","218067308976029","688479024672716","238863426886624","301029513638534","154977255088164","1941912679424590","396343990807392","143093446467972","161409924510923","145893972683590","217761075370932","931584293685988","148862695775447","100114277230063","558836317844129","172497526576609","433967226963128","197865920864520","643122496026756","762009070855346","228164237768720","146487026137131","221828835275596","1903718606535395","1881421442117417","249307305544279","1777259169190672","303063890126415","122708641613922","319468561816672","121945541697934","288211338285858","446330032368780","219266485227663","1289741387813798","1365883126823705"]},"feed":{"type":"boolean","description":"Whether to share the reel to feed"},"reminder":{"type":"boolean","description":"Use reminder publishing instead of API"},"audio":{"type":"string","description":"Audio name for the reel"},"start":{"type":"string","description":"Start time for events"},"end":{"type":"string","description":"End time for events"},"coupon":{"type":"string","description":"Coupon code"},"terms":{"type":"string","description":"Terms and conditions"},"privacy":{"type":"string","description":"Privacy setting"},"comment":{"type":"boolean","description":"Allow comments"},"duet":{"type":"boolean","description":"Allow duets"},"stitch":{"type":"boolean","description":"Allow stitch"},"promotional":{"type":"boolean","description":"Mark as promotional content"},"paid":{"type":"boolean","description":"Mark as paid partnership"},"language":{"type":"string","description":"Content language"},"auto_add_music":{"type":"boolean","description":"Auto add music"},"sponsor":{"type":"object","description":"Sponsor information for branded content","properties":{"id":{"type":"string","description":"Sponsor Facebook ID"},"name":{"type":"string","description":"Sponsor name"},"verified":{"type":"boolean","description":"Whether sponsor is verified"},"boost":{"type":"boolean","description":"Whether post can be boosted"}}},"community":{"type":"object","description":"Community information","properties":{"id":{"type":"string","description":"Community ID"},"name":{"type":"string","description":"Community name"}}}}},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"sublinks":{"type":"array","description":"Facebook carousel sublinks","items":{"$ref":"#/components/schemas/FacebookSublink"}},"tags":{"type":"array","description":"Post tags","items":{"type":"string"}},"categories":{"type":"array","description":"Post categories","items":{"type":"string"}},"featured_media":{"type":"object","description":"Featured media information","properties":{"path":{"type":"string","description":"Path to featured media"}}},"options":{"type":"array","description":"Poll options","items":{"type":"string"}}}},"MediaItem":{"type":"object","properties":{"id":{"type":"string","description":"Media ID (from upload)"},"type":{"type":"string","enum":["image","video","document","gif"]},"alt_text":{"type":"string","description":"Accessibility description for images"}}},"LinkDetails":{"type":"object","description":"Link details for link posts","properties":{"url":{"type":"string","description":"URL to link to"},"title":{"type":"string","description":"Title of the link"},"description":{"type":"string","description":"Description of the link"},"image_id":{"type":"string","description":"ID of the image to use for link preview"}}},"FacebookSublink":{"type":"object","description":"Configuration for a Facebook link post sublink preview","properties":{"url":{"type":"string","description":"URL of the link"},"provider_display":{"type":"string","description":"Display name of the link provider (typically domain name)"},"original_description":{"type":"string","description":"Original meta description of the linked webpage"},"original_title":{"type":"string","description":"Original meta title of the linked webpage"},"original_images":{"type":"array","description":"Array of original images found on the linked webpage","items":{"type":"string","format":"uri"}},"original_url":{"type":"string","description":"Original URL without protocol"},"description":{"type":"string","description":"Description to use in the link preview (can be customized)"},"title":{"type":"string","description":"Title to use in the link preview (can be customized)"},"images":{"type":"array","description":"Images to use in the link preview (can be customized)","items":{"type":"string","format":"uri"}},"default_image":{"type":"integer","description":"Index of the default image to display in the preview (0-based)","minimum":0},"caption":{"type":"string","description":"Additional caption for the link"},"call_to_action":{"type":"string","description":"Call-to-action button type for the link preview","enum":["NO_BUTTON","SHOP_NOW","BOOK_TRAVEL","LEARN_MORE","SIGN_UP","DOWNLOAD","GET_OFFER","GET_DIRECTIONS","BUY_NOW","CALL_NOW","APPLY_NOW","MESSAGE_PAGE","SEND_MESSAGE","CONTACT_US","SUBSCRIBE","USE_APP","PLAY_GAME","WATCH_VIDEO","WATCH_MORE","OPEN_LINK"]},"phone_number":{"type":"string","description":"Phone number to use with CALL_NOW call-to-action button"},"customized":{"type":"boolean","description":"Whether this sublink has been customized from the original link preview"}},"required":["url","title","description","images"]},"InstagramNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Instagram","enum":["photo","video","carousel","story","reel"]},"text":{"type":"string","description":"Caption text"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"carouselOptions":{"$ref":"#/components/schemas/CarouselOptions"},"firstComment":{"type":"string","description":"Text for first comment (often used for hashtags)"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Network-specific content type","enum":["reel","story"]},"// Reel-specific properties":{},"audio":{"type":"string","description":"Audio name for the reel"},"feed":{"type":"boolean","description":"Whether to share the reel to feed"}}}}},"CarouselOptions":{"type":"object","description":"Carousel-specific options","properties":{"slides":{"type":"array","description":"Individual slide configurations","items":{"type":"object","properties":{"media_id":{"type":"string","description":"Media ID for this slide"},"alt_text":{"type":"string","description":"Accessibility description for this slide"},"caption":{"type":"string","description":"Caption for this specific slide"}}}}}},"TwitterNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Twitter/X","enum":["status","photo","video","link","gif","poll"]},"text":{"type":"string","description":"Tweet text"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"// Poll-specific properties":{},"options":{"type":"array","description":"Options for poll posts (required when type='poll')","items":{"type":"string"}},"duration":{"type":"integer","description":"Duration of the poll in days (required when type='poll')"},"// End of Poll-specific properties":{},"replySettings":{"type":"string","description":"Who can reply to this tweet","enum":["everyone","mentionedUsers","following"]},"details":{"type":"object","description":"Twitter-specific publishing details","properties":{"type":{"type":"string","description":"Specific tweet type for long posts","enum":["long_post"]},"community":{"type":"object","description":"Community to post in","properties":{"id":{"type":"string","description":"Community ID"},"name":{"type":"string","description":"Community name"}}}}},"location":{"type":"object","description":"Geographic location to tag","properties":{"id":{"type":"string","description":"Place ID for geo tagging"},"name":{"type":"string","description":"Location name"}}}}},"LinkedInNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for LinkedIn","enum":["status","photo","video","link","document","poll","gif"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"document":{"type":"object","description":"Document details","properties":{"id":{"type":"string","description":"Document ID (from upload)"},"title":{"type":"string","description":"Document title"}}},"// Poll-specific properties":{},"options":{"type":"array","description":"Options for poll posts (required when type='poll')","items":{"type":"string"}},"duration":{"type":"integer","description":"Duration of the poll in days (required when type='poll')"},"question":{"type":"string","description":"Poll question (required for LinkedIn when type='poll')"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"PDF document type","enum":["document"]}}}}},"PinterestNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Pinterest","enum":["photo","video","carousel"]},"text":{"type":"string","description":"Pin description"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"boardId":{"type":"string","description":"Pinterest board ID to pin to"},"title":{"type":"string","description":"Title of the pin"}}},"GoogleBusinessNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Google Business","enum":["status","photo","event","offer"]},"text":{"type":"string","description":"Post text content"},"title":{"type":"string","description":"Post title"},"url":{"type":"string","description":"URL to link to"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Content type","enum":["photo","event"]},"title":{"type":"string","description":"Event title"},"start":{"type":"string","description":"Event start time","format":"date-time"},"end":{"type":"string","description":"Event end time","format":"date-time"},"// Offer-specific properties":{},"coupon":{"type":"string","description":"Coupon code for the offer"},"terms":{"type":"string","description":"Terms and conditions Url for the offer"},"// End of Offer-specific properties":{}}}}},"YouTubeNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for YouTube","enum":["video","short"]},"media":{"type":"array","description":"Video to upload","items":{"$ref":"#/components/schemas/MediaItem"}},"title":{"type":"string","description":"Video title"},"description":{"type":"string","description":"Video description"},"tags":{"type":"array","description":"Video tags","items":{"type":"string"}},"category":{"type":"string","description":"Video category ID"},"privacy":{"type":"string","description":"Privacy setting","enum":["public","unlisted","private"]},"isShort":{"type":"boolean","description":"Whether this is a YouTube Short"},"details":{"type":"object","description":"Details for the post","properties":{"type":{"type":"string","description":"Network-specific content type","enum":["short"]},"// Youtube Short-specific properties":{},"privacy":{"type":"string","description":"Privacy setting for the short","enum":["public","unlisted","private"]}}}}},"TikTokNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for TikTok","enum":["video","photo","carousel"]},"text":{"type":"string","description":"Caption text"},"title":{"type":"string","description":"Video title (for video type)"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"carouselOptions":{"$ref":"#/components/schemas/CarouselOptions"},"soundId":{"type":"string","description":"TikTok sound ID to use"},"duetWith":{"type":"string","description":"Video ID to duet with"},"details":{"type":"object","description":"TikTok-specific publishing details","properties":{"privacy":{"type":"string","description":"Privacy level for the post","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},"comment":{"type":"boolean","description":"Enable comments (true = enable, false = disable)"},"duet":{"type":"boolean","description":"Enable duets"},"stitch":{"type":"boolean","description":"Enable stitch"},"promotional":{"type":"boolean","description":"Mark as branded/promotional content"},"paid":{"type":"boolean","description":"Mark as paid partnership"},"auto_add_music":{"type":"boolean","description":"Auto add music to photo posts"},"reminder":{"type":"boolean","description":"Use reminder publishing instead of direct API"}}}}},"WordPressNetworkContent":{"type":"object","required":["type","content"],"properties":{"type":{"type":"string","description":"Content type for WordPress","enum":["article"]},"text":{"type":"string","description":"Post text content"},"excerpt":{"type":"string","description":"Short excerpt of the article"},"title":{"type":"string","description":"Article title"},"url":{"type":"string","description":"Article URL slug"},"post_link":{"type":["string","null"],"description":"Link to published post"},"source":{"type":"string","description":"Source of the post","enum":["schedule","publish","draft"]},"state":{"type":"string","description":"Post state","enum":["draft","scheduled","published"]},"content":{"type":"array","description":"Structured content blocks","items":{"type":"object","properties":{"id":{"type":"string","description":"Block unique identifier"},"type":{"type":"string","description":"Block type","enum":["paragraph","header","list","media","table","delimiter","code","html","quote"]},"data":{"type":"object","description":"Block-specific data","properties":{"text":{"type":"string","description":"Text content for paragraph, header, quote blocks"},"level":{"type":"integer","description":"Header level (1-6)"},"style":{"type":"string","description":"List style","enum":["ordered","unordered"]},"items":{"type":"array","description":"List items","items":{"type":"string"}},"url":{"type":"string","description":"Media URL"},"type":{"type":"string","description":"Media type","enum":["photo","video"]},"stretched":{"type":"boolean","description":"Whether media is stretched"},"withHeadings":{"type":"boolean","description":"Whether table has headings"},"content":{"type":"array","description":"Table content","items":{"type":"string"}},"code":{"type":"string","description":"Code content"},"html":{"type":"string","description":"HTML content"},"caption":{"type":"string","description":"Quote caption/author"}}}},"required":["id","type","data"]}},"categories":{"type":"array","items":{"type":"string"},"description":"Article category IDs"},"tags":{"type":"array","items":{"type":"string"},"description":"Article tag IDs"},"featured_media":{"type":"object","description":"Featured media information","properties":{"path":{"type":"string","description":"Path to featured media"}}}}},"TelegramNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Telegram","enum":["status","photo","video","link","gif"]},"text":{"type":"string","description":"Message text"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"parseMode":{"type":"string","description":"Message parse mode","enum":["Markdown","HTML"]},"disableNotification":{"type":"boolean","description":"Whether to send the message silently"},"disableWebPagePreview":{"type":"boolean","description":"Whether to disable link previews"}}},"MastodonNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Mastodon","enum":["status","photo","video","link","gif","poll"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"// Poll-specific properties":{},"options":{"type":"array","description":"Options for poll posts (required when type='poll')","items":{"type":"string"}},"duration":{"type":"integer","description":"Duration of the poll in days (required when type='poll')"},"// End of Poll-specific properties":{},"visibility":{"type":"string","description":"Post visibility","enum":["public","unlisted","private","direct"]},"sensitive":{"type":"boolean","description":"Mark media as sensitive"},"spoilerText":{"type":"string","description":"Content warning text"}}},"ThreadsNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Threads","enum":["status","photo","video","link"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"replyTo":{"type":"string","description":"ID of the thread to reply to"}}},"BlueskyNetworkContent":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type for Bluesky","enum":["status","photo","video","link"]},"text":{"type":"string","description":"Post text content"},"media":{"type":"array","description":"Media items to include","items":{"$ref":"#/components/schemas/MediaItem"}},"link":{"$ref":"#/components/schemas/LinkDetails"},"replyTo":{"type":"string","description":"ID of the post to reply to"},"labels":{"type":"array","description":"Self-labeled content warnings or categories","items":{"type":"string"}}}}}},"paths":{"/posts/schedule/publish":{"post":{"summary":"Create post","description":"Creates a new social media post. Can be scheduled for immediate publishing, future publishing, or saved as a draft.","operationId":"createPost","tags":["Posts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to create post in","required":true}],"responses":{"200":{"description":"Post creation job initiated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"400":{"description":"Invalid post data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPostsRequest"}}},"description":"Post creation parameters","required":true}}}}}
```

## Get job status

> Check the status of an asynchronous job, including URL media uploads

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Jobs","description":"Endpoints for managing asynchronous jobs"}],"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":{"JobStatusResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the request was successful"},"data":{"type":"object","properties":{"status":{"type":"string","enum":["working","complete","failed"],"description":"Current status of the job \n\n - `working`: The job is still processing.\n - `complete`: The job has completed successfully.\n - `failed`: The job has failed."},"result":{"type":"object","description":"Result data, contents depend on job type","properties":{"status":{"type":"string","enum":["working","complete","failed"],"description":"Current status of the job \n\n - `working`: The job is still processing.\n - `complete`: The job has completed successfully.\n - `failed`: The job has failed."},"payload":{"type":"object","description":"Result payload containing any operation results","properties":{"failures":{"type":"object","description":"Any failures that occurred during processing"}}},"plan":{"type":"object","description":"Current user's plan information","properties":{"rate":{"type":"string","description":"The rate plan of the workspace"},"locked":{"type":"boolean","description":"Whether the workspace is locked"}}}}}}}}},"401ErrorResponse":{"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":{"/job_status/{job_id}":{"get":{"summary":"Get job status","description":"Check the status of an asynchronous job, including URL media uploads","tags":["Jobs"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve posts from","required":true},{"schema":{"type":"string"},"name":"job_id","in":"path","description":"ID of the job to check","required":true}],"responses":{"200":{"description":"Job status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Next Steps

This overview covers the essential concepts for creating posts with the Publer API. For detailed information about specific features, refer to:

* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods): Complete documentation of all publishing options
* [Content Types](https://publer.com/docs/posting/create-posts/content-types): Detailed guide to content formats and requirements
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling): Information about uploading and managing media
* [Network Reference](https://publer.com/docs/posting/create-posts/networks): Platform-specific capabilities and limitations


# Publishing Methods

A concise guide to all content publishing methods available via the Publer API. Choose the method that best fits your workflow, from instant publishing to automated recycling and recurring schedules.

### Available Methods

<table><thead><tr><th width="147.99700927734375">Method</th><th width="191.878173828125">Use Case</th><th width="171.014892578125">Key Parameters</th><th>Business Value</th></tr></thead><tbody><tr><td><a href="https://publer.com/docs/posting/create-posts/publishing-methods/immediate-publishing">Immediate</a></td><td>Publish content right away</td><td>No <code>scheduled_at</code></td><td>Time-sensitive announcements, breaking news</td></tr><tr><td><a href="https://publer.com/docs/posting/create-posts/publishing-methods/manual-scheduling">Scheduled</a></td><td>Publish at specific date/time</td><td><code>scheduled_at</code></td><td>Content calendar planning, timed campaigns</td></tr><tr><td><a href="https://publer.com/docs/posting/create-posts/publishing-methods/draft-posts">Draft</a></td><td>Save for later use</td><td><code>state: draft</code></td><td>Workspace collaboration, content preparation</td></tr><tr><td><a href="https://publer.com/docs/posting/create-posts/publishing-methods/auto-scheduling">Auto-scheduled</a></td><td>Automatically scheduling posts</td><td><code>auto: true</code></td><td>Engagement optimization, workload reduction</td></tr><tr><td><a href="https://publer.com/docs/posting/create-posts/publishing-methods/recycling-posts">Recycled</a></td><td>Reuse content multiple times</td><td><code>recycling</code> object</td><td>Evergreen content, extended reach</td></tr><tr><td><a href="https://publer.com/docs/posting/create-posts/publishing-methods/recurring-posts">Recurring</a></td><td>Create repeating posts</td><td><code>recurring</code> object</td><td>Regular updates, consistent presence</td></tr></tbody></table>

### Immediate Publishing

Send your post to networks right away.

Endpoint:

```http
POST /api/v1/posts/schedule/publish
```

Request example:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Breaking news update!"
          }
        },
        "accounts": [
          {
            "id": "66db83154e299efa19a2d8eb"
            // No scheduled_at parameter
          }
        ]
      }
    ]
  }
}
```

#### Implementation Notes

* Omit `scheduled_at` entirely
* Content is processed immediately via the **schedule/publish** endpoint
* Supports all content types and network-specific options

[Learn more about immediate publishing](https://publer.com/docs/posting/create-posts/publishing-methods/immediate-publishing)

***

### Scheduled Publishing

Plan posts for future dates and times across multiple networks.

Endpoint:

```http
POST /api/v1/posts/schedule
```

Request example:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Scheduled announcement for next week!"
          }
        },
        "accounts": [
          {
            "id": "66db83154e299efa19a2d8eb",
            "scheduled_at": "2025-05-15T14:30:00Z"
          }
        ]
      }
    ]
  }
}
```

#### Implementation Notes

* Include a valid ISO 8601 `scheduled_at` timestamp
* Times must be at least 1 minute in the future
* Supports timezone offsets
* Each account can have its own `scheduled_at`

[Learn more about scheduled publishing](https://publer.com/docs/posting/create-posts/publishing-methods/manual-scheduling)

***

### Draft Posts

Save work-in-progress content for review or refinement.

Endpoint:

```http
POST /api/v1/posts/schedule
```

Request example (private draft):

```json
{
  "bulk": {
    "state": "draft_private",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Draft post for later review"
          }
        },
        "accounts": [
          {
            "id": "66f509f7db2797026a37ba76"
          }
        ]
      }
    ]
  }
}
```

#### Visibility Options

<table data-header-hidden><thead><tr><th width="221.34844970703125"></th><th width="160.88134765625"></th><th></th></tr></thead><tbody><tr><td>State Value</td><td>Description</td><td>Access Control</td></tr><tr><td><code>draft_private</code></td><td>Private draft</td><td>Only accessible to the creator</td></tr><tr><td><code>draft_public</code> or <code>draft</code></td><td>Workspace-visible draft</td><td>Available to all workspace members with appropriate permissions</td></tr></tbody></table>

[Learn more about draft posts](https://publer.com/docs/posting/create-posts/publishing-methods/draft-posts)

***

### Auto-Scheduling

Let Publer pick the best posting times within a date range.

Endpoint:

```http
POST /api/v1/posts/schedule
```

#### **Before auto-scheduling, you need to keep in mind that:**

* You need a posting schedule. [Posting schedules](https://help.publer.io/en/article/how-to-setup-a-posting-schedule-cxg8y2/?1587463266234&__hstc=173229244.f3a97dda6c44e2c01f92d0b2b9cfb35c.1742226284225.1746434155204.1746437016823.24&__hssc=173229244.1.1746437016823&__hsfp=1371569625) are account-specific. You can have only one posting schedule per account, however, it can consist of many time slots.
* If you want the same posting schedule across multiple social accounts, you can do so by [Duplicating Settings](https://publer.com/help/en/article/how-to-duplicate-settings-for-all-social-accounts-b73h3h/).

Request example:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Autoschedule post"
          }
        },
        "accounts": [
          {
            "id": "66f509f7db2797026a37ba76"
          }
        ],
        "share_next": false,
        "range": {
          "start_date": "2025-05-23T07:45:00.000Z",
          "end_date": "2025-05-31T07:45:00.000Z"
        },
        "auto": true
      }
    ]
  }
}
```

#### Key Auto-Scheduling Parameters

<table data-header-hidden><thead><tr><th width="174.02789306640625"></th><th width="84.1932373046875"></th><th width="92.8350830078125"></th><th></th></tr></thead><tbody><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td><code>auto</code></td><td>boolean</td><td>Yes</td><td>Set to <code>true</code> to enable auto-scheduling</td></tr><tr><td><code>range.start_date</code></td><td>string</td><td>Yes</td><td>ISO 8601 timestamp for earliest possible posting time</td></tr><tr><td><code>range.end_date</code></td><td>string</td><td>No</td><td>ISO 8601 timestamp for latest possible posting time</td></tr><tr><td><code>share_next</code></td><td>boolean</td><td>No</td><td>When <code>true</code>, uses next available optimal slot</td></tr></tbody></table>

[Learn more about auto-scheduling](https://publer.com/docs/posting/create-posts/publishing-methods/auto-scheduling)

***

### Recycling Content

Automatically repost content multiple times on a defined cadence.

Endpoint:

```http
POST /api/v1/posts/schedule
```

#### To Recycle a post: <a href="#id-3-to-recycle-a-post" id="id-3-to-recycle-a-post"></a>

* First, you need to create a post and a posting schedule. Click [here](https://help.publer.io/en/article/how-to-set-up-a-posting-schedule-cxg8y2/?__hstc=173229244.f3a97dda6c44e2c01f92d0b2b9cfb35c.1742226284225.1746437016823.1746443304097.25&__hssc=173229244.2.1746443304097&__hsfp=1371569625) to learn how to set up a new time slot for your posts.

Request example:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "default": {
            "type": "status",
            "text": "This content will be recycled multiple times"
          }
        },
        "accounts": [
          {
            "id": "66f509f7db2797026a37ba76",
            "labels": [""]
          }
        ],
        "range": {
          "start_date": "2025-05-23T07:45:00.000Z",
          "end_date": null
        },
        "recycling": {
          "solo": true,
          "gap": 2,
          "gap_freq": "Week",
          "start_date": "2025-06-01",
          "expire_count": "3",
          "expire_date": "2025-07-15"
        }
      }
    ]
  }
}
```

**Key recycling parameters:**

<table data-header-hidden><thead><tr><th width="231.08349609375"></th><th width="153.0345458984375"></th><th></th></tr></thead><tbody><tr><td>Parameter</td><td>Type</td><td>Description</td></tr><tr><td><code>recycling.solo</code></td><td>boolean</td><td>When <code>true</code>, recycles as individual post; otherwise groups with other recycled content</td></tr><tr><td><code>recycling.gap</code></td><td>number</td><td>Frequency number (1, 2, 3, etc.)</td></tr><tr><td><code>recycling.gap_freq</code></td><td>string</td><td>Frequency unit (<code>Day</code>, <code>Week</code>, or <code>Month</code>)</td></tr><tr><td><code>recycling.start_date</code></td><td>string</td><td>Date to begin recycling (ISO 8601 format)</td></tr><tr><td><code>recycling.expire_count</code></td><td>string or number</td><td>Maximum number of times to recycle</td></tr><tr><td><code>recycling.expire_date</code></td><td>string</td><td>Date to stop recycling (ISO 8601 format, alternative to count)</td></tr></tbody></table>

[Learn more about recycle posts](https://publer.com/docs/posting/create-posts/publishing-methods/recycling-posts)

***

### Recurring Posts

Schedule content to repeat on a predefined pattern.

Endpoint:

```http
POST /api/v1/posts/schedule
```

Request example:

```json
{
  "bulk": {
    "state": "recurring",
    "posts": [
      {
        "networks": {
          "default": {
            "type": "status",
            "text": "Weekly update post"
          }
        },
        "accounts": [
          {
            "id": "66f509f7db2797026a37ba76"
          }
        ],
        "recurring": {
          "start_date": "2025-05-01T03:45-04:00",
          "end_date": "2025-06-01T03:45-04:00",
          "repeat": "weekly",
          "days_of_week": [1, 5],
          "repeat_rate": 1
        }
      }
    ]
  }
}
```

<table data-header-hidden><thead><tr><th width="225.6478271484375"></th><th width="83.876220703125"></th><th width="110.3060302734375"></th><th></th></tr></thead><tbody><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td><code>state</code></td><td>string</td><td>Yes</td><td>Must be set to <code>recurring</code></td></tr><tr><td><code>recurring.start_date</code></td><td>string</td><td>Yes</td><td>First occurrence date (ISO 8601 format)</td></tr><tr><td><code>recurring.end_date</code></td><td>string</td><td>No</td><td>Last occurrence date (ISO 8601 format)</td></tr><tr><td><code>recurring.repeat</code></td><td>string</td><td>Yes</td><td>Frequency type: <code>daily</code>, <code>weekly</code>, or <code>monthly</code></td></tr><tr><td><code>recurring.days_of_week</code></td><td>array</td><td>For weekly</td><td>Array of weekdays (1=Monday, 7=Sunday)</td></tr><tr><td><code>recurring.repeat_rate</code></td><td>number</td><td>No</td><td>How often to repeat (e.g., 1=every week, 2=every other week)</td></tr><tr><td><code>recurring.time</code></td><td>string</td><td>No</td><td>Fixed time for posts (format: "HH:MM")</td></tr></tbody></table>

[Learn more about recurring posts](https://publer.com/docs/posting/create-posts/publishing-methods/recurring-posts)

***

### Response Handling

All publishing methods return a job ID for asynchronous processing:

```json
{
   "job_id": "6810dec617eae6d55d7a5e5b"
}
```

#### Checking Job Status

Always verify success by checking the job status:

```html
GET /api/v1/job_status/6810dec617eae6d55d7a5e5b
```

**Example success response:**

```json
{
    "status": "complete",
    "payload": {
        "failures": {}
    },
    "plan": {
        // Current user's plan details
    }
}
```

#### Job Status Values

<table data-header-hidden><thead><tr><th width="114.42181396484375"></th><th width="384.291748046875"></th><th></th></tr></thead><tbody><tr><td>Status</td><td>Description</td><td>Next Action</td></tr><tr><td><code>working</code></td><td>Job is still being processed</td><td>Wait and check again</td></tr><tr><td><code>complete</code></td><td>Job finished (check failures object for partial failures)</td><td>Review results</td></tr><tr><td><code>failed</code></td><td>Job failed completely</td><td>Check error details and retry</td></tr></tbody></table>

### Advanced Usage Tips

* **Network-specific content**: Override content for specific platforms
* **Multi-account publishing**: Target multiple accounts in a single request


# Immediate Publishing

Publish content to social networks instantly using the Publer API. This method skips scheduling and sends posts for immediate delivery.

### Endpoint

```html
POST /api/v1/posts/schedule/publish
```

### Request Headers

<table><thead><tr><th width="185.71710205078125">Header</th><th width="139.91455078125">Required</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>Yes</td><td><code>Bearer-API YOUR_API_KEY</code></td></tr><tr><td>Publer-Workspace-Id</td><td>Yes</td><td>Workspace ID</td></tr><tr><td>Content-Type</td><td>Yes</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td>No</td><td><code>application/json</code> (default)</td></tr></tbody></table>

### Request Body

Use the standard bulk structure. Omit `scheduled_at` under `accounts`:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          // network provider as key, e.g., facebook, twitter etc.
          "[network_provider]": {
            "type": "[content_type]",
            "text": "Post content",
            // Additional properties based on content type
          }
        },
        "accounts": [
          {
            "id": "account_id"
            // No scheduled_at parameter
          }
        ]
      }
    ]
  }
}
```

#### Key Fields

* `state`: must be `"scheduled"` for immediate publishing
* `networks`: per-network content configuration (`facebook`, `twitter`, `linkedin`, etc.)
* `accounts`: list of target account IDs (no `scheduled_at` timestamp)

### Sample Request

```bash
curl -X POST https://app.publer.com/api/v1/posts/schedule/publish \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-Id: YOUR_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "bulk": {
      "state": "scheduled",
      "posts": [
        {
          "networks": {
            "facebook": {
              "type": "status",
              "text": "Just published this update via the Publer API! #RealTimePosting"
            }
          },
          "accounts": [
            { "id": "66db83154e299efa19a2d8eb" }
          ]
        }
      ]
    }
  }'
```

### Sample Response

**Status**: 200 OK

```json
{ 
   "job_id": "6810dec617eae6d55d7a5e5b"
}
```

Use the returned `job_id` to poll `/api/v1/job_status/{job_id}` until `status: "completed"`.

### Important Considerations

* **Delivery Timing**
  * Posts are sent as soon as Publer processes the request.
  * Network-side processing may introduce slight delays.
  * Job remains in `working` state until all targets confirm receipt.
* **Platform Requirements**
  * All network-specific content rules still apply (e.g., character limits, media formats).
  * Some networks may perform additional reviews before public display.
  * Ensure the connected accounts have immediate-posting permissions.

#### Common Issues

<table data-header-hidden><thead><tr><th width="182.8759765625"></th><th></th></tr></thead><tbody><tr><td>Issue</td><td>Solution</td></tr><tr><td>Rate limiting</td><td>Space out immediate publishing requests to avoid triggering platform limits</td></tr><tr><td>Authentication errors</td><td>Check that social accounts are properly connected and authorized</td></tr><tr><td>Content rejection</td><td>Review platform guidelines for content that might be flagged</td></tr><tr><td>Processing delays</td><td>For media posts, allow extra time for media processing</td></tr></tbody></table>

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types) - Details on different content formats
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling) - Information about uploading and managing media
* [Network Reference](https://publer.com/docs/posting/create-posts/networks) - Platform-specific capabilities and limitations


# Manual Scheduling

Schedule posts for future publication across one or more social networks using the Publer API.

### Endpoint

```html
POST /api/v1/posts/schedule
```

### Request Headers

<table><thead><tr><th width="201.383544921875">Header</th><th width="132.5247802734375">Required</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>Yes</td><td><code>Bearer-API YOUR_API_KEY</code></td></tr><tr><td>Publer-Workspace-Id</td><td>Yes</td><td>Workspace ID for scheduling posts</td></tr><tr><td>Content-Type</td><td>Yes</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td>No</td><td><code>application/json</code> (default)</td></tr></tbody></table>

### Request Body

Include a valid ISO 8601 `scheduled_at` timestamp under each account:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          // network provider as key, e.g., facebook, twitter, etc
          "facebook": {
            "type": "status",
            "text": "This post was scheduled through the Publer API! #ScheduledContent"
          }
        },
        "accounts": [
          {
            "id": "66db83154e299efa19a2d8eb",
            "scheduled_at": "2025-06-01T09:00:00Z"
          }
        ]
      }
    ]
  }
}

```

### Sample Request

```bash
curl -X POST https://app.publer.com/api/v1/posts/schedule \
  -H "Authorization: Bearer-API YOUR_API_KEY" \
  -H "Publer-Workspace-Id: YOUR_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "bulk": {
      "state": "scheduled",
      "posts": [{
        "networks": {
          "facebook": {
            "type": "status",
            "text": "This post was scheduled through the Publer API! #ScheduledContent"
          }
        },
        "accounts": [{
          "id": "66db83154e299efa19a2d8eb",
          "scheduled_at": "2025-06-01T09:00:00Z"
        }]
      }]
    }
  }'
```

### Sample Response

**Status**: 200 OK

```json
{
  "job_id": "6810dec617eae6d55d7a5e5b"
}
```

### Key Fields

* **state**\
  Must be set to `"scheduled"` for future publishing.
* **accounts\[].scheduled\_at**\
  ISO 8601 timestamp (with `Z` or offset) specifying when to publish.
* **networks**\
  Per-platform content configuration (e.g., `facebook`, `twitter`, `linkedin`).

### Important Considerations

#### Time Formats

* Use full ISO 8601 format, including timezone (e.g., `2025-06-01T09:00:00+02:00`).
* Timestamps must be at least 1 minute in the future.

### Best Practices

* **Buffer Time**: Space posts 1–2 minutes apart to avoid collisions.
* **Timezone Awareness**: Schedule using your audience’s local time.
* **Batch Scheduling**: Combine related posts in a single request for efficiency.
* **Verify**: Poll `/api/v1/job_status/{job_id}` to confirm scheduling success.

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types) - Details on different content formats
* [Auto-Scheduling](https://publer.com/docs/posting/create-posts/publishing-methods/auto-scheduling) - Advanced AI-based scheduling options
* [Recurring Posts](https://publer.com/docs/posting/create-posts/publishing-methods/recurring-posts) - Setting up repeating content
* [Network Reference](https://publer.com/docs/posting/create-posts/networks) - Platform-specific scheduling limitations


# Draft Posts

Create, manage, and collaborate on draft posts that aren't published immediately. Drafts help you save work-in-progress content, collaborate with your team, and schedule posts for later publishing.

### Overview

**Draft posts** are unfinished posts **connected to a social account**. They can be:

* **Dated drafts**: drafts with a set date/time (these typically show up in Calendar views in the UI).
* **Undated drafts**: drafts without a set date/time (stored under Drafts in the UI for later review/scheduling).

Draft Posts are created via the scheduling endpoint using:

* `bulk.state = "draft"`&#x20;

Draft Posts support the **same post structures** as normal scheduled/published posts, meaning you can create different kinds of drafts (photos, videos, carousels, reels, etc.) depending on the provider.

### Endpoint

Use the scheduling endpoint with `bulk.state: "draft"` to save work-in-progress content without publishing.

```bash
POST /api/v1/posts/schedule
```

### Request Headers

| Header              | Required | Value                        |
| ------------------- | -------: | ---------------------------- |
| Authorization       |      Yes | `Bearer-API YOUR_API_KEY`    |
| Publer-Workspace-Id |      Yes | Workspace ID                 |
| Content-Type        |      Yes | `application/json`           |
| Accept              |       No | `application/json` (default) |

### Draft Type & Example

#### Account-Connected Draft (`draft`)

Drafts connected to specific social accounts that can optionally include scheduling information.

**Key Features**

* **Must** include `accounts` array with account IDs
* Can include `scheduled_at` for future publishing (dated drafts)
* Uses **specific network keys** (e.g., `facebook`, `instagram`, `twitter`, etc.)

**Example Request**

```json
{
  "bulk": {
    "state": "draft",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "First Draft"
          }
        },
        "accounts": [
          {
            "id": "647a0edddb2797b89044e2c1",
            "scheduled_at": "2025-06-23T10:43:00+02:00"
          }
        ]
      }
    ]
  }
}
```

### Parameters

#### Bulk

<table><thead><tr><th width="134.2476806640625">Field</th><th width="87.6968994140625">Type</th><th width="116.8612060546875" align="right">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>bulk.state</code></td><td>string</td><td align="right">Yes</td><td>Must be <code>"draft"</code> for Draft Posts</td></tr><tr><td><code>bulk.posts</code></td><td>array</td><td align="right">Yes</td><td>List of posts to create</td></tr></tbody></table>

#### Post Object

<table><thead><tr><th width="166.2337646484375">Field</th><th width="85.7508544921875">Type</th><th width="106.5205078125" align="right">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>posts[].networks</code></td><td>object</td><td align="right">Yes</td><td>Network configurations for the post (use provider keys like <code>facebook</code>, <code>instagram</code>, etc.)</td></tr><tr><td><code>posts[].accounts</code></td><td>array</td><td align="right">Yes</td><td>Social accounts the draft is connected to</td></tr></tbody></table>

#### Accounts (required for Draft Posts)

<table><thead><tr><th width="219.39892578125">Field</th><th width="83.4970703125">Type</th><th width="109.4912109375" align="right">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>accounts[].id</code></td><td>string</td><td align="right">Yes</td><td>Social account ID</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td align="right">No</td><td>ISO 8601 timestamp. If provided, the draft becomes a <em>dated</em> draft. If omitted, it’s an <em>undated</em> draft.</td></tr></tbody></table>

### Network Configuration

* For Draft Posts (`bulk.state = "draft"`), use **specific provider keys** inside `posts[].networks` (e.g. `facebook`, `instagram`, `twitter`, etc.).
* The network payload structure depends on the provider and **content type** (e.g., status, photo, video, carousel, story, reel, etc.).
* Draft Posts support the same payload shapes as scheduled/published posts.

### Content Types

Draft Posts can be created using any supported content type (the `type` field inside `networks.[provider]`).

See the full [Content Types](https://publer.com/docs/posting/create-posts/content-types) reference.

### Best Practices

* **Save often**: create drafts early to avoid losing work-in-progress content.
* **Use dated drafts as reminders**: set `scheduled_at` to place drafts on a timeline for later review/publishing.
* **Use the right tool**: Draft Posts are for content already tied to specific social accounts. (Use [Ideas](https://publer.com/docs/posting/create-posts/publishing-methods/ideas) for account-less planning and templates.)

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)


# Ideas

### What are Ideas?

Ideas are unfinished posts or content templates that aren’t linked to any specific social account yet. You can create them, work on them over time, collaborate with your team, and turn them into real posts whenever you’re ready.

### Idea States

* `draft_public`: visible to the entire workspace and editable by teammates (based on permissions)
* `draft_private`: visible only to the creator

### Endpoint

Ideas are created using the same bulk scheduling endpoint, but with an Idea state and **no social accounts**.

```bash
POST /api/v1/posts/schedule
```

### Request Headers

| Header              | Required | Value                        |
| ------------------- | -------: | ---------------------------- |
| Authorization       |      Yes | `Bearer-API YOUR_API_KEY`    |
| Publer-Workspace-Id |      Yes | Workspace ID                 |
| Content-Type        |      Yes | `application/json`           |
| Accept              |       No | `application/json` (default) |

### Rules / Requirements

* `bulk.state` must be `draft_public` or `draft_private`
* Use `networks.default`
* Ideas support two input modes:
  1. **Rich content mode** (recommended): `type = "article"` with `name`, `content` blocks, and optional `media`
  2. **Simple content types**: you can also submit `status`, `photo`, `video`, or `link` payloads; Publer will **convert them automatically** into the Idea content format (with tags) behind the scenes
* At least one of `name`, `content`, or `media` must be present (for `type: "article"`)

#### Rich content mode: Content blocks format

When using `type: "article"`, `content` must be an array of blocks:

* `id`: randomly generated string
* `type`: one of the supported block types
* `data`: object depending on block type

### Example: Create an Idea (Public) — Rich Content (`article`)

```json
{
  "bulk": {
    "state": "draft_public",
    "posts": [
      {
        "networks": {
          "default": {
            "type": "article",
            "content": [
              {
                "id": "YbGFey6MEB",
                "type": "header",
                "data": {
                  "text": "Header",
                  "level": 2
                }
              },
              {
                "id": "zqVkpTFkho",
                "type": "list",
                "data": {
                  "style": "ordered",
                  "items": [
                    "list 1",
                    "list 2"
                  ]
                }
              },
              {
                "id": "QuAHevc2WU",
                "type": "paragraph",
                "data": {
                  "text": "<b>bold</b>"
                }
              },
              {
                "id": "dV4AN6yEA8",
                "type": "paragraph",
                "data": {
                  "text": "<i>italic</i>"
                }
              },
              {
                "id": "tlk38yADuj",
                "type": "paragraph",
                "data": {
                  "text": "<a href=\"https://publer.com\" target=\"_blank\">publer.com</a>" // link
                }
              },
              {
                "id": "hmy78yADuj",
                "type": "paragraph",
                "data": {
                  "text": "This is a simple paragraph"
                }
              }
            ],
            "name": "Title of the idea",
            "media": [
              {
                "id": "69415914c507c632c080d1e4",
                "name": "",
                "caption": "photo.by.unsplach:\n\nhttps://unsplash.com/photos/a-decorated-christmas-tree-with-merry-christmas-sign-92PZ2FVPhDE",
                "favorite": null,
                "path": "https://cdn.publer.com/uploads/photos/69415914c507c632c080d1e4.jpg",
                "type": "photo",
                "created_at": "2025-12-16T14:05:24.095+01:00",
                "labels": [],
                "in_library": true,
                "width": 2000.0,
                "height": 3000.0,
                "size": 1384790.0,
                "source": "unsplash",
                "folder_id": null,
                "thumbnail": "https://cdn.publer.com/uploads/photos/thumb_69415914c507c632c080d1e4.jpg"
              }
            ]
          }
        }
      }
    ]
  }
}
```

### Example: Create an Idea from a Simple Type (Auto-converted)

You can also create an Idea using other [content types](https://publer.com/docs/posting/create-posts/content-types) (for example `status`, `photo`, `video`, `link`). Publer will convert the payload into the Idea content format automatically (including tags).

```json
{
  "bulk": {
    "state": "draft_public",
    "posts": [
      {
        "networks": {
          "default": {
            "type": "status",
            "text": "A public idea"
          }
        }
      }
    ]
  }
}
```

### Media Attachments (Ideas)

You can attach media to an Idea using `networks.default.media`.

**Notes**

* `media` is an array.
* Multiple attachments are supported for **photos only**.
* Supported media types include `photo` and `video` (see network/provider specifics).

To attach media, first fetch/upload media using the [Media](https://publer.com/docs/api-reference/media) or [Media Handling](https://publer.com/docs/posting/create-posts/media-handling), then reference the returned media objects in your payload.

### Parameters

#### Bulk

<table><thead><tr><th width="121.46875">Field</th><th width="112.418701171875">Type</th><th width="116.0234375" align="right">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>bulk.state</code></td><td>string</td><td align="right">Yes</td><td><code>draft_public</code> or <code>draft_private</code></td></tr><tr><td><code>bulk.posts</code></td><td>array</td><td align="right">Yes</td><td>List of ideas to create</td></tr></tbody></table>

#### Post Object (Idea)

<table><thead><tr><th width="294.0845947265625">Field</th><th width="86.466552734375">Type</th><th width="193.9029541015625" align="right">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>posts[].networks</code></td><td>object</td><td align="right">Yes</td><td>Must contain <code>default</code></td></tr><tr><td><code>posts[].networks.default.type</code></td><td>string</td><td align="right">Yes</td><td><code>article</code> (rich content) or a simple type like <code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code> (auto-converted)</td></tr><tr><td><code>posts[].networks.default.name</code></td><td>string</td><td align="right">Conditional</td><td>Used with <code>type: "article"</code></td></tr><tr><td><code>posts[].networks.default.content</code></td><td>array</td><td align="right">Conditional</td><td>Used with <code>type: "article"</code></td></tr><tr><td><code>posts[].networks.default.text</code></td><td>string</td><td align="right">Conditional</td><td>Used with <code>type: "status"</code> (and other simple types as applicable)</td></tr><tr><td><code>posts[].networks.default.media</code></td><td>array</td><td align="right">No</td><td>Media attachments</td></tr></tbody></table>

### Network Configuration

For Ideas (`draft_public`, `draft_private`):

* Use `default` as the network key.
* You can send either:
  * **Rich content**: `type: "article"` with `name`, `content`, and optional `media`, or
  * **Simple types** (e.g., `status`, `photo`, `video`, `link`) which are **auto-converted** into the Idea content format.

### Best Practices

* Save ideas early to avoid losing inspiration.
* Use `draft_public` for collaboration and feedback.
* Use `draft_private` for personal planning.

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Media](https://publer.com/docs/api-reference/media)


# Auto-Scheduling

Automatically pick the optimal posting time for your content within a specified date window. Publer analyzes your posting schedule and audience engagement to fill gaps and maximize reach.

### Endpoint

```bash
POST /api/v1/posts/schedule
```

### Request Headers

<table><thead><tr><th width="195.8599853515625">Header</th><th width="137.239501953125">Required</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>Yes</td><td><code>Bearer-API YOUR_API_KEY</code></td></tr><tr><td>Publer-Workspace-Id</td><td>Yes</td><td>Workspace ID</td></tr><tr><td>Content-Type</td><td>Yes</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td>No</td><td><code>application/json</code> (default)</td></tr></tbody></table>

### Request Body

Set `auto: true` and define `range` to enable auto-scheduling:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Let Publer pick the best time for this post!"
          }
        },
        "accounts": [
          { "id": "ACCOUNT_ID" }
        ],
        "range": {
          "start_date": "2025-05-23T07:45:00Z",
          "end_date":   "2025-05-31T23:59:00Z"
        },
        "auto": true
      }
    ]
  }
}
```

#### Key Parameters

<table><thead><tr><th width="176.4857177734375">Field</th><th width="86.9464111328125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>auto</code></td><td>boolean</td><td>Set to <code>true</code> to enable auto-scheduling</td></tr><tr><td><code>range.start_date</code></td><td>string</td><td>Earliest ISO 8601 timestamp for posting (inclusive)</td></tr><tr><td><code>range.end_date</code></td><td>string</td><td>Latest ISO 8601 timestamp for posting (inclusive, optional)</td></tr><tr><td><code>share_next</code></td><td>boolean</td><td>(Optional) When <code>true</code>, schedule in the very next available slot</td></tr></tbody></table>

### Examples

#### Basic Auto-Scheduling

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "facebook": {
          "type": "status",
          "text": "Let Publer choose the best time!"
        }
      },
      "accounts": [{ "id": "66f509f7db2797026a37ba76" }],
      "range": {
        "start_date": "2025-05-23T07:45:00Z",
        "end_date":   "2025-05-31T23:59:00Z"
      },
      "auto": true
    }]
  }
}
```

#### Next Available Slot

Omit `end_date` and set `share_next` to schedule at the next open slot:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "facebook": {
          "type": "status",
          "text": "Post in next available slot"
        }
      },
      "accounts": [{ "id": "66f509f7db2797026a37ba76" }],
      "range": { "start_date": "2025-05-23T07:45:00Z" },
      "share_next": true,
      "auto": true
    }]
  }
}
```

### How It Works

1. **Analyze Schedule**: Publer looks at your existing posting queue and calendar.
2. **Identify Slots**: Finds open time slots based on your account’s posting schedule.
3. **Optimize**: Uses audience engagement data to pick a high-impact time within your range.
4. **Schedule**: Creates the post at the selected time.

### Use Cases

* **Fill Gaps**: Keep your queue full without manual scheduling.
* **Engagement Boost**: Leverage data-driven timing for better reach.
* **Bulk Campaigns**: Auto-schedule large batches within a window.
* **Hands-Off Workflow**: Let Publer handle timing so you focus on content.

### Best Practices

* **Define Posting Schedule**: Ensure your account has active time slots configured.
* **Reasonable Ranges**: Provide a wide enough window for better slot selection.
* **Mix Methods**: Combine auto-scheduling with manual posts for flexibility.
* **Monitor Jobs**: Poll `/api/v1/job_status/{job_id}` to confirm success.

### Common Issues

<table><thead><tr><th width="177.87603759765625">Issue</th><th>Solution</th></tr></thead><tbody><tr><td>No available slots</td><td>Add or open time slots in your posting schedule within the date range.</td></tr><tr><td>Suboptimal timing</td><td>Expand the date range or refine your posting schedule.</td></tr><tr><td>Data insufficient</td><td>Post more content manually to build up engagement metrics.</td></tr></tbody></table>

### Related Topics

* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Scheduled Publishing](https://publer.com/docs/posting/create-posts/publishing-methods/manual-scheduling)
* [Recurring Posts](https://publer.com/docs/posting/create-posts/publishing-methods/recurring-posts)


# Recycling Posts

Automatically re-share a post on a regular cadence. Recycling is ideal for evergreen content, reminders, and promotional campaigns.

### Endpoint

```bash
POST /api/v1/posts/schedule
```

### Request Headers

<table><thead><tr><th width="207.5693359375">Header</th><th width="101.125732421875">Required</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>Yes</td><td><code>Bearer-API YOUR_API_KEY</code></td></tr><tr><td>Publer-Workspace-Id</td><td>Yes</td><td>Your workspace identifier</td></tr><tr><td>Content-Type</td><td>Yes</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td>No</td><td><code>application/json</code> (default)</td></tr></tbody></table>

### Request Body

Include a `recycling` object in your payload:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "This content will be recycled multiple times."
          }
        },
        "accounts": [
          { "id": "66f509f7db2797026a37ba76" }
        ],
        "recycling": {
          "solo": true,
          "gap": 2,
          "gap_freq": "Week",
          "start_date": "2025-06-01",
          "expire_count": 3
        }
      }
    ]
  }
}
```

### Recycling Parameters

<table><thead><tr><th width="140.06024169921875">Field</th><th width="101.87750244140625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>solo</code></td><td>boolean</td><td><code>true</code> to recycle this post individually (not grouped)</td></tr><tr><td><code>gap</code></td><td>number</td><td>Interval between reposts (e.g., <code>2</code> for every 2 units)</td></tr><tr><td><code>gap_freq</code></td><td>string</td><td>Unit of interval: <code>Day</code>, <code>Week</code>, or <code>Month</code></td></tr><tr><td><code>start_date</code></td><td>string</td><td>ISO date when recycling begins (e.g., <code>YYYY-MM-DD</code>)</td></tr><tr><td><code>expire_count</code></td><td>number</td><td>Maximum number of reposts</td></tr><tr><td><code>expire_date</code></td><td>string</td><td>ISO date to stop recycling (alternative to <code>expire_count</code>)</td></tr></tbody></table>

### Examples

#### Basic Recycling

Recycle every 2 weeks, up to 3 times:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "facebook": { "type": "status", "text": "Evergreen reminder!" }
      },
      "accounts": [{ "id": "66f509f7db2797026a37ba76" }],
      "recycling": {
        "gap": 2,
        "gap_freq": "Week",
        "expire_count": 3
      }
    }]
  }
}
```

#### Recycling with Expiration Date

Recycle monthly until end of year:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "default": { "type": "status", "text": "Monthly promotion reminder!" }
      },
      "accounts": [{ "id": "66f509f7db2797026a37ba76" }],
      "recycling": {
        "gap": 1,
        "gap_freq": "Month",
        "start_date": "2025-06-01",
        "expire_date": "2025-12-31"
      }
    }]
  }
}
```

### How It Works

1. Create a post with `recycling` settings.
2. Publer queues the post for reuse.
3. After each `gap` interval, the post is republished.
4. Recycling stops when `expire_count` or `expire_date` is reached.

### Platform Limitations

Due to API limitations and anti-spam policies, recycling has some platform-specific constraints:

<table data-header-hidden><thead><tr><th width="200.61279296875"></th><th width="181.296630859375"></th><th></th></tr></thead><tbody><tr><td>Platform</td><td>Recycling Support</td><td>Notes</td></tr><tr><td>Facebook</td><td>Full support</td><td>No special requirements</td></tr><tr><td>Instagram</td><td>Full support</td><td>No special requirements</td></tr><tr><td>LinkedIn</td><td>Full support</td><td>No special requirements</td></tr><tr><td>Twitter</td><td>Limited</td><td>Requires 10+ variations using Spintax Generator</td></tr><tr><td>Pinterest</td><td>Limited</td><td>Requires 10+ variations using Spintax Generator</td></tr><tr><td>Google Business Profile</td><td>Limited</td><td>Requires 10+ variations using Spintax Generator</td></tr><tr><td>YouTube</td><td>Not supported</td><td>API limitations</td></tr><tr><td>TikTok</td><td>Not supported</td><td>API limitations</td></tr><tr><td>WordPress</td><td>Not supported</td><td>API limitations</td></tr></tbody></table>

### Use Cases

* Promote evergreen blog posts or resources.
* Remind followers of ongoing events or offers.
* Keep your feed active with minimal manual effort.

### Best Practices

* Vary content slightly using Spintax to avoid spam filters.
* Choose sensible intervals—don’t recycle too frequently.
* Always set an expiration (`expire_count` or `expire_date`).
* Monitor engagement metrics to adjust recycling strategy.

### Recycling vs. Recurring

* **Recycling** fills open slots based on `gap` and `gap_freq`—ideal for evergreen content.
* **Recurring** publishes at exact times on a fixed repeat schedule (e.g., every Monday at 9 AM).

### Related Topics

* [Recurring Posts](https://publer.com/docs/posting/create-posts/publishing-methods/recurring-posts)


# Recurring Posts

Automatically publish the same post at regular intervals, indefinitely or until a specified stop condition.

### Endpoint

```bash
POST /api/v1/posts/schedule
```

### Request Headers

<table><thead><tr><th width="185.65020751953125">Header</th><th width="105.73382568359375">Required</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>Yes</td><td><code>Bearer-API YOUR_API_KEY</code></td></tr><tr><td>Publer-Workspace-Id</td><td>Yes</td><td>Your workspace identifier</td></tr><tr><td>Content-Type</td><td>Yes</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td>No</td><td><code>application/json</code> (default)</td></tr></tbody></table>

### Request Body

Include a `recurring` object under each post:

```json
{
  "bulk": {
    "state": "recurring",
    "posts": [
      {
        "networks": {
          "default": {
            "type": "status",
            "text": "Weekly reminder: Check our latest updates every Monday!"
          }
        },
        "accounts": [
          { "id": "ACCOUNT_ID" }
        ],
        "recurring": {
          "start_date": "2025-06-05T13:29+02:00",
          "end_date": "2025-07-21T13:29+02:00",
          "repeat": "weekly",
          "days_of_week": [
            1,
            4,
            6
          ],
          "repeat_rate": 1
        }
      }
    ]
  }
}
```

#### Key Fields

* `state`: must be `"recurring"` for recurring posts

#### Recurring Parameters

<table><thead><tr><th width="153.646728515625">Parameter</th><th width="84.1544189453125">Type</th><th width="273.3671875">Description</th><th>Example</th></tr></thead><tbody><tr><td><code>start_date</code></td><td>string</td><td>ISO 8601 timestamp for the first occurrence</td><td><pre><code>2025-06-05T13:29+02:00
</code></pre></td></tr><tr><td><code>end_date</code></td><td>string</td><td>ISO 8601 timestamp to stop recurrence</td><td><pre><code><strong>2025-07-21T13:29+02:00
</strong></code></pre></td></tr><tr><td><code>repeat</code></td><td>string</td><td>The interval unit for repetition. Supported values: <code>"daily"</code>, <code>"weekly"</code>, <code>"monthly"</code>, <code>yearly</code></td><td><code>"weekly"</code></td></tr><tr><td><code>repeat_rate</code></td><td>integer</td><td>How often to repeat in the chosen interval.<br>For example, <code>6</code> with <code>"weekly"</code> means every 6 weeks.</td><td><code>6</code></td></tr><tr><td><code>days_of_week[]</code></td><td>array</td><td>For weekly repeats, which days to schedule on.<br>Values: <code>[0, 1, 2, 3, 4, 5, 6]</code></td><td><code>[0,4]</code></td></tr></tbody></table>

### Examples

#### Weekly Recurring Post

```json
{
  "bulk": {
    "state": "recurring",
    "posts": [{
      "networks": {
        "facebook": {
          "type": "status",
          "text": "Weekly reminder: Check our latest updates every Monday!"
        }
      },
      "accounts": [{
        "id": "66f509f7db2797026a37ba76"
      }],
      "recurring": {   
        "start_date": "2025-06-05T13:29+02:00",
          "end_date": "2025-07-21T13:29+02:00",
          "repeat": "weekly",
          "days_of_week": [
            1
          ],
          "repeat_rate": 1
      }
    }]
  }
}
```

#### Biweekly Recurring with Limit

Every other Tuesday and Thursday:

```json
{
  "bulk": {
    "state": "recurring",
    "posts": [{
      "networks": {
        "facebook": {
          "type": "status",
          "text": "Biweekly product update: See what's improved!"
        }
      },
      "accounts": [{
        "id": "66f509f7db2797026a37ba76"
      }],
      "recurring": {
        
        "start_date": "2025-06-05T13:29+02:00",
        "end_date": "2025-07-21T13:29+02:00",
        "repeat": "weekly",
        "days_of_week": [
          1,
          3,
        ],
        "repeat_rate": 1
      }
    }]
  }
}
```

### How It Works

To create a recurring post, specify the recurrence parameters inside the `recurring` object:

* **`start_date`**: The date and time for the first occurrence.
* **`end_date`**: The last date and time for recurring posts to be generated.
* **`repeat`**: The repeat interval unit: `"daily"`, `"weekly"`, `"monthly"` or `"yearly"`.
* **`repeat_rate`**: Frequency of the interval. For example, `1` with `"weekly"` means every week, `2` means every other week, etc.
* **`days_of_week`**: Which days of the week to post on (e.g., `[1, 3]` for Tuesday and Thursday).

### Platform Support

<table data-header-hidden><thead><tr><th width="198.1650390625"></th><th width="169.7955322265625"></th><th></th></tr></thead><tbody><tr><td>Platform</td><td>Recurring Support</td><td>Notes</td></tr><tr><td>Facebook</td><td>Full support</td><td>No special requirements</td></tr><tr><td>Instagram</td><td>Full support</td><td>No special requirements</td></tr><tr><td>LinkedIn</td><td>Full support</td><td>No special requirements</td></tr><tr><td>Twitter</td><td>Limited</td><td>Requires 10+ variations using Spintax Generator</td></tr><tr><td>Pinterest</td><td>Limited</td><td>Requires 10+ variations using Spintax Generator</td></tr><tr><td>Google Business Profile</td><td>Limited</td><td>Requires 10+ variations using Spintax Generator</td></tr><tr><td>YouTube</td><td>Not supported</td><td>API limitations</td></tr><tr><td>TikTok</td><td>Not supported</td><td>API limitations</td></tr><tr><td>WordPress</td><td>Full support</td><td>No special requirements</td></tr><tr><td>Threads, Bluesky, Mastodon,  Telegram</td><td>Full support</td><td>No special requirements</td></tr></tbody></table>

### Use Cases

* Regular reminders (e.g., weekly tips).
* Monthly newsletters or reports.
* Annual event notifications (e.g., holidays).
* Routine promotions or offers.

### Best Practices

* **Evergreen Content**: Use for timeless messages that benefit from repetition.
* **Stop Conditions**: Always set `end_date` to avoid indefinite runs.
* **Combine Actions**: Add follow-up comments or auto-deletion for full lifecycle management.
* **Audience Consideration**: Avoid fatigue by spacing posts appropriately.

### Recurring vs. Recycling

* **Recurring Posts**: Fixed dates/times on a repeating schedule.
* **Recycling Posts**: Fills open slots based on your posting calendar.

### Related Topics

* [Recycling Posts](https://publer.com/docs/posting/create-posts/publishing-methods/recycling-posts)
* [Scheduled Publishing](https://publer.com/docs/posting/create-posts/publishing-methods/manual-scheduling)
* [Auto-Scheduling](https://publer.com/docs/posting/create-posts/publishing-methods/auto-scheduling)


# Bulk Scheduling

Efficiently schedule up to 500 posts across multiple accounts and networks in a single API request. Bulk scheduling in Publer streamlines content planning and helps you stay organized at scale.

### Overview

Bulk scheduling lets you prepare, customize, and schedule a large number of posts at once supporting both text and media content for all supported networks. Each post in the bulk payload can have unique content, network targeting, and scheduling options.

### Key Features

* Create and schedule up to **500 posts** in a single API call.
* Combine multiple social accounts and networks per post.
* Supports **text, images, videos**, and more.
* Choose between **Schedule**, **Auto Schedule**, or **Recycle** modes.
* Individually customize each post (content, media, timing, etc.).
* Posts without a `scheduled_at` field use the account’s posting schedule.

### Request Structure

Send a POST request to the scheduling endpoint with your bulk payload:

### Endpoint

```html
POST /api/v1/posts/schedule
```

### Request Headers

<table><thead><tr><th width="201.383544921875">Header</th><th width="132.5247802734375">Required</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>Yes</td><td><code>Bearer-API YOUR_API_KEY</code></td></tr><tr><td>Publer-Workspace-Id</td><td>Yes</td><td>Workspace ID for scheduling posts</td></tr><tr><td>Content-Type</td><td>Yes</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td>No</td><td><code>application/json</code> (default)</td></tr></tbody></table>

### Request Body

**Example Payload:**

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Bulk Scheduling"
          },
          "mastodon": {
            "type": "status",
            "text": "Bulk Scheduling"
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea"
          },
          {
            "id": "650170394e299e33b427c2ff",
            "scheduled_at": "2025-08-17T16:19+02:00"
          }
        ]
      },
      {
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea"
          },
          {
            "id": "650170394e299e33b427c2ff",
            "scheduled_at": "2025-07-17T17:19+02:00"
          }
        ],
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Second Post"
          },
          "mastodon": {
            "type": "status",
            "text": "Second Post"
          }
        }
      },
      {
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea"
          },
          {
            "id": "650170394e299e33b427c2ff",
            "scheduled_at": "2025-06-17T18:19+02:00"
          }
        ],
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Third post"
          },
          "mastodon": {
            "type": "status",
            "text": "Third post"
          }
        }
      }
    ]
  }
}
```

> **Important:** Every object in `bulk.posts` must contain the same `accounts` array. The `accounts[].id` values (and their order) must be identical for every post. Only per-account fields such as `scheduled_at` may differ.

### Parameters

<table><thead><tr><th width="231.87139892578125">Field</th><th width="71.57373046875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>bulk.state</code></td><td>string</td><td>Scheduling mode: <code>"scheduled"</code> (manual schedule), <code>"auto"</code>, or <code>"recycle"</code></td></tr><tr><td><code>bulk.posts</code></td><td>array</td><td>Array of up to 500 post objects</td></tr><tr><td><code>posts[].networks</code></td><td>object</td><td>Networks and their post data (e.g., Facebook, Mastodon, etc.)</td></tr><tr><td><code>posts[].networks.{network}</code></td><td>object</td><td>Post content for each targeted network</td></tr><tr><td><code>posts[].accounts</code></td><td>array</td><td>Array of account objects that will receive this post</td></tr><tr><td><code>accounts[].id</code></td><td>string</td><td>Target social account ID. <strong>The account IDs must be identical across every <code>posts[].accounts</code> array in the bulk request.</strong></td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 time for scheduled post (omit for auto or recycle based on posting schedule)</td></tr><tr><td>...</td><td>...</td><td>All other post options (media, watermarks, signature, location, etc.) supported per post type</td></tr></tbody></table>

### Scheduling Modes

* **Schedule:**\
  Add `scheduled_at` to specify exact publish time per account/post.
* **Auto Schedule:**\
  Omit `scheduled_at` and set `bulk.state` to `"auto"` to use the account's posting schedule.
* **Recycle:**\
  Set `bulk.state` to `"recycle"` to enable cyclical republishing based on the account's recycle settings.
* **Recurring posts** are **not supported** in bulk scheduling.

### How It Works

1. **Prepare Your Bulk Payload:**\
   List each post with its content, targeted networks, and accounts.
2. **Customize Each Post:**\
   Add media, captions, hashtags, locations, watermarks, and more individually per post.
3. **Choose Scheduling Mode:**\
   Use `scheduled_at` for manual scheduling or let Publer auto-schedule based on your rules.
4. **Submit:**\
   Send your payload to `/posts/schedule` and monitor job status for completion.

### Best Practices

* Use bulk scheduling for campaigns, product launches, or large-scale social content plans.
* Individually tailor each post for its platform and audience.
* Use the scheduling modes for flexibility—manual times for some posts, auto-schedule for others.
* Every post in a bulk request must target the same social accounts. The `accounts[].id` values (and their order) must be identical across all posts. You may only change per-account properties such as `scheduled_at` between posts.

### Related Topics

* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)


# Content Types

A comprehensive overview of all content formats you can publish via the Publer API. Each content type is specified by the `type` field inside the `networks.[provider]` object.

### Supported Content Types

<table data-header-hidden><thead><tr><th width="207.61212158203125"></th><th></th></tr></thead><tbody><tr><td>Network</td><td>Supported Content Types</td></tr><tr><td>Facebook</td><td><code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code>, <code>carousel</code>, <code>story</code>, <code>reel</code>, <code>gif</code></td></tr><tr><td>Instagram</td><td><code>photo</code>, <code>video</code>, <code>story</code>, <code>reel</code></td></tr><tr><td>Twitter/X</td><td><code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code>, <code>gif</code>, <code>poll</code></td></tr><tr><td>LinkedIn</td><td><code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code>, <code>document</code>, <code>poll</code>, <code>gif</code></td></tr><tr><td>Pinterest</td><td><code>photo</code>, <code>video</code>, <code>carousel</code></td></tr><tr><td>Google Business</td><td><code>status</code>, <code>photo</code>, <code>event</code>, <code>offer</code></td></tr><tr><td>YouTube</td><td><code>video</code>, <code>short</code></td></tr><tr><td>TikTok</td><td><code>video</code>, <code>photo</code>, <code>carousel</code></td></tr><tr><td>WordPress</td><td><code>article</code></td></tr><tr><td>Telegram</td><td><code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code>, <code>gif</code></td></tr><tr><td>Mastodon</td><td><code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code>, <code>gif</code>, <code>poll</code></td></tr><tr><td>Threads</td><td><code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code></td></tr><tr><td>Bluesky</td><td><code>status</code>, <code>photo</code>, <code>video</code>, <code>link</code></td></tr></tbody></table>

### Best Practices

#### Content Optimization

* Test each format on a single account before scaling.
* Use network-specific overrides to tailor text length, captions, and metadata.
* Always provide `alt_text` for images to enhance accessibility.
* Follow each platform’s style and character limits for optimal engagement.

#### Technical Considerations

* Preprocess media (resize, compress) before upload to meet platform requirements.
* Verify media upload success before referencing media IDs in your post payload.
* Review provider documentation for specific limits (e.g., LinkedIn document size, TikTok clip length).
* Poll the job status endpoint to ensure the content was processed and published without errors.

### Related Topics

* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling) - Detailed guide for uploading and managing media
* [Network Reference](https://publer.com/docs/posting/create-posts/networks) - Platform-specific capabilities and limitations
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods) - Ways to publish different content types


# Text Posts

Simple yet powerful status updates without media attachments. Text posts are widely supported, versatile, and often drive high engagement.

### Overview

Text posts (status updates) let you share plain-text messages across all major social networks. With the Publer API you can:

* Publish or schedule text updates simultaneously to multiple platforms
* Customize each network’s copy to match character limits and conventions
* Leverage network-specific features: hashtags, mentions, rich formatting

### Key Features

* **Cross-Platform Publishing**\
  Send consistent or tailored copy to every network in one API call.
* **Character Limit Handling**\
  Automatic enforcement of each platform’s text length.
* **Rich Text Support**\
  Use hashtags, emojis, and markdown styling where supported.
* **Flexible Scheduling**\
  Instant publish, scheduled posts, or auto-optimized time slots.

### Platform Support & Limitations

<table data-header-hidden><thead><tr><th width="146.26812744140625"></th><th width="157.385498046875"></th><th></th></tr></thead><tbody><tr><td><strong>Network</strong></td><td><strong>Character Limit</strong></td><td><strong>Notes</strong></td></tr><tr><td>Facebook</td><td>10,000</td><td>Full text supported with formatting</td></tr><tr><td>Twitter/X</td><td>280</td><td>25,000 for premium accounts</td></tr><tr><td>LinkedIn</td><td>3,000</td><td>Supports formatting like bold, italic</td></tr><tr><td>Instagram</td><td>2,200</td><td>For feed post captions</td></tr><tr><td>Google Business</td><td>1,500</td><td>For business updates</td></tr><tr><td>Pinterest</td><td>500</td><td>For pin descriptions</td></tr><tr><td>Telegram</td><td>4,096</td><td>Per message</td></tr><tr><td>Mastodon</td><td>500+</td><td>Varies by server (usually 500 minimum)</td></tr><tr><td>Threads</td><td>500</td><td>Maximum length</td></tr><tr><td>Bluesky</td><td>300</td><td>Maximum length</td></tr></tbody></table>

### Request Structure

Below is an example showing a text post scheduled for multiple platforms:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Exciting news! We're launching our new product line next week. #NewLaunch #ProductAnnouncement"
          },
          "twitter": {
            "type": "status",
            "text": "Big announcement coming next week! Our new product line is almost here 🚀 #NewLaunch #ProductAnnouncement"
          },
          "linkedin": {
            "type": "status", 
            "text": "We're thrilled to announce our new product line launching next week. Stay tuned for more details! #NewLaunch #ProductAnnouncement"
          }
        },
        "accounts": [
          {
            "id": "account_id_for_facebook",
            "scheduled_at": "2025-05-20T14:30:00Z" // Optional, depending on publishing method
          },
          {
            "id": "account_id_for_twitter",
            "scheduled_at": "2025-05-20T15:00:00Z" // Optional, depending on publishing method
          },
          {
            "id": "account_id_for_linkedin",
            "scheduled_at": "2025-05-20T16:00:00Z" // Optional, depending on publishing method
          }
        ]
      }
    ]
  }
}
```

### Required Parameters

<table><thead><tr><th width="281.76287841796875">Field</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.{provider}.type</code></td><td>Must be set to <code>"status"</code></td></tr><tr><td><code>networks.{provider}.text</code></td><td>Your post copy string</td></tr><tr><td><code>accounts[].id</code></td><td>Target social account ID</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>ISO 8601 timestamp (for scheduling)</td></tr></tbody></table>

### Best Practices

* **Optimize per Platform**\
  Tailor messaging length and tone: concise on Twitter, detailed on LinkedIn.
* **Use Hashtags Strategically**\
  Add relevant tags to boost discoverability; match platform conventions.
* **Schedule for Peak Times**\
  Publish when your audience is most active across time zones.
* **Include Clear CTAs**\
  Encourage engagement with direct calls-to-action.
* **A/B Test Variations**\
  Schedule multiple text variants to measure which resonates best.

### Related Topics

* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)


# Photo Posts

Visual content that drives engagement across social networks. Use photo posts to share high-quality images—single or multiple—while respecting each platform’s unique requirements.

### Key Features

* **Multi-Platform Publishing**\
  Post images simultaneously to all supported networks.
* **Multiple Image Support**\
  Single photos or carousels (up to platform limits).
* **Advanced Customization**\
  Captions and location tags where available.
* **Resolution Optimization**\
  Automatic resizing and format handling per network.

### Platform Support & Limits

<table><thead><tr><th width="105.3690185546875">Platform</th><th width="100.15966796875">Max Photos</th><th width="125.1968994140625">Photo Size Limit</th><th width="134.597412109375">Caption Support</th><th>Notes</th></tr></thead><tbody><tr><td><strong>Facebook</strong></td><td>Unlimited</td><td>No restriction</td><td>Yes</td><td>No restrictions on photo size.</td></tr><tr><td><strong>Instagram</strong></td><td>10</td><td>8 MB</td><td>Yes</td><td>Minimum resolution: 320x320 px, automatically cropped.</td></tr><tr><td><strong>TikTok</strong></td><td>35</td><td>No restriction</td><td>Yes</td><td>Cannot mix photos with GIFs or videos.</td></tr><tr><td><strong>Threads</strong></td><td>20</td><td>8 MB</td><td>Yes</td><td>Cannot mix photos with GIFs or videos.</td></tr><tr><td><strong>Twitter</strong></td><td>4</td><td>5 MB</td><td>Yes</td><td>Supports only up to 4 photos per post.</td></tr><tr><td><strong>LinkedIn</strong></td><td>20</td><td>No restriction</td><td>Yes</td><td>Photos and GIFs are supported, cannot mix with videos.</td></tr><tr><td><strong>Telegram</strong></td><td>10</td><td>10 MB</td><td>Yes</td><td>Cannot mix photos with GIFs or videos.</td></tr><tr><td><strong>Mastodon</strong></td><td>4</td><td>8 MB</td><td>Yes</td><td>Supports JPEG, PNG, or WEBP formats.</td></tr></tbody></table>

> **Note**: Inserting Alt text is supported on Publer for all social networks. However, when creating multi-photo posts on Facebook, adding Alt text will also count as the photo caption.

> **Note**: You cannot add Alt text to Facebook Personal Profiles/Groups posts, due to API limitations from the networks.

### Request Structure <a href="#request-structure" id="request-structure"></a>

Below is an example showing a photo post scheduled for multiple platforms.

Omit `scheduled_at` for immediate posts.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "photo",
            "text": "Our new office is complete! #OfficeLife",
            "media": [
              {
                "id": "asset123456",
                "type": "photo",
                "caption": "Modern office with open layout"
              },
              {
                "id": "asset123457",
                "type": "photo",
                "caption": "Collaborative meeting area"
              }
            ]
          },
          "instagram": {
            "type": "photo",
            "text": "We’ve moved into our new HQ! 🏢✨",
            "media": [
              { "id": "asset123456", "type": "photo", "caption": "Modern office space" },
              { "id": "asset123457", "type": "photo", "caption": "Meeting area" }
            ]
          }
        },
        "accounts": [
          { "id": "FB_ACCOUNT_ID", "scheduled_at": "2025-05-20T14:30:00Z" },
          { "id": "IG_ACCOUNT_ID", "scheduled_at": "2025-05-20T15:00:00Z" }
        ]
      }
    ]
  }
}
```

### Required Parameters

<table><thead><tr><th width="282.17669677734375">Field</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.{provider}.type</code></td><td>Must be <code>"photo"</code>.</td></tr><tr><td><code>networks.{provider}.media</code></td><td>Array of <code>{ id, type, caption }</code> objects.</td></tr><tr><td><code>accounts[].id</code></td><td>Target social account ID.</td></tr><tr><td><code>accounts[].scheduled_at</code>*</td><td>ISO 8601 timestamp for scheduling (optional).</td></tr></tbody></table>

\* Omit `scheduled_at` when publishing immediately.

### Media Workflow

1. **Upload Images**: Use the [Media Handling API ](https://publer.com/docs/posting/create-posts/media-handling)to upload files.
2. **Receive IDs**: Note each media object’s `id`.
3. **Compose Post**: Reference those IDs in your `media` array.
4. **Publish/Schedule**: Send the payload to the posts endpoint.

### Best Practices

* **Optimize Quality**: Compress and resize images to platform specs.
* **Descriptive Alt Text**: Enhance accessibility and SEO.
* **Tailor Captions**: Adjust tone and length per network.
* **Experiment Carousels**: Test image order to boost engagement.
* **Consistent Branding**: Use uniform styles and watermarks.

### Related Topics

* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)


# Video Posts

Dynamic, high-impact video content for social networks. Video posts drive significantly more views and shares than static media, and the Publer API makes it easy to upload, configure, and schedule videos across multiple platforms.

### Overview

Programmatically create and schedule video content—standard uploads, short-form (Reels/Shorts/Stories), and rich metadata (titles, descriptions, custom thumbnails)—while meeting each network’s format rules and size limits.

### Key Capabilities

* **Cross-Platform Publishing**\
  One API call to distribute videos to Facebook, Instagram, YouTube, TikTok, LinkedIn, and more.
* **Format Versatility**\
  Support for standard videos, short-form (Reels, Shorts), and Stories.
* **Rich Metadata**\
  Attach titles, captions, and custom thumbnail selections.
* **Advanced Scheduling**\
  Schedule per time zone or publish immediately; poll job status for completion.

### Platform Support & Specifications

| Network   | Video Types            | Duration                                                      | Size Limit | Aspect Ratio                                     | Additional Features                 |
| --------- | ---------------------- | ------------------------------------------------------------- | ---------- | ------------------------------------------------ | ----------------------------------- |
| Facebook  | Standard, Reels, Story | <p>Standard: up to 5 h<br>Reels: 3–90 s<br>Stories: ≤60 s</p> | < 2 GB     | Flexible                                         | Auto-captions, premiere scheduling  |
| Instagram | Feed, Reels, Story     | <p>Feed: any<br>Reels: 3 s–15 min<br>Stories: ≤60 s</p>       | < 1 GB     | <p>1.91:1–4:5 (feed)<br>9:16 (Reels/Stories)</p> | Location tagging, first comment     |
| YouTube   | Standard, Shorts       | <p>Standard: up to 12 h<br>Shorts: up to 3 min</p>            | < 2 GB     | <p>16:9 (standard)<br>9:16 (Shorts)</p>          | Custom thumbnails, tags, categories |
| TikTok    | Standard               | 3 s–10 min                                                    | < 2 GB     | 9:16 (recommended)                               | Sound attribution                   |
| LinkedIn  | Standard               | 3 s–15 min                                                    | < 2 GB     | 1:2.4–2.4:1                                      | Native profile/page posting         |
| Pinterest | Standard               | 4 s–15 min                                                    | < 2 GB     | —                                                | —                                   |
| Twitter/X | Standard               | Up to 10 min                                                  | < 512 MB   | Flexible                                         | Alt text support                    |
| Telegram  | Standard               | Unlimited                                                     | < 50 MB    | Flexible                                         | —                                   |
| Mastodon  | Standard               | Unlimited                                                     | < 40 MB    | Up to 1920×1200 px                               | —                                   |
| Threads   | Standard               | Up to 5 min                                                   | < 1 GB     | Flexible                                         | —                                   |
| Bluesky   | Standard               | Up to 3 min                                                   | < 50 MB    | Flexible                                         | —                                   |

### Request Structure

Schedule a video post using the unified scheduling endpoint:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "video",
            "media": [
              {
                "id": "67da8532075cdb33821384c4",
                "thumbnails": [
                  {
                    "id": "67da852b075cdb33821384ba",
                    "small": "https://.../thumb_67da852b075cdb33821384ba.jpg",
                    "real":  "https://.../67da852b075cdb33821384ba.jpg"
                  },
                  ......
                  {
                    "id": "67da852c075cdb33821384bb",
                    "small": "https://.../thumb_67da852c075cdb33821384bb.jpg",
                    "real":  "https://.../67da852c075cdb33821384bb.jpg"
                  }
                ],
                "title": "My Video Title",
                "default_thumbnail": 1
              }
            ],
            "text": "Optional description or caption"
          }
        },
        "accounts": [
          {
            "id": "YOUR_ACCOUNT_ID",
            "scheduled_at": "2025-05-24T23:07:00+02:00"
          }
        ]
      }
    ]
  }
}
```

### Required Parameters

<table><thead><tr><th width="418.9637451171875">Field</th><th>Description</th></tr></thead><tbody><tr><td><code>bulk.state</code></td><td>Must be <code>"scheduled"</code>.</td></tr><tr><td><code>networks.{provider}.type</code></td><td>Set to <code>"video"</code>.</td></tr><tr><td><code>networks.{provider}.media</code></td><td>Array of video metadata objects.</td></tr><tr><td><code>networks.{provider}.media[].id</code></td><td>ID returned by the Media Upload endpoint.</td></tr><tr><td><code>networks.{provider}.media[].thumbnails</code></td><td>Array of thumbnail objects with <code>id</code>, <code>small</code>, and <code>real</code> URLs. To add a custom thumbnail, append an object with <code>small</code> and <code>real</code>.  Always fetch the full <code>thumbnails</code> array, either from <a href="https://publer.com/docs/api-reference/media">Listing Media</a> or from <a href="https://publer.com/docs/posting/create-posts/media-handling">Media Upload</a>, when uploading.</td></tr><tr><td><code>networks.{provider}.media[].default_thumbnail</code></td><td>0-based index to select default thumbnail.</td></tr><tr><td><code>networks.{provider}.text</code></td><td>Optional caption or description.</td></tr><tr><td><code>accounts[].id</code></td><td>Target social media account ID.</td></tr><tr><td><code>accounts[].scheduled_at</code>*</td><td>ISO 8601 timestamp (omit for immediate publishing).</td></tr></tbody></table>

\* Optional if you publish immediately via `/posts/schedule/publish`.

### Workflow for Creating Video Posts

1. **Upload Video**\
   Use the [Media Handling](https://publer.com/docs/posting/create-posts/media-handling) endpoint to upload your video.
2. **Receive Media ID**\
   Note the returned `id` for referencing in your post payload.
3. **Configure Thumbnails**\
   Upload or select thumbnail images and include their IDs/URLs.
4. **Compose & Schedule**\
   Build your post object, set `state` and `scheduled_at`, then send to `/posts/schedule`.
5. **Monitor Job**\
   Poll `/api/v1/job_status/{job_id}` until status is `completed`.

### Best Practices

* **Select Engaging Thumbnails**\
  Choose a frame or custom image that drives clicks.
* **Provide Clear Titles & Descriptions**\
  Improve accessibility and SEO with detailed metadata.
* **Validate Platform Requirements**\
  Confirm aspect ratio, encoding, and file format (MP4/H.264 recommended).

### Related Topics

* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)


# Link Posts

Share URLs with rich previews (title, description, image, and call-to-action) across your social networks via the Publer API.

### Overview <a href="#overview" id="overview"></a>

Link posts display a URL preview alongside optional caption text. You control metadata (title, description, images, CTA) to enhance engagement.

### Key Features

* Rich previews with title, description, and image
* Custom call-to-action buttons (e.g., `LEARN_MORE`, `SIGN_UP`)
* Platform-specific metadata overrides
* Schedule or publish immediately

### Platform Support

<table><thead><tr><th width="160.1873779296875">Network</th><th width="255.6014404296875">Preview Elements</th><th>Notes</th></tr></thead><tbody><tr><td>Facebook</td><td>Title, description, images, CTA</td><td>Full link card support</td></tr><tr><td>LinkedIn</td><td>Title, description, images, CTA</td><td>Full link card support</td></tr><tr><td>Twitter/X</td><td>Automatic card preview</td><td>Metadata driven by Twitter Card tags</td></tr><tr><td>Pinterest</td><td>Custom images</td><td>Requires uploaded images in <code>media</code></td></tr><tr><td>Telegram</td><td>Title, description</td><td>Native link preview</td></tr><tr><td>Mastodon</td><td>Title, description</td><td>Native link preview</td></tr><tr><td>Threads</td><td>Title, description</td><td>Native link preview</td></tr><tr><td>Bluesky</td><td>Title, description</td><td>Native link preview</td></tr></tbody></table>

### Step 1: Extract Link Metadata

Before scheduling a link post, you can extract rich metadata from any URL using the `/posts/links` endpoint. This step is optional but highly recommended for accurate previews.

## Extract Link Metadata

> Extracts metadata from a URL including title, description, images, and more. Useful for previewing links before creating a post.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"401ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/posts/links":{"post":{"summary":"Extract Link Metadata","description":"Extracts metadata from a URL including title, description, images, and more. Useful for previewing links before creating a post.","tags":["Posts"],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"title":{"type":"string","description":"Title of the webpage"},"description":{"type":"string","description":"Meta description of the webpage"},"url":{"type":"string","description":"The normalized URL"},"original_url":{"type":"string","description":"The URL as provided by the user"},"images":{"type":"array","description":"Array of image URLs found on the page","items":{"type":"string"}},"favicon":{"type":"string","description":"URL to the site's favicon"},"provider_display":{"type":"string","description":"The hostname of the URL"},"type":{"type":"string","description":"Type of the response, typically 'link' or 'error' if extraction fails","enum":["link","error"]}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"422":{"description":"Unprocessable Entity - Invalid URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}},"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The URL to extract metadata from"}},"required":["url"]}}}}}}}}
```

**Use this extracted metadata to build your link post payload.**

### Step 2: Create or Schedule a Link Post

Use the unified scheduling endpoint (`/posts/schedule`) or the immediate-publish endpoint (`/posts/schedule/publish`):

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "link",
            "text": "This is the link post type",
            "link": {
              "url": "http://publer.com",
              "provider_display": "publer.com",
              "description": "Boost your social media strategy with Publer’s suite of tools. Manage multiple accounts, schedule posts, collaborate with your team, and analyze performance—all in one place.",
              "title": "Powerful Social Media Management & Scheduling Tools | Publer",
              "images": [
                "https://framerusercontent.com/assets/20xDElBhD9Xg3L7Cx7jVMwL56FU.png",
                "https://framerusercontent.com/images/OVMI4DbyRxf9neKFkqKesfnSlHE.png",
                "https://framerusercontent.com/images/ShxTAH03BsTSB29AeYZzpPZqi8.jpg",
                "https://framerusercontent.com/images/iuLpS9a0syZanung3ZFGrbYXTKM.jpg",
                "https://framerusercontent.com/images/d7Gg6Hvachd0DuRzXGKoB1szAl4.jpg"
              ],
              "default_image": 0,
              "call_to_action": "LEARN_MORE",
              "phone_number": ""
            }
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea",
            "scheduled_at": "2025-05-24T23:18+02:00"
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="370.24072265625">Field</th><th width="77.604736328125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>bulk.state</code></td><td>string</td><td><code>scheduled</code>, <code>publish</code>, or a draft state</td></tr><tr><td><code>networks.{provider}.type</code></td><td>string</td><td>Must be <code>"link"</code></td></tr><tr><td><code>networks.{provider}.text</code></td><td>string</td><td>Caption or message to accompany the link (optional)</td></tr><tr><td><code>networks.{provider}.link.url</code></td><td>string</td><td>The target URL</td></tr><tr><td><code>networks.{provider}.link.title</code></td><td>string</td><td>Preview title (overrides fetched metadata)</td></tr><tr><td><code>networks.{provider}.link.description</code></td><td>string</td><td>Preview description (overrides fetched metadata)</td></tr><tr><td><code>networks.{provider}.link.images</code></td><td>array</td><td>Array of image URLs for the preview (overrides fetched metadata)</td></tr><tr><td><code>networks.{provider}.link.default_image</code></td><td>integer</td><td>Index (0-based) of the default image in the <code>images</code> array</td></tr><tr><td><code>networks.{provider}.link.call_to_action</code></td><td>string</td><td>CTA button type (e.g., <code>LEARN_MORE</code>, <code>SIGN_UP</code>)</td></tr><tr><td><code>accounts[].id</code></td><td>string</td><td>Target account identifier</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit to publish immediately)</td></tr></tbody></table>

> **Note:** You can also include `original_title`, `original_description`, and `original_images` if you pre‐fetch metadata yourself, but only the `link.*` fields above are required.

### Workflow

1. **Extract Metadata**\
   Use `/posts/links` to fetch title, description, and images from your target URL.
2. **Compose Metadata**\
   Define `url`, `title`, `description`, and `images` in the `link` object.
3. **Set Caption**\
   Add optional `text` to introduce or contextualize the link.
4. **Choose Default Image**\
   Use `default_image` to highlight your preferred preview image.
5. **Schedule or Publish**
   * For future posts: include `scheduled_at` under `accounts`.
   * For immediate posting: call `/posts/schedule/publish` or omit `scheduled_at`.

### Best Practices

* **Provide Complete Metadata**: Supply title, description, and images for compelling previews.
* **Optimize Image Dimensions**: Match each network’s recommended preview size for best display.
* **Use Clear CTAs**: Select a relevant `call_to_action` to guide user action.

### Related Topics

* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)


# Polls

Create and schedule interactive polls on LinkedIn, Mastodon, and Twitter to engage your audience and gather feedback.

### Key Features

* Cross-Platform Polls: One payload to post polls on multiple networks
* Flexible Duration: Support for platform-specific duration limits
* Option Constraints: Enforce character limits and unique choices
* Scheduling: Publish immediately or at a specified time

### Supported Platforms & Limits

<table><thead><tr><th width="99.21881103515625">Network</th><th width="122.255126953125">Question Field</th><th width="138.523681640625">Options</th><th width="123.940673828125">Duration</th><th width="77.8116455078125">Editable</th><th>Notes</th></tr></thead><tbody><tr><td>Twitter/X</td><td>In <code>text</code></td><td>2–4, ≤25 chars</td><td>Up to 7 days</td><td>No</td><td>Options limit applies across all networks</td></tr><tr><td>LinkedIn</td><td>Separate <code>question</code></td><td>2–4, ≤30 chars</td><td>Up to 14 days</td><td>No</td><td></td></tr><tr><td>Mastodon</td><td>In <code>text</code></td><td>2–4, ≤50 chars</td><td>Up to 7 days</td><td>Yes</td><td></td></tr></tbody></table>

> **Tip:** When sending a multi-network poll, adhere to Twitter’s 25-character option limit and common duration (e.g., 1, 3, 7 days).

### Request Structure

Use the unified scheduling endpoint:

```json
POST /api/v1/posts/schedule
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "twitter": {
          "type": "poll",
          "text": "What’s your favorite season?",
          "options": ["Spring", "Summer", "Autumn", "Winter"],
          "duration": 7
        },
        "linkedin": {
          "type": "poll",
          "question": "What’s your favorite season?",
          "text": "Vote now!",
          "options": ["Spring", "Summer", "Autumn", "Winter"],
          "duration": 7
        },
        "mastodon": {
          "type": "poll",
          "text": "What’s your favorite season?",
          "options": ["Spring", "Summer", "Autumn", "Winter"],
          "duration": 7
        }
      },
      "accounts": [
        { "id": "TW_ACCOUNT_ID", "scheduled_at": "2025-06-10T09:00:00Z" },
        { "id": "LI_ACCOUNT_ID", "scheduled_at": "2025-06-10T09:00:00Z" },
        { "id": "MA_ACCOUNT_ID", "scheduled_at": "2025-06-10T09:00:00Z" }
      ]
    }]
  }
}
```

### Parameters

<table><thead><tr><th width="274.90399169921875">Field</th><th width="78.3992919921875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.{provider}.type</code></td><td>string</td><td>Must be <code>"poll"</code>.</td></tr><tr><td><code>networks.{provider}.text</code></td><td>string</td><td>Caption or question (Twitter/Mastodon).</td></tr><tr><td><code>networks.linkedin.question</code></td><td>string</td><td>Poll question (LinkedIn only).</td></tr><tr><td><code>networks.{provider}.options</code></td><td>string[]</td><td>Array of 2–4 unique options.</td></tr><tr><td><code>networks.{provider}.duration</code></td><td>integer</td><td>Poll duration in days (platform max limits apply).</td></tr><tr><td><code>accounts[].id</code></td><td>string</td><td>Target social account ID.</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit to publish immediately).</td></tr></tbody></table>

### Platform-Specific Notes

#### Twitter/X

* Options live in `options` array; question must be in `text`.
* 2–4 options, ≤25 characters each.
* Cannot edit after publishing.

#### LinkedIn

* Uses separate `question` and `text`.
* Options ≤30 characters.
* Up to 14-day duration.

#### Mastodon

* Question goes in `text`.
* Options ≤50 characters.
* Poll can be edited after posting.

### Best Practices

* Keep questions clear and concise.
* Use unique, contrasting options.
* Align durations with campaign timelines.

### Related Topics

* [Text Posts](https://publer.com/docs/posting/create-posts/content-types/text-posts)
* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)

<br>


# GIF Posts

Animated GIFs are a fun, engaging way to capture attention. Use the Publer API to create or schedule single‐GIF posts with caption and thumbnail support across multiple platforms.

### Overview

GIF posts let you share looping animations with optional captions and metadata. Perfect for reactions, announcements, or adding personality to your feed.

### Key Features

* Cross-Platform GIF Publishing
* Custom Caption Support
* Thumbnail Preview
* Immediate or Scheduled Posting

### Platform Support & Limits

<table><thead><tr><th width="125.33514404296875">Network</th><th width="137.83392333984375">Size Limit</th><th>Notes</th></tr></thead><tbody><tr><td>Facebook</td><td>4 MB</td><td>—</td></tr><tr><td>Twitter/X</td><td>15 MB</td><td>4×4 to 2048×2048 px resolution</td></tr><tr><td>LinkedIn</td><td>Unlimited</td><td>Native GIF support</td></tr><tr><td>Telegram</td><td>50 MB</td><td>—</td></tr><tr><td>Mastodon</td><td>8 MB</td><td>Supports JPEG, PNG, WEBP, and GIF</td></tr><tr><td>Pinterest</td><td>Unlimited</td><td>—</td></tr></tbody></table>

### Request Structure

Send to the scheduling endpoint (`/posts/schedule`) or immediate‐publish (`/posts/schedule/publish`):

```json
POST /api/v1/posts/schedule
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "gif",
            "text": "Check out this fun GIF!",
            "media": [
              {
                "id": "external",
                "type": "gif",
                "url": "https://media.giphy.com/media/xyz/giphy.gif",
                "path": "https://media.giphy.com/media/xyz/giphy.gif",
                "thumbnail": "https://media.giphy.com/media/xyz/200w.webp",
                "name": "Fun Reaction GIF"
              }
            ]
          }
        },
        "accounts": [
          { 
            "id": "ACCOUNT_ID", 
            "scheduled_at": "2025-08-02T23:18:00+02:00" 
          }
        ]
      }
    ]
  }
}
```

### Required Parameters

<table><thead><tr><th width="350.1494140625">Field</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.{provider}.type</code></td><td>Must be <code>"gif"</code>.</td></tr><tr><td><code>networks.{provider}.media</code></td><td>Array of exactly one media object</td></tr><tr><td><code>networks.{provider}.media[].id</code></td><td><code>"external"</code> or your uploaded media ID</td></tr><tr><td><code>networks.{provider}.media[].type</code></td><td>Must be <code>"gif"</code>.</td></tr><tr><td><code>networks.{provider}.media[].url</code></td><td>Direct URL to the GIF file</td></tr><tr><td><code>networks.{provider}.media[].path</code></td><td>Same as URL or CDN path</td></tr><tr><td><code>networks.{provider}.media[].thumbnail</code></td><td>URL to a GIF thumbnail (e.g., WebP format)</td></tr><tr><td><code>networks.{provider}.media[].name</code></td><td>Descriptive name or title for the GIF</td></tr><tr><td><code>accounts[].id</code></td><td>Target social media account ID</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>ISO 8601 timestamp for scheduling (omit for immediate)</td></tr></tbody></table>

### Workflow

1. Reference or upload your GIF via the [Media Handling API](https://publer.com/docs/posting/create-posts/media-handling).
2. Build your post object with `"type": "gif"`.
3. (Optional) Add `"thumbnail"` and `"name"` for preview.
4. Call `/posts/schedule` or `/posts/schedule/publish`.
5. Monitor `/api/v1/job_status/{job_id}` for completion.

### Best Practices

* Compress GIFs to meet platform size limits without sacrificing quality.
* Provide a clear, engaging thumbnail to boost click-through.
* Use concise captions to add context or calls-to-action.

### Related Topics

* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)


# Post Callbacks

Automate follow-up actions when you publish or schedule posts: auto-share to other accounts, post follow-up comments (or thread posts on some networks), or auto-delete/hide content after specified conditions are met.

### Overview

Post callbacks are automation features you include per-account in the API request when creating posts. Callbacks are configured inside each `accounts[]` entry. The main callback types:

* AutoShare — automatically share a published post to other social accounts
* Follow-up Comments — schedule one or multiple comments (or threaded posts) tied to a post
* Auto-Delete / Auto-Hide — automatically remove or hide posts after conditions are met

Conditions are represented with a structured `conditions` object (relation + clauses) and can combine Time (age), Reach and Engagements checks using `AND`/`OR`.

### Endpoints

* Schedule with callbacks:\
  `POST /api/v1/posts/schedule`
* Publish now with callbacks:\
  `POST /api/v1/posts/schedule/publish`

Callbacks live inside each account object in your request payload.

### Request structure (top-level)

* bulk
  * state (e.g., "scheduled")
  * posts\[]:
    * networks: { \<network\_name>: { type, text, details, ... } }
    * accounts\[]:
      * id
      * scheduled\_at (optional)
      * share (optional)
      * comments (optional array)
      * delete (optional)

### Conditions object

Use conditions to define when a callback should execute.

Structure:

* conditions
  * relation: "AND" | "OR"
  * clauses:
    * age: { duration: number, unit: "Minute" | "Hour" | "Day" | "Week" }
    * engagements: { comparison: "gt" | "lt", value: number }
    * reach: { comparison: "gt" | "lt", value: number }

Notes:

* `age` corresponds to "Is older than".
* `engagements` and `reach` use `comparison` with "gt" (>) or "lt" (<).
* A `conditions` object can include any subset of clauses; combine them using `relation`.

### Auto-Sharing

Automatically share the link of the published post to the specified accounts.

Fields:

* share.account\_ids (string\[]) — target account IDs to share to
* share.text (string) — caption for the share (fallback: original post text where supported)
* share.conditions (object) — when the share should run (see Conditions object)
* share.account\_ids order + `delay` determine spacing between shares

Example:

```json
"share": {
  "account_ids": ["A_ID_1", "A_ID_2"],
  "text": "Check out our latest blog post!",
  "conditions": {
    "relation": "AND",
    "clauses": {
      "age": { "duration": 1, "unit": "Hour" },
      "engagements": { "comparison": "gt", "value": 10 },
      "reach": { "comparison": "gt", "value": 100 }
    }
  },
  "delay": {
      "duration": 0,
      "unit": "Minute"
    },
}
```

Supported networks: Facebook Pages→Groups (when posting as a Page to a Group), Twitter/X, LinkedIn, Pinterest, Mastodon, Threads, BlueSky, TikTok, Telegram, Google Business Profiles.

* Note: Google Business Profiles require non-empty text to auto-share.

### Follow-up Comments

Schedule comments on the published post (or create follow-up posts/threads on some networks).

Fields:

* comments\[]:
  * text (string) — comment body (text, hashtags, links, emoji)
  * language (string, optional)
  * media: (optional array)
  * conditions (object, optional) — when to post the comment (see Conditions object)

#### Comment media fields

`media` is an array of media objects.

**When `type` is `photo`**

Each media item uses:

* `id`
* `type`
* `path`
* `caption`
* `thumbnail`

**Photo example**

```json
{
  "media": [
    {
      "id": "69de4805ef6eccdc0ca11a15",
      "type": "photo",
      "path": "https://cdn.publer.com/uploads/photos/69de4805ef6eccdc0ca11a15.jpg",
      "caption": null,
      "thumbnail": "https://cdn.publer.com/uploads/photos/thumb_69de4805ef6eccdc0ca11a15.jpg"
    }
  ]
}
```

**When `type` is `video`**

Each media item uses:

* `id`
* `type`
* `path`
* `caption`
* `thumbnails`

`thumbnails` is an array of thumbnail objects containing:

* `id`
* `small`
* `real`

**Video example**

```json
{
  "media": [
    {
      "id": "6964fee1d6f826ba4a2bc046",
      "type": "video",
      "path": "https://cdn.publer.com/uploads/videos/6964fee1d6f826ba4a2bc046/9bac0de9d7b333032a9789190687171b.mp4",
      "caption": null,
      "thumbnails": [
        {
          "id": "6964fed7d6f826ba4a2bc02e",
          "small": "https://cdn.publer.com/uploads/photos/thumb_6964fed7d6f826ba4a2bc02e.jpg",
          "real": "https://cdn.publer.com/uploads/photos/6964fed7d6f826ba4a2bc02e.jpg"
        }
      ]
    }
  ]
}
```

Notes and behavior:

* On Twitter/X, Mastodon, BlueSky, and Threads the follow-up comment will be posted as a new post in the thread.
* Supported: Twitter/X, LinkedIn, Facebook Pages, Mastodon, Threads, BlueSky.
* Not supported (API limitations): Pinterest, TikTok, Facebook Personal Profiles, Google Business Profiles.
* Recurring posts: Configure follow-up comments at scheduling time to have them included for each recurrence.
* Performance-based conditions (reach/engagements) and time-based (age) commonly apply to the first comment; subsequent comments use time-based `age` only.

Example:

```json
"comments": [
  {
    "text": "First 100 customers get 10% off!",
    "conditions": {
      "relation": "AND",
      "clauses": {
        "age": { "duration": 2, "unit": "Hour" },
        "engagements": { "comparison": "gt", "value": 10 },
        "reach": { "comparison": "gt", "value": 10 }
      }
    }
  },
  {
    "text": "24 hours left—don’t miss out!",
    "conditions": {
      "relation": "AND",
      "clauses": {
        "age": { "duration": 1, "unit": "Day" }
      }
    },
    "media": {
      "id": "680fa5cc48487c4ccbf8c146",
      "type": "photo",
      "path": ".../photos/680fa5cc48487c4ccbf8c146.jpg",
      "thumbnail": ".../photos/thumb_680fa5cc48487c4ccbf8c146.jpg",
      "caption": "Only one day left!"
    }
  }
]
```

### Auto-Delete / Auto-Hide

Automatically delete or hide a post when conditions are satisfied.

Fields:

* delete.conditions (object) — conditions triggering deletion/hide (see Conditions object)
  * Use `conditions.clauses.age` to set minimum time before deletion
* delete.hide (boolean) — true to request hide instead of delete (platform-dependent)

Example:

```json
"delete": {
  "conditions": {
    "clauses": {
      "age": { "duration": 7, "unit": "Day" },
      "engagements": { "comparison": "lt", "value": 10 }
    }
  },
  "hide": false
}
```

Supported / unsupported:

* Auto-delete supported for most scheduled networks except:
  * Not available for Instagram API (auto-delete not supported)
  * Not available for TikTok accounts
  * Not available for posts published via reminders or some push/published types
  * Some types (e.g., Stories) cannot be auto-deleted
* Auto-hide only works where supported (e.g., Facebook Page posts (not videos), YouTube)

### Request Structure

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Your post content here"
          }
        },
        "accounts": [
          {
            "id": "ACCOUNT_ID",
            "scheduled_at": "2025-05-15T14:30:00Z", // Optional for immediate publishing
            "share":   { /* AutoShare config */ },
            "comments":[ /* Follow-up comments */ ],
            "delete":  { /* Auto-Delete config */ }
          }
        ]
      }
    ]
  }
}
```

### Full example

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Post with callbacks"
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea",
            "scheduled_at": "2025-10-31T10:23+01:00",
            "share": {
              "account_ids": [
                "63c675b54e299e9cf2b667e8"
              ],
              "conditions": {
                "relation": "AND",
                "clauses": {
                  "age": {
                    "duration": 10,
                    "unit": "Minute"
                  },
                  "engagements": {
                    "comparison": "gt",
                    "value": 10
                  },
                  "reach": {
                    "comparison": "gt",
                    "value": 100
                  }
                }
              },
              "text": "AUTO SHARE"
            },
            "comments": [
              {
                "text": "FOLLOW UP COMMENT",
                "conditions": {
                  "relation": "AND",
                  "clauses": {
                    "age": {
                      "duration": 10,
                      "unit": "Minute"
                    },
                    "engagements": {
                      "comparison": "gt",
                      "value": 10
                    },
                    "reach": {
                      "comparison": "gt",
                      "value": 100
                    }
                  }
                }
              },
              {
                "text": "OTHER COMMENT",
                "conditions": {
                  "relation": "AND",
                  "clauses": {
                    "age": {
                      "duration": 10,
                      "unit": "Minute"
                    }
                  }
                }
              }
            ],
            "delete": {
              "conditions": {
                "clauses": {
                  "age": {
                    "duration": 1,
                    "unit": "Hour"
                  }
                }
              },
              "hide": false
            }
          }
        ]
      }
    ]
  }
}
```

### Best practices

* Use performance-based `conditions` to avoid premature callbacks (e.g., only share if the post reached a threshold).
* Respect audience time zones when scheduling shares and comments.
* Space out repeated shares across accounts using `share.delay` to avoid spam signals.
* Prefer hiding (when supported) to preserve analytics/history if you may need them later.
* Test callback behavior on target networks (APIs and behavior differ per platform).

### Recurring posts & Post Presets

* Recurring posts: add callbacks during scheduling so each recurrence includes them automatically.
* Post Presets: configure default follow-up comments, auto-share targets, and default auto-delete/hide rules in Post Presets inside Publer. Presets use the same `conditions` model.

### Limitations & notes

* Some networks convert comments into separate posts/threads (Twitter/X, Mastodon, BlueSky, Threads).
* Follow-up comments are not supported by Pinterest, TikTok, Facebook Personal Profiles, and Google Business Profiles due to API limitations.
* Auto-delete is not available for Instagram, TikTok, posts published via reminders, or some story formats.
* Performance-based conditions depend on platform metrics; metrics may arrive with delay.

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types) - Details on different content formats
* [Scheduled Posts](https://publer.com/docs/posting/create-posts/publishing-methods/manual-scheduling) - Information about scheduling posts
* [Immediate Publishing](https://publer.com/docs/posting/create-posts/publishing-methods/immediate-publishing) - How to publish content immediately


# Post with Signature

Automatically append a branded or informative signature to your social posts. Signatures help drive consistency and professionalism across your accounts.

### Overview

A signature is a reusable block of text (such as a disclaimer, call-to-action, or branded tagline) you can attach to posts on supported networks. You can manage multiple signatures per account and select which one to append when scheduling or publishing.

### Step 1: Fetch Available Signatures

Before attaching a signature to your post, retrieve the available signatures for your account(s):

## Get Signatures for Accounts

> Retrieves signatures associated with specified accounts in a workspace.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Workspaces","description":"Endpoints for managing workspaces and teams"}],"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":{"401ErrorResponse":{"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":{"/workspaces/{workspace_id}/signatures":{"get":{"summary":"Get Signatures for Accounts","description":"Retrieves signatures associated with specified accounts in a workspace.","tags":["Workspaces"],"parameters":[{"schema":{"type":"string"},"name":"workspace_id","in":"path","description":"ID of the workspace to retrieve signatures from","required":true},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"name":"accounts","in":"query","description":"Array of account IDs to filter signatures by","required":true}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"account_id":{"type":"string","description":"ID of the account"},"signatures":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the signature"},"label":{"type":"string","description":"Label of the signature"},"text":{"type":"string","description":"Content of the signature"},"default":{"type":"boolean","description":"Whether this is the default signature"},"in_photo_captions":{"type":"boolean","description":"Whether this signature is included in photo captions"}}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Step 2: Create or Schedule a Post with a Signature

When scheduling or publishing a post, use the `signature` parameter within the relevant `accounts` object to append a signature to the post.

**Example Request:**

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Check out our latest news!"
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea",
            "scheduled_at": "2025-06-13T10:16:00+02:00",
            "signature": "680fa73ebd7195d33da6630b"
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="240.62359619140625">Field</th><th width="70.188720703125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>accounts[].id</code></td><td>string</td><td>Target account ID</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit for immediate publishing)</td></tr><tr><td><code>accounts[].signature</code></td><td>string</td><td>Signature ID to append (from the fetched signatures for this account)</td></tr><tr><td><code>networks.{provider}.type</code></td><td>string</td><td>Post type (e.g., "status", "photo", etc.)</td></tr><tr><td><code>networks.{provider}.text</code></td><td>string</td><td>Main post text (the signature is appended to this on publish)</td></tr></tbody></table>

### Key Notes & Limitations

* **Account-specific**: Up to 10 signatures per account.
* **Supported Networks**: Most networks except Twitter/X and Bluesky (unless you have X Premium, due to character limits).
* **Photo Captions**: On Facebook, configure whether the signature is included in photo captions for multi-photo posts.
* **Auto-Share**: Signatures are not included when you auto-share a scheduled post.
* **Signature Management**: Signatures must be created and managed for each social account individually.

### Best Practices

* Craft signatures that reinforce your brand identity.
* Use signatures for legal disclaimers, campaign CTAs, or promotional blurbs.
* Set a default signature for frequent use.

### Related Topics

* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)


# Post with Watermark

Protect your creative content and reinforce your brand by automatically applying watermarks to photos and videos you share across your social accounts.

### Overview

A watermark is a logo or symbol placed on your media to discourage unauthorized use and promote your brand. With Publer, you can save, manage, and apply unique watermarks per account—no editing skills required.

Watermarking is available on the **Professional Plan** for images and the **Business Plan** for videos.

### Step 1: Fetch Available Watermarks

Use the [Media Options endpoint](https://publer.com/docs/posting/create-posts/media-options) to get all saved watermarks for your account(s):

**Response Example:**

```json
[
  {
    "id": "63c675b54e299e9cf2b667ea",
    "albums": [],
    "watermarks": [
      {
        "id": "680fa7bebd7195d33da6630d",
        "name": "Brand Logo",
        "opacity": 80,
        "size": 6,
        "position": "bottom_right",
        "default": true,
        "image": "https://cdn.example.com/watermarks/logo.png"
      }
    ]
  }
]
```

* Each watermark is account-specific.
* You can create and manage multiple watermarks per account in Publer.

### Step 2: Schedule or Publish a Post with a Watermark

When creating or scheduling a post, specify the full `watermark` object in the relevant `accounts` array. The watermark settings will be applied to all attached media.

**Example Request:**

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "video",
            "text": "Watermark posts",
            "media": [
              {
                "id": "67da8532075cdb33821384c4",
                "name": "Follow your dreams.mp4",
                "path": "https://cdn.example.com/videos/67da8532075cdb33821384c4.mp4",
                "type": "video"
              }
            ],
            "details": {
              "type": "reel"
            }
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea",
            "scheduled_at": "2025-08-02T10:16:00+02:00",
            "watermark": {
              "id": "680fa7bebd7195d33da6630d",
              "name": "Brand Logo",
              "opacity": 80,
              "size": 6,
              "position": "bottom_right",
              "default": true,
              "image": "https://cdn.example.com/watermarks/logo.png"
            }
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="237.20751953125">Field</th><th width="85.81573486328125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>accounts[].id</code></td><td>string</td><td>Target account ID</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit for immediate publish)</td></tr><tr><td><code>accounts[].watermark</code></td><td>object</td><td>Watermark object to apply (see below)</td></tr><tr><td><code>watermark.id</code></td><td>string</td><td>Watermark ID (from fetched media options)</td></tr><tr><td><code>watermark.name</code></td><td>string</td><td>Watermark label</td></tr><tr><td><code>watermark.opacity</code></td><td>number</td><td>Opacity (0–100, higher = more opaque)</td></tr><tr><td><code>watermark.size</code></td><td>number</td><td>Relative size percentage (e.g., 6 = 6% of media size)</td></tr><tr><td><code>watermark.position</code></td><td>string</td><td>Position on media (<code>bottom_right</code>, <code>top_left</code>, etc.)</td></tr><tr><td><code>watermark.default</code></td><td>boolean</td><td>Whether this is the default watermark</td></tr><tr><td><code>watermark.image</code></td><td>string</td><td>URL to the watermark image (PNG recommended)</td></tr></tbody></table>

### Best Practices

* Use PNG logos with transparent backgrounds for cleaner results.
* Place watermarks in corners with moderate opacity to protect without distracting.
* Watermarking is available per account and per post—choose the right watermark for each audience.

### Key Notes & Limitations

* **Plan Requirements**: Watermarking images requires the Professional Plan, videos require the Business Plan.
* **Unlimited Media**: No limit on the number of photos you can watermark per post.
* **Account-specific**: Watermarks are managed and applied per account.
* **Media Orientation**: Watermarks are applied consistently regardless of image/video orientation.

### Related Topics

* [Media Options](https://github.com/copilot/c/posts-media-options.md)
* [Media Handling](https://github.com/copilot/c/posts-media-handling.md)
* [Publishing Methods](https://github.com/copilot/c/posts-publishing-methods.md)


# Post with Location

Tag your posts with a real-world location to increase engagement and reach more local audiences. Publer supports location tagging for Facebook Pages, Instagram Business accounts and Threads accounts.

### Overview

Location tagging attaches a physical place (such as a city, office, or venue) to your Facebook, Instagram or Threads post. This is especially helpful for businesses, events, and local marketing.

### Step 1: Search for a Location

Use Publer’s dedicated endpoints to search and select the correct location for your post:

## Search for Facebook locations

> Search and retrieve Facebook locations based on a query string.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Locations","description":"Endpoints for searching social media locations"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"Location":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the location"},"name":{"type":"string","description":"Name of the location"},"info":{"type":"string","description":"Additional information about the location"},"verified":{"type":"boolean","description":"Whether the location is verified"}},"required":["id","name"]},"403ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/locations/facebook":{"get":{"tags":["Locations"],"summary":"Search for Facebook locations","description":"Search and retrieve Facebook locations based on a query string.","operationId":"searchFacebookLocations","parameters":[{"schema":{"type":"string"},"name":"q","in":"query","description":"Search query for Facebook locations","required":true}],"responses":{"200":{"description":"List of Facebook locations matching the search query","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Location"}}}}},"403":{"description":"Authentication failure or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}},"422":{"description":"Invalid request or Facebook API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## Search for Instagram locations

> Search and retrieve Instagram locations based on a query string.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Locations","description":"Endpoints for searching social media locations"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"Location":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the location"},"name":{"type":"string","description":"Name of the location"},"info":{"type":"string","description":"Additional information about the location"},"verified":{"type":"boolean","description":"Whether the location is verified"}},"required":["id","name"]},"ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/locations/instagram":{"get":{"tags":["Locations"],"summary":"Search for Instagram locations","description":"Search and retrieve Instagram locations based on a query string.","operationId":"searchInstagramLocations","parameters":[{"schema":{"type":"string"},"name":"q","in":"query","description":"Search query for Instagram locations","required":true}],"responses":{"200":{"description":"List of Instagram locations matching the search query","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Location"}}}}},"403":{"description":"Authentication failure, invalid token, or no Instagram account with Facebook login","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request or Instagram API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## Search for Threads locations

> Search and retrieve Threads locations based on a query string.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Locations","description":"Endpoints for searching social media locations"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"ThreadsLocation":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the location"},"name":{"type":"string","description":"Name of the location"},"info":{"type":"string","description":"Additional information about the location"}},"required":["id","name"]},"ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/locations/threads":{"get":{"tags":["Locations"],"summary":"Search for Threads locations","description":"Search and retrieve Threads locations based on a query string.","operationId":"searchThreadsLocations","parameters":[{"schema":{"type":"string"},"name":"q","in":"query","description":"Search query for Threads locations","required":true}],"responses":{"200":{"description":"List of Threads locations matching the search query","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThreadsLocation"}}}}},"403":{"description":"Authentication failure, invalid token, or no Threads account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request or Threads API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

**Location Object Example:**

```json
{
  "id": "308281375929281",
  "name": "Tirana",
  "info": "Tirana, Albania ⋅ 590 follow this",
  "verified": true
}
```

### Step 2: Schedule or Publish a Post with a Location

When creating or scheduling a post, use the `location` object inside the relevant `accounts` array:

**Example Request:**

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Facebook location"
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea",
            "scheduled_at": "2025-06-14T10:21:00+02:00",
            "location": {
              "id": "308281375929281",
              "name": "Tirana",
              "info": "Tirana, Albania ⋅ 590 follow this",
              "verified": null,
              "address": "Tirana, Albania",
              "checkins": "590"
            }
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="232.7801513671875">Field</th><th width="87.4908447265625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>accounts[].id</code></td><td>string</td><td>Target account ID</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit for immediate publish)</td></tr><tr><td><code>accounts[].location</code></td><td>object</td><td>Location object to tag (see below)</td></tr><tr><td><code>location.id</code></td><td>string</td><td>Unique identifier of the location (from search results)</td></tr><tr><td><code>location.name</code></td><td>string</td><td>Name of the location</td></tr><tr><td><code>location.info</code></td><td>string</td><td>Additional info about the location (optional)</td></tr><tr><td><code>location.verified</code></td><td>boolean</td><td>Whether the location is verified (optional)</td></tr><tr><td><code>location.address</code></td><td>string</td><td>Physical address (optional)</td></tr><tr><td><code>location.checkins</code></td><td>integer</td><td>Number of check-ins (optional)</td></tr></tbody></table>

### Key Notes & Limitations

* **Supported Networks**: Location tagging is supported for Facebook Pages, Instagram Business and Threads accounts only.
* **Media Types Restrictions**: You cannot add locations to Facebook regular videos, GIFs, Stories, or Reels scheduled via reminders.
* **Other Networks**: Twitter/X no longer supports location tagging via API.
* **Search Required**: Always search and select the correct location using the endpoints above before scheduling your post.

### Best Practices

* Always verify the location by name and address before tagging.
* Tagging your business or event location can boost local discovery and engagement.
* Use location tags for promotions, events, or posts relevant to specific regions

### Related Topics

* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)


# Platform-Specific Formats

Each social network offers unique post formats. Publer’s API supports these specialized types—click a format to dive into its implementation details:

* [Text Posts with Background](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/facebook-text-posts-with-background)
* [Multi-Link Posts (Facebook Carousels)](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/multi-link-posts-facebook-carousels)
* [Polls](https://publer.com/docs/posting/create-posts/content-types/polls)
* [LinkedIn PDF Carousels](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/linkedin-pdf-carousels)
* [Pinterest Pins with a Link URL](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/pinterest-pins-with-a-link-url)
* [Google Events, Offers, and Photos](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/google-business-profiles-updates-photos-events-and-offers)
* [Reels, Shorts, or Stories](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/reels-shorts-and-stories)

### Best Practices

* **Choose the Right Format**\
  Select the layout that matches your content goal and platform norms.
* **Follow Platform Guidelines**\
  Observe character limits, aspect ratios, and file-size rules.
* **Enhance Engagement**\
  Interactive formats (polls, carousels) tend to drive higher user interaction.
* **Test & Iterate**\
  Experiment across formats to discover what resonates best with your audience.

### Related Topics

* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)

<br>


# Facebook Text Posts with Background

Create and schedule Facebook status updates with vibrant backgrounds to boost engagement and visual appeal.

### Request Body

Include `text_format_preset_id` in `details` under the `facebook` network:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "details": {
              "text_format_preset_id": "1868855943417360"
            },
            "text": "Status update with background color\n\npubler.com"
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea",
            "scheduled_at": "2025-06-21T23:18:00+02:00"
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="440.259521484375">Field</th><th width="75.984619140625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.facebook.type</code></td><td>string</td><td>Must be <code>"status"</code>.</td></tr><tr><td><code>networks.facebook.details</code></td><td>object</td><td>Facebook-specific settings.</td></tr><tr><td><code>networks.facebook.details.text_format_preset_id</code></td><td>string</td><td>ID of the background preset (see list below).</td></tr><tr><td><code>networks.facebook.text</code></td><td>string</td><td>Your post copy.</td></tr></tbody></table>

### Background Presets

Use one of these `text_format_preset_id` values to select a background:

<table data-header-hidden><thead><tr><th width="237.84161376953125"></th><th></th></tr></thead><tbody><tr><td>ID</td><td>Background Description</td></tr><tr><td><code>106018623298955</code></td><td>Solid purple, background</td></tr><tr><td><code>365653833956649</code></td><td>Pink tropical plants, background image</td></tr><tr><td><code>618093735238824</code></td><td>Brown illustration, background image</td></tr><tr><td><code>191761991491375</code></td><td>3D hearts, background image</td></tr><tr><td><code>2193627793985415</code></td><td>3D heart eyes emojis, background image</td></tr><tr><td><code>200521337465306</code></td><td>3D flame emojis, background image</td></tr><tr><td><code>1821844087883360</code></td><td>Walking Yellow illustration, background image</td></tr><tr><td><code>177465482945164</code></td><td>Light purple 3D cube pattern, background image</td></tr><tr><td><code>160419724814650</code></td><td>Orange with Pink illustration, background image</td></tr><tr><td><code>248623902401250</code></td><td>3D smiling emoji background, background image</td></tr><tr><td><code>240401816771706</code></td><td>3D rose emojis, background image</td></tr><tr><td><code>1868855943417360</code></td><td>3D crying laughter emoji, background image</td></tr><tr><td><code>255989551804163</code></td><td>Eye Pink illustration, background image</td></tr><tr><td><code>1792915444087912</code></td><td>1792915444087912 illustration, background image</td></tr><tr><td><code>1654916007940525</code></td><td>Light grey illustration, background image</td></tr><tr><td><code>1679248482160767</code></td><td>Light blue illustration, background image</td></tr><tr><td><code>518948401838663</code></td><td>Pink heart pattern on pink background, background image</td></tr><tr><td><code>423339708139719</code></td><td>Illustration, background image</td></tr><tr><td><code>204187940028597</code></td><td>Solid red, background</td></tr><tr><td><code>621731364695726</code></td><td>Solid red, background</td></tr><tr><td><code>518596398537417</code></td><td>Red illustration, background image</td></tr><tr><td><code>134273813910336</code></td><td>Tree Red illustration, background image</td></tr><tr><td><code>217321755510854</code></td><td>Pink and purple hearts on a pink background, background image</td></tr><tr><td><code>323371698179784</code></td><td>Sunset Red illustration, background image</td></tr><tr><td><code>901751159967576</code></td><td>Gradient, dark orange red, background</td></tr><tr><td><code>552118025129095</code></td><td>Brown illustration, background image</td></tr><tr><td><code>263789377694911</code></td><td>Apple Red illustration, background image</td></tr><tr><td><code>606643333067842</code></td><td>Tulip Light orange illustration, background image</td></tr><tr><td><code>458988134561491</code></td><td>Cat Dark orange illustration, background image</td></tr><tr><td><code>548109108916650</code></td><td>Unicorn Red illustration, background image</td></tr><tr><td><code>175493843120364</code></td><td>Pink and yellow gradient, background image</td></tr><tr><td><code>338976169966519</code></td><td>Stairs Beige illustration, background image</td></tr><tr><td><code>206513879997925</code></td><td>Spiral Beige illustration, background image</td></tr><tr><td><code>168373304017982</code></td><td>Cube Beige illustration, background image</td></tr><tr><td><code>1271157196337260</code></td><td>Solid red, background</td></tr><tr><td><code>174496469882866</code></td><td>Lemon Yellow illustration, background image</td></tr><tr><td><code>862667370603267</code></td><td>Egg Light yellow illustration, background image</td></tr><tr><td><code>127541261450947</code></td><td>Ball Green illustration, background image</td></tr><tr><td><code>218067308976029</code></td><td>218067308976029 Light grey illustration, background image</td></tr><tr><td><code>688479024672716</code></td><td>Gradient, teal light green, background</td></tr><tr><td><code>238863426886624</code></td><td>Cat Light blue illustration, background image</td></tr><tr><td><code>301029513638534</code></td><td>Solid teal, background</td></tr><tr><td><code>154977255088164</code></td><td>Solid teal, background</td></tr><tr><td><code>1941912679424590</code></td><td>Gradient, grey dark grey, background</td></tr><tr><td><code>396343990807392</code></td><td>Flower Teal illustration, background image</td></tr><tr><td><code>143093446467972</code></td><td>Blue clouds on a dark blue background, background image</td></tr><tr><td><code>161409924510923</code></td><td>Rocket ship makes a heart in the sky, background image</td></tr><tr><td><code>145893972683590</code></td><td>Solid dark purple, background</td></tr><tr><td><code>217761075370932</code></td><td>Solid blue, background</td></tr><tr><td><code>931584293685988</code></td><td>Wave Blue illustration, background image</td></tr><tr><td><code>148862695775447</code></td><td>Pink and purple hearts on a purple background, background image</td></tr><tr><td><code>100114277230063</code></td><td>Deep Sea Blue illustration, background image</td></tr><tr><td><code>558836317844129</code></td><td>Spiral purple illustration, background image</td></tr><tr><td><code>172497526576609</code></td><td>Watermelon Light purple illustration, background image</td></tr><tr><td><code>433967226963128</code></td><td>Solid purple, background</td></tr><tr><td><code>197865920864520</code></td><td>Donut Light purple illustration, background image</td></tr><tr><td><code>643122496026756</code></td><td>Pink illustration, background image</td></tr><tr><td><code>762009070855346</code></td><td>Ballon Light grey illustration, background image</td></tr><tr><td><code>228164237768720</code></td><td>Grey heart pattern on a black background, background image</td></tr><tr><td><code>146487026137131</code></td><td>Rain Black illustration, background image</td></tr><tr><td><code>221828835275596</code></td><td>Glasses Light grey illustration, background image</td></tr><tr><td><code>1903718606535395</code></td><td>Solid red, background</td></tr><tr><td><code>1881421442117417</code></td><td>Solid black, background</td></tr><tr><td><code>249307305544279</code></td><td>Gradient, red blue, background</td></tr><tr><td><code>1777259169190672</code></td><td>Gradient, purple magenta, background</td></tr><tr><td><code>303063890126415</code></td><td>Yellow and orange and pink gradient, background image</td></tr><tr><td><code>122708641613922</code></td><td>Gradient, dark grey black, background</td></tr><tr><td><code>319468561816672</code></td><td>Dark blue illustration, background image</td></tr><tr><td><code>121945541697934</code></td><td>121945541697934 Pink illustration, background image</td></tr><tr><td><code>288211338285858</code></td><td>Blue illustration, background image</td></tr><tr><td><code>446330032368780</code></td><td>Gradient, red, background</td></tr><tr><td><code>219266485227663</code></td><td>Solid magenta, background</td></tr><tr><td><code>1289741387813798</code></td><td>Solid dark red, background</td></tr><tr><td><code>1365883126823705</code></td><td>Solid blue, background</td></tr></tbody></table>

### Key Notes & Limitations

* **No Other Media**: Background posts cannot include images or videos.
* **Facebook Pages Only**: Not supported on personal profiles or groups.
* **Links as Plain Text**: URLs in your text appear without link previews.
* **Editing**: You may change—but not remove—a background on published posts.
* **Character Limit**: Publer allows unlimited text; Facebook enforces a 130-character cap on background posts.
* **Syncing**: Background posts sync back as plain text, not background posts.

### Best Practices

* **Select Complementary Backgrounds**: Match your brand palette and message.
* **Keep Copy Concise**: Short, punchy text reads best over busy backgrounds.
* **Preview Before Posting**: Verify legibility and overall visual balance.

### Related Topics

* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)

<br>


# Multi-Link Posts (Facebook Carousels)

Create and schedule multi‐link carousel posts on Facebook Pages. Carousels let you showcase up to 10 clickable cards—each with its own image, title, description, and call-to-action—in a single organic post.

### Request Body

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "carousel",
            "text": "Explore our top features!",
            "sublinks": [
              {
                "url": "https://publer.com",
                "title": "Publer Dashboard",
                "description": "Manage all your social accounts in one place.",
                "images": [
                  "https://cdn.publer.com/images/dashboard1.jpg",
                  "https://cdn.publer.com/images/dashboard2.jpg"
                ],
                "default_image": 0,
                "call_to_action": "LEARN_MORE"
              },
              {
                "url": "https://publer.com/pricing",
                "title": "Pricing Plans",
                "description": "Find the right plan for your team.",
                "images": [
                  "https://cdn.publer.com/images/pricing.jpg"
                ],
                "default_image": 0,
                "call_to_action": "SIGN_UP"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "63c675b54e299e9cf2b667ea",
            "scheduled_at": "2025-07-06T23:18:00Z"
          }
        ]
      }
    ]
  }
}
```

### Parameters

#### networks.facebook

<table><thead><tr><th width="124.7813720703125">Field</th><th width="107.924560546875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td>string</td><td>Must be <code>"carousel"</code>.</td></tr><tr><td><code>text</code></td><td>string</td><td>Caption shown above the carousel cards.</td></tr><tr><td><code>sublinks[]</code></td><td>array</td><td>List of carousel items (max 10).</td></tr></tbody></table>

#### sublinks\[] Object

<table><thead><tr><th width="175.5565185546875">Field</th><th width="86.56463623046875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>url</code></td><td>string</td><td>Target link for this card.</td></tr><tr><td><code>provider_display</code></td><td>string</td><td>(Optional) Display domain or provider name.</td></tr><tr><td><code>title</code></td><td>string</td><td>Card title (overrides fetched metadata).</td></tr><tr><td><code>description</code></td><td>string</td><td>Card description (overrides fetched metadata).</td></tr><tr><td><code>images</code></td><td>string[]</td><td>Array of image URLs for this card.</td></tr><tr><td><code>default_image</code></td><td>integer</td><td>Index (0-based) of the default image in <code>images</code>.</td></tr><tr><td><code>call_to_action</code></td><td>string</td><td>CTA button type: <code>NO_BUTTON</code>, <code>LEARN_MORE</code>, <code>SIGN_UP</code>, etc.</td></tr><tr><td><code>phone_number</code></td><td>string</td><td>(Optional) Phone number for call-to-action cards.</td></tr><tr><td><code>customized</code></td><td>boolean</td><td>(Optional) <code>true</code> if overriding the link’s default thumbnail or metadata.</td></tr></tbody></table>

### Key Notes & Limitations

* **Pages Only**: Supported on Facebook Pages. Group posts will include only the first sublink.
* **Max Sublinks**: Up to 10 cards per carousel.
* **No Cost**: Carousel posts are organic (no ad spend).
* **Syncing**: Published carousel posts can only sync back as regular link posts (no carousel structure).

### Workflow

1. **Select Page**\
   Choose a Facebook Page account in the `accounts` array.
2. **Define Sublinks**\
   Provide `url`, `title`, `description`, and `images` for each card.
3. **Arrange Order**\
   Order sublinks as they should appear (array index defines order).
4. **Schedule or Publish**
   * For scheduled: set `scheduled_at` under `accounts`.
   * For immediate: omit `scheduled_at` and use `/posts/schedule/publish`.

### Best Practices

* **Engaging Thumbnails**\
  Use high-quality images that clearly represent each link.
* **Clear Titles & Descriptions**\
  Keep text concise and action-oriented to drive clicks.
* **Focused Carousels**\
  Limit to 5–7 cards to avoid overwhelming users.
* **A/B Test CTAs**\
  Experiment with `LEARN_MORE`, `SIGN_UP`, and other button types.

### Related Topics

* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)


# LinkedIn PDF Carousels

Turn multiple images or documents into a scrollable PDF carousel in a single LinkedIn post. Perfect for presentations, portfolios, and multi-page documents.

### Overview

Include `type: "photo"` and set `details.type: "document"` to bundle your media into a PDF carousel. You may upload images, PDFs, Word, or PowerPoint files up to 100 pages/photos.

### Request Structure

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "linkedin": {
            "type": "photo",
            "text": "Description",
            "media": [
              {
                "id": "680fa5cc48487c4ccbf8c146",
                "name": "",
                "caption": "Photo by KaLisa Veer on Unsplash:\n\nhttps://unsplash.com/photos/the-chrysler-building-is-framed-by-other-buildings-sdU2K71G8TI",
                "path": "https://publer-dev.s3.amazonaws.com/uploads/photos/680fa5cc48487c4ccbf8c146.jpg",
                "type": "photo",
                "thumbnail": "https://publer-dev.s3.amazonaws.com/uploads/photos/thumb_680fa5cc48487c4ccbf8c146.jpg"
              },
              {
                "id": "66f54e664e299e991eaafaeb",
                "name": "pexels-christian-heitz-285904-842711.jpg",
                "caption": null,
                "path": "https://publer-dev.s3.amazonaws.com/uploads/photos/66f54e664e299e991eaafaeb.jpg",
                "type": "photo",
                "thumbnail": "https://publer-dev.s3.amazonaws.com/uploads/photos/thumb_66f54e664e299e991eaafaeb.jpg"
              },
              {
                "id": "66f122324e299eb6bcc9af55",
                "name": "",
                "caption": "Photo by David Villasana on Unsplash:\n\nhttps://unsplash.com/photos/a-black-car-parked-in-front-of-a-white-building-Pf9KhOIylaM",
                "path": "https://publer-dev.s3.amazonaws.com/uploads/photos/66f122324e299eb6bcc9af55.jpg",
                "type": "photo",
                "thumbnail": "https://publer-dev.s3.amazonaws.com/uploads/photos/thumb_66f122324e299eb6bcc9af55.jpg"
              },
              {
                "id": "66df7c954e299e47dae172ac",
                "name": "Cabin life",
                "caption": "Photo by Karsten Winegeart on Unsplash:\n\nhttps://unsplash.com/photos/a-house-sitting-on-top-of-a-lush-green-hillside-xUyOWyCjJ_I",
                "path": "https://publer-dev.s3.amazonaws.com/uploads/photos/66df7c954e299e47dae172ac.jpg",
                "type": "photo",
                "thumbnail": "https://publer-dev.s3.amazonaws.com/uploads/photos/thumb_66df7c954e299e47dae172ac.jpg"
              },
              {
                "id": "66df7c8d4e299e47dae172ab",
                "name": "",
                "caption": "Photo by Edgar.infocus on Unsplash:\n\nhttps://unsplash.com/photos/a-car-driving-on-a-foggy-road-AwRcfU8T4dg",
                "path": "https://publer-dev.s3.amazonaws.com/uploads/photos/66df7c8d4e299e47dae172ab.jpg",
                "type": "photo",
                "thumbnail": "https://publer-dev.s3.amazonaws.com/uploads/photos/thumb_66df7c8d4e299e47dae172ab.jpg"
              },
              {
                "id": "66d04c6d4e299e51d9e1f747",
                "name": "5574042b224543ecaf6989f6725dd555.jpeg",
                "caption": null,
                "path": "https://publer-dev.s3.amazonaws.com/uploads/photos/66d04c6d4e299e51d9e1f747.jpeg",
                "type": "photo",
                "thumbnail": "https://publer-dev.s3.amazonaws.com/uploads/photos/thumb_66d04c6d4e299e51d9e1f747.jpeg"
              }
            ],
            "details": {
              "type": "document"
            },
            "title": "Title of the document"
          }
        },
        "accounts": [
          {
            "id": "64c90c0d4e299e38dc86a284",
            "scheduled_at": "2025-06-21T14:16+02:00"
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="292.77294921875">Field</th><th width="70.7022705078125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.linkedin.type</code></td><td>string</td><td>Must be <code>"photo"</code></td></tr><tr><td><code>networks.linkedin.text</code></td><td>string</td><td>Post caption (optional)</td></tr><tr><td><code>networks.linkedin.media[]</code></td><td>array</td><td>Up to 100 items; each with <code>"id"</code> from Media Upload</td></tr><tr><td><code>networks.linkedin.details.type</code></td><td>string</td><td>Must be <code>"document"</code> to enable PDF carousel</td></tr><tr><td><code>networks.linkedin.title</code></td><td>string</td><td>Document title (required)</td></tr><tr><td><code>accounts[].id</code></td><td>string</td><td>LinkedIn profile or page account ID</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit to publish immediately)</td></tr></tbody></table>

### Supported Features & Limitations

<table><thead><tr><th width="184.7607421875">Feature</th><th>Details</th></tr></thead><tbody><tr><td>Max Items</td><td>100 photos/pages</td></tr><tr><td>Supported Formats</td><td>JPEG, PNG, PDF, DOCX, PPTX</td></tr><tr><td>Media Mix</td><td>No GIFs or videos—photos/documents only</td></tr><tr><td>Title Requirement</td><td><code>title</code> field is mandatory</td></tr><tr><td>File Size</td><td>No explicit size limit for photos; follows Media API rules</td></tr><tr><td>Editing</td><td>Cannot change media type after scheduling</td></tr></tbody></table>

### Workflow

1. **Upload Media**\
   Use the [Media Upload API](https://publer.com/docs/posting/create-posts/media-handling) to upload images or documents and collect their IDs.
2. **Compose Post**
   * Set `type: "photo"`, add `media` IDs.
   * Under `details`, set `"type": "document"`.
   * Provide a `title`.
3. **Schedule or Publish**
   * Add `scheduled_at` under `accounts` to schedule.
   * Omit `scheduled_at` to publish immediately.

### Best Practices

* Use **high-resolution** images or properly formatted documents for clarity.
* Craft a **concise title** that accurately represents the carousel content.
* **Organize slides** in logical order to guide viewers.

### Related Topics

* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)


# Pinterest Pins With a Link URL

Share visually engaging Pins with an external link URL to drive traffic from Pinterest boards.

### Overview

Create or schedule a Pinterest Pin by setting `type: "photo"`, adding your media, specifying `url` for the external link, and the `album_id` to select the destination board.

### Key Features

* Single API call to schedule or publish…
* Supports up to 5 photos or 1 video per Pin
* Clickable external URL
* Specify the target board with `album_id`
* Optional alt text for accessibility

### Supported Features & Limits

<table><thead><tr><th width="196.09722900390625">Feature</th><th>Details</th></tr></thead><tbody><tr><td>Max Media</td><td>1 video or up to 5 photos</td></tr><tr><td>Supported Formats</td><td>JPEG, PNG, GIF, MP4</td></tr><tr><td>Link URL</td><td>External links only (use <code>url</code> field)</td></tr><tr><td>Caption</td><td>Optional (<code>media[].caption</code>)</td></tr><tr><td>Board Selection</td><td>Use <code>accounts[].album_id</code> to pick a Pinterest board</td></tr></tbody></table>

### Request Structure

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "pinterest": {
            "type": "photo",
            "text": "Check out our new blog post!",
            "media": [
              {
                "id": "external-0",
                "type": "photo",
                "path": "https://cdn.example.com/images/post1.jpg",
                "thumbnail": "https://cdn.example.com/images/post1-thumb.jpg",
                "caption": "Screenshot of our blog homepage"
              }
            ],
            "title": "Our Latest Blog Article",
            "url": "https://publer.com/blog"
          }
        },
        "accounts": [
          {
            "id": "YOUR_PINTEREST_ACCOUNT_ID",
            "scheduled_at": "2025-07-05T14:16:00+02:00",
            "album_id": "934145216398624390"
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="342.2523193359375">Field</th><th width="76.8682861328125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.pinterest.type</code></td><td>string</td><td>Must be <code>"photo"</code>.</td></tr><tr><td><code>networks.pinterest.text</code></td><td>string</td><td>Caption or description for the Pin.</td></tr><tr><td><code>networks.pinterest.media</code></td><td>array</td><td>List of media objects (1 video or up to 5 photos).</td></tr><tr><td><code>networks.pinterest.media[].id</code></td><td>string</td><td><code>"external-X"</code> or media ID from Publer.</td></tr><tr><td><code>networks.pinterest.media[].path</code></td><td>string</td><td>URL to the full-size image or video.</td></tr><tr><td><code>networks.pinterest.media[].thumbnail</code></td><td>string</td><td>URL to the thumbnail image.</td></tr><tr><td><code>networks.pinterest.media[].type</code></td><td>string</td><td>Must be <code>"photo"</code> or <code>"video"</code>.</td></tr><tr><td><code>networks.pinterest.media[].caption</code></td><td>string</td><td>Accessible description of the image (optional).</td></tr><tr><td><code>networks.pinterest.title</code></td><td>string</td><td>Pin title displayed on hover.</td></tr><tr><td><code>networks.pinterest.url</code></td><td>string</td><td>Clickable external link URL.</td></tr><tr><td><code>accounts[].id</code></td><td>string</td><td>Pinterest account identifier.</td></tr><tr><td><code>accounts[].album_id</code></td><td>string</td><td>Board ID where the Pin will be posted.</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit to publish immediately).</td></tr></tbody></table>

### Workflow

1. **Select Account & Board**\
   Add your Pinterest `account.id` and target `album_id`.
2. **Upload/Reference Media**\
   Upload up to 5 photos or 1 video to Publer, then reference each with its `id`.
3. **Compose Pin**
   * Set `type: "photo"`.
   * Provide `text`, `title`, and `url`.
   * Optionally add `caption`.
4. **Schedule or Publish**
   * To schedule, include `scheduled_at`.
   * To publish now, call `/posts/schedule/publish` or omit `scheduled_at`.

### Best Practices

* Use **high-resolution** images or video for best display.
* Keep the **title and text concise** to encourage clicks.
* Ensure the **URL** is valid and leads to valuable content.
* Organize Pins into relevant **Boards** for better discoverability.
* Add **alt text** for accessibility and SEO benefits.

### Related Topics

* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)


# Google Business Profiles: Updates, Photos, Events & Offers

Share updates, photos, events, and special offers on your Google Business Profile via the Publer API. Each post type has its own fields—use the right payload to drive engagement and conversions.

### Request Examples

#### 1. Update Post

General news or announcement with an image and a CTA button.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "google": {
            "type": "photo",
            "text": "Our new feature is live!\npubler.com",
            "title": "LEARN_MORE",
            "media": [
              {
                "id": "68133d70f09cb4aa6377d2dc",
                "path": "https://cdn.publer.com/uploads/photos/68133d70f09cb4aa6377d2dc.png",
                "thumbnail": "https://cdn.publer.com/uploads/photos/thumb_68133d70f09cb4aa6377d2dc.png",
                "type": "photo"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "GOOGLE_ACCOUNT_ID",
            "scheduled_at": "2025-05-24T08:46:00-04:00"
          }
        ]
      }
    ]
  }
}
```

#### 2. Photo Post

Standalone photo update (no special details).

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "google": {
            "type": "photo",
            "details": { "type": "photo" },
            "text": "Our office view today!",
            "title": "PROFILE",
            "media": [
              {
                "id": "68133d70f09cb4aa6377d2dc",
                "path": "https://cdn.publer.com/uploads/photos/68133d70f09cb4aa6377d2dc.png",
                "thumbnail": "https://cdn.publer.com/uploads/photos/thumb_68133d70f09cb4aa6377d2dc.png",
                "type": "photo"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "GOOGLE_ACCOUNT_ID",
            "scheduled_at": "2025-05-24T08:50:00-04:00"
          }
        ]
      }
    ]
  }
}
```

#### 3. Event Post

Promote an upcoming event with start/end times and an optional link.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "google": {
            "type": "photo",
            "details": {
              "type": "event",
              "title": "Summer Workshop",
              "start": "2025-06-07T12:50:00Z",
              "end":   "2025-08-03T12:50:00Z"
            },
            "text": "Join our Summer Workshop series!",
            "title": "LEARN_MORE",
            "url": "https://publer.com/events",
            "media": [
              {
                "id": "68133d70f09cb4aa6377d2dc",
                "path": "https://cdn.publer.com/uploads/photos/68133d70f09cb4aa6377d2dc.png",
                "thumbnail": "https://cdn.publer.com/uploads/photos/thumb_68133d70f09cb4aa6377d2dc.png",
                "type": "photo"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "GOOGLE_ACCOUNT_ID",
            "scheduled_at": "2025-06-07T08:50:00-04:00"
          }
        ]
      }
    ]
  }
}
```

#### 4. Offer Post

Advertise discounts or promotions with coupon codes and terms.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "google": {
            "type": "photo",
            "details": {
              "type": "offer",
              "title": "Spring Sale",
              "start":   "2025-05-28T12:50:00Z",
              "end":     "2025-10-02T12:50:00Z",
              "coupon":  "30%OFF",
              "terms":   "https://publer.com/terms"
            },
            "text": "Enjoy 30% off sitewide!",
            "url": "https://publer.com/sale",
            "media": [
              {
                "id": "68133d70f09cb4aa6377d2dc",
                "path": "https://cdn.publer.com/uploads/photos/68133d70f09cb4aa6377d2dc.png",
                "thumbnail": "https://cdn.publer.com/uploads/photos/thumb_68133d70f09cb4aa6377d2dc.png",
                "type": "photo"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "GOOGLE_ACCOUNT_ID",
            "scheduled_at": "2025-06-14T08:50:00-04:00"
          }
        ]
      }
    ]
  }
}
```

### Parameters

<table><thead><tr><th width="290.9962158203125">Field</th><th width="75.085693359375">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.google.type</code></td><td>string</td><td><code>"photo"</code></td></tr><tr><td><code>networks.google.text</code></td><td>string</td><td>Main caption or description.</td></tr><tr><td><code>networks.google.title</code></td><td>string</td><td>CTA button label (<code>LEARN_MORE</code>, <code>PROFILE</code>, etc.).</td></tr><tr><td><code>networks.google.url</code></td><td>string</td><td>External URL (for events/offers).</td></tr><tr><td><code>networks.google.media[]</code></td><td>array</td><td>Array of 1 media object with keys: <code>id</code>, <code>path</code>, <code>thumbnail</code>, and <code>type: "photo"</code>.</td></tr><tr><td><code>networks.google.details.type</code></td><td>string</td><td>One of: <code>"photo"</code>, <code>"event"</code>, <code>"offer"</code>.</td></tr><tr><td><code>networks.google.details.title</code></td><td>string</td><td>Event or offer title (required for <code>event</code>/<code>offer</code>).</td></tr><tr><td><code>networks.google.details.start</code></td><td>string</td><td>ISO 8601 start date/time (for events/offers).</td></tr><tr><td><code>networks.google.details.end</code></td><td>string</td><td>ISO 8601 end date/time (for events/offers).</td></tr><tr><td><code>networks.google.details.coupon</code></td><td>string</td><td>Coupon code (offers only).</td></tr><tr><td><code>networks.google.details.terms</code></td><td>string</td><td>URL to terms &#x26; conditions (offers only).</td></tr><tr><td><code>accounts[].id</code></td><td>string</td><td>Google Business Profile account ID.</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit for immediate publish).</td></tr></tbody></table>

### Supported Features & Limits

<table><thead><tr><th width="222.05462646484375">Feature</th><th>Details</th></tr></thead><tbody><tr><td>Post Types</td><td>Updates, Photos, Events, Offers</td></tr><tr><td>Max Photo Size</td><td>5 MB</td></tr><tr><td>Min Photo Resolution</td><td>250 × 250 pixels</td></tr><tr><td>Call-to-Action Buttons</td><td>Supported (<code>LEARN_MORE</code>, <code>PROFILE</code>, etc.)</td></tr><tr><td>Events</td><td>Requires <code>start</code> and <code>end</code> fields</td></tr><tr><td>Offers</td><td>Supports <code>coupon</code> and <code>terms</code></td></tr><tr><td>Video Support</td><td>Not supported</td></tr></tbody></table>

### Workflow

1. **Select Profile**\
   Choose the Google Business Profile in `accounts[].id`.
2. **Choose Post Type**
   * **Update**: general news with image & CTA.
   * **Photo**: standalone image.
   * **Event**: include `details.type = "event"`, dates, and optional link.
   * **Offer**: include `details.type = "offer"`, dates, coupon, and terms URL.
3. **Add Media**\
   Upload or reference one photo via the [Media Upload API](https://publer.com/docs/posting/create-posts/media-handling).
4. **Compose & Schedule**\
   Build your JSON, set `state` and `scheduled_at`, then POST to `/posts/schedule`.

### Best Practices

* Use **high-resolution** images (≥250×250 pixels).
* Craft **clear CTAs** to direct user action.
* Include **complete offer details** (coupon & terms).
* Set **accurate event dates** for reliable reminders.

### Related Topics

* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)


# Reels, Shorts & Stories

Short-form, immersive content formats for deep engagement. Use Publer’s API to schedule or publish Reels (Instagram & Facebook), Shorts (YouTube), and Stories (Instagram & Facebook) with a single JSON payload.

### Supported Formats & Specs

<table><thead><tr><th width="79.0054931640625">Format</th><th width="108.24725341796875">Platform</th><th width="132.90667724609375">Max Duration</th><th width="109.989501953125">Aspect Ratio</th><th width="83.7396240234375">Max Size</th><th>Notes</th></tr></thead><tbody><tr><td>Reels</td><td>Instagram, Facebook</td><td>3–90 seconds</td><td>9:16</td><td>1 GB</td><td>Optional audio rename, feed toggle</td></tr><tr><td>Shorts</td><td>YouTube</td><td>≤ 60 seconds</td><td>9:16</td><td>2 GB</td><td><code>privacy</code>: <code>public</code>/<code>private</code>/<code>unlisted</code></td></tr><tr><td>Stories</td><td>Instagram, Facebook</td><td>≤ 15 seconds</td><td>9:16</td><td>1 GB</td><td>Photo or video, link stickers on IG</td></tr></tbody></table>

### Request Structure

Send to the scheduling endpoint or use `/posts/schedule/publish` for immediate posting:

#### 1. Instagram/Facebook Reel

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "instagram": {
          "type": "video",
          "text": "Our summer Reel!",
          "media": [{
            "id": "67c9630bedeb539dd87dd23c",
            "path": "https://cdn.publer.com/videos/67c9630b.mp4",
            "type": "video",
            "thumbnails": [
                  {
                    "id": "67da852b075cdb33821384ba",
                    "small": "https://.../thumb_67da852b075cdb33821384ba.jpg",
                    "real":  "https://.../67da852b075cdb33821384ba.jpg"
                  },
                  ......
                  {
                    "id": "67da852c075cdb33821384bb",
                    "small": "https://.../thumb_67da852c075cdb33821384bb.jpg",
                    "real":  "https://.../67da852c075cdb33821384bb.jpg"
                  },
            "default_thumbnail": 1
          }],
          "details": {
            "type": "reel",
            "audio": "Custom audio name",
            "feed": false
          }
        }
      },
      "accounts": [{
        "id": "67d1f5f13d9895bab04393ec",
        "scheduled_at": "2025-07-27T14:16:00+02:00"
      }]
    }]
  }
}
```

#### Instagram Trial Reels (optional)

Trial Reels let you publish a Reel as a trial before it’s shown to your followers.

Set `networks.instagram.details.trial_reel` when creating an Instagram Reel:

* `MANUAL`The Reel remains in trial until you approve sharing it with your followers.
* `SS_PERFORMANCE`: Instagram may automatically share the Reel to your followers if it performs well.

**Notes**

* `trial_reel` is only supported for Instagram Reels (`details.type = "reel"`).
* `trial_reel` is optional. If omitted, the Reel is created normally.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "instagram": {
          "type": "video",
          "text": "Trial Reel",
          "media": [{
            "id": "67c9630bedeb539dd87dd23c",
            "path": "https://cdn.publer.com/videos/67c9630b.mp4",
            "type": "video",
            "thumbnails": [
                  {
                    "id": "67da852b075cdb33821384ba",
                    "small": "https://.../thumb_67da852b075cdb33821384ba.jpg",
                    "real":  "https://.../67da852b075cdb33821384ba.jpg"
                  },
                  ......
                  {
                    "id": "67da852c075cdb33821384bb",
                    "small": "https://.../thumb_67da852c075cdb33821384bb.jpg",
                    "real":  "https://.../67da852c075cdb33821384bb.jpg"
                  },
            "default_thumbnail": 1
          }],
          "details": {
            "type": "reel",
            "trial_reel": "SS_PERFORMANCE"
          }
        }
      },
      "accounts": [{
        "id": "67b5f97c2540fe322d786026",
        "scheduled_at": "2026-02-21T10:02+01:00"
      }]
    }]
  }
}
```

{% hint style="info" %}
`trial_reel` is only supported for Instagram Reels (`details.type: "reel"`).
{% endhint %}

#### 2. YouTube Short

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "youtube": {
          "type": "video",
          "title": "Our Latest Short",
          "text": "Quick highlights!",
          "media": [{
            "id": "67c9630bedeb539dd87dd23c",
            "path": "https://cdn.publer.com/videos/67c9630b.mp4",
            "type": "video",
            "thumbnails": [
                  {
                    "id": "67da852b075cdb33821384ba",
                    "small": "https://.../thumb_67da852b075cdb33821384ba.jpg",
                    "real":  "https://.../67da852b075cdb33821384ba.jpg"
                  },
                  .....
                  {
                    "id": "67da852c075cdb33821384bb",
                    "small": "https://.../thumb_67da852c075cdb33821384bb.jpg",
                    "real":  "https://.../67da852c075cdb33821384bb.jpg"
                  }
          }],
          "details": {
            "type": "short",
            "privacy": "public"
          }
        }
      },
      "accounts": [{
        "id": "64abc34d4e299e662bfd6389",
        "scheduled_at": "2025-08-01T14:16:00+02:00"
      }]
    }]
  }
}
```

#### 3. Instagram/Facebook Story

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "networks": {
        "instagram": {
          "type": "photo",
          "text": "Behind the scenes!",
          "media": [{
            "id": "680fa5cc48487c4ccbf8c146",
            "path": "https://cdn.publer.com/photos/680fa5cc.jpg",
            "type": "photo"
          }],
          "details": {
            "type": "story"
          }
        }
      },
      "accounts": [{
        "id": "67d1f5f13d9895bab04393ec",
        "scheduled_at": "2025-08-24T14:16:00+02:00"
      }]
    }]
  }
}
```

### Common Parameters

<table><thead><tr><th width="267.07183837890625">Field</th><th width="83.39630126953125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.{provider}.type</code></td><td>string</td><td><code>"video"</code> for Reels/Shorts/Stories, <code>"photo"</code> for Stories</td></tr><tr><td><code>networks.{provider}.text</code></td><td>string</td><td>Caption or overlay text</td></tr><tr><td><code>networks.youtube.title</code></td><td>string</td><td>Title for YouTube Shorts</td></tr><tr><td><code>networks.{provider}.media[]</code></td><td>array</td><td>Media array (from Media API)</td></tr><tr><td><code>media[].id</code></td><td>string</td><td>Publer media identifier</td></tr><tr><td><code>media[].path</code></td><td>string</td><td>URL to the video or image</td></tr><tr><td><code>media[].type</code></td><td>string</td><td><code>"video"</code> or <code>"photo"</code></td></tr><tr><td><code>media[].thumbnails</code></td><td>array</td><td>An array of thumbnail objects with <code>id</code>, <code>small</code>, and <code>real</code> URLs (Video only)</td></tr><tr><td><code>media[].default_thumbnail</code></td><td>integer</td><td>Index of the thumbnail image (Video only)</td></tr><tr><td><code>networks.{provider}.details</code></td><td>object</td><td>Format-specific settings</td></tr><tr><td><code>details.type</code></td><td>string</td><td><code>"reel"</code>, <code>"short"</code>, or <code>"story"</code></td></tr><tr><td><code>details.audio</code></td><td>string</td><td>Custom audio name for Reels (optional)</td></tr><tr><td><code>details.feed</code></td><td>boolean</td><td><code>true</code> to also post Reel in Feed tab (Instagram only)</td></tr><tr><td><code>details.trial_reel</code></td><td>string</td><td>Instagram only. Trial Reel mode: <code>"MANUAL"</code> or <code>"SS_PERFORMANCE"</code>.</td></tr><tr><td><code>details.privacy</code></td><td>string</td><td><code>"public"</code>, <code>"private"</code>, or <code>"unlisted"</code> (Shorts only)</td></tr><tr><td><code>accounts[].id</code></td><td>string</td><td>Target account identifier</td></tr><tr><td><code>accounts[].scheduled_at</code></td><td>string</td><td>ISO 8601 timestamp for scheduling (omit for immediate publishing)</td></tr></tbody></table>

### Workflow

#### Reels

1. **Upload**: Use [Media API](https://publer.com/docs/posting/create-posts/media-handling) to upload vertical video (9:16).
2. **Compose**: Set `"details.type": "reel"`, optional `audio` and `feed` flags.
3. **(Optional) Trial Reel**: Set `details.trial_reel` to `MANUAL` or `SS_PERFORMANCE`.
4. **Schedule**: Provide `scheduled_at` or publish immediately.
5. **Verify**: Monitor job status and preview in dashboard.

#### Shorts

1. **Upload**: Upload video ≤ 60 sec, 9:16 ratio.
2. **Configure**: Set `"details.type": "short"` and `privacy`.
3. **Add Title/Text**: Populate `title` and `text`.
4. **Publish**: Schedule or publish immediately.

#### Stories

1. **Upload**: Add photo or video ≤ 15 sec.
2. **Tag as Story**: Use `"details.type": "story"`.
3. **Caption**: Add `text` overlay.
4. **Schedule**: Set `scheduled_at` or publish now.

### Best Practices

* Use high-quality, platform-compliant media (9:16 ratio).
* Rename Reel audio to match branding.
* Schedule according to audience peak times.

### Related Topics

* [Platform-Specific Formats](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)


# Tagging People & Collaborators

Attach accounts and co-authors to your media. Use Publer's API to tag people and invite collaborators within the same JSON payload used to create the **Instagram** post.

#### Supported Tags & Specs

<table><thead><tr><th width="150">Tag</th><th width="180">Platform</th><th width="110">Per post</th><th width="208.203125">Coordinates</th></tr></thead><tbody><tr><td>People</td><td>Instagram</td><td>20</td><td>Required on IG photos</td></tr><tr><td>Collaborators</td><td>Instagram</td><td>3</td><td>Not used</td></tr></tbody></table>

#### Request Structure

Both are arrays on an entry in `media[]`, never on the post itself. In a multi-image post, every entry carries its own tags.

**1. People Tags**

Positioned tags on a photo — the dots a viewer taps to reveal an account.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [{
      "accounts": [{ "id": "ACCOUNT_ID" }],
      "networks": {
        "instagram": {
          "type": "photo",
          "text": "New drop",
          "media": [{
            "path": "https://cdn.example.com/shot.jpg",
            "user_tags": [
              { "username": "publer", "x": 0.5, "y": 0.5 },
              { "username": "partnerbrand", "x": 0.2, "y": 0.8 }
            ]
          }]
        }
      }
    }]
  }
}
```

On **Instagram photos,** both `x` and `y` are required. On **Instagram Reels,** they are ignored.

{% hint style="warning" %}
On Instagram photos, a people tag missing `x` or `y` is **discarded silently** — the post publishes without it, and no error is returned. Always send both.
{% endhint %}

Up to **20** people tags per post. Duplicates are removed automatically.

**2. Collaborator Tags**

Invites another account to co-author the post, so it appears on both profiles once accepted.

```json
"media": [{
  "path": "https://cdn.example.com/reel.mp4",
  "collaborator_tags": [{ "username": "partnerbrand" }]
}]
```

Up to **3** collaborators per post.

{% hint style="warning" %}
**Collaborator tags require an Instagram account connected through Facebook.** Accounts connected via the direct Instagram API skip them without error. People tags work on either connection type.
{% endhint %}

#### Common Parameters

<table><thead><tr><th width="202.578125">Field</th><th width="100">Type</th><th width="110">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>user_tags[].username</code></td><td>string</td><td>Yes</td><td>Account username, without the <code>@</code></td></tr><tr><td><code>user_tags[].x</code></td><td>number</td><td>IG photos</td><td>Horizontal position, <code>0.0</code>–<code>1.0</code> from the left edge</td></tr><tr><td><code>user_tags[].y</code></td><td>number</td><td>IG photos</td><td>Vertical position, <code>0.0</code>–<code>1.0</code> from the top edge</td></tr><tr><td><code>collaborator_tags[].username</code></td><td>string</td><td>Yes</td><td>Username of the account to invite</td></tr></tbody></table>

Extra fields are accepted but dropped before publishing: people tags send only `username`, `x` and `y`; collaborator tags send only `username`.

#### Workflow

**People Tags**

1. Build your `media[]` entry as normal.
2. Add `user_tags` with a `username` per account, plus `x`/`y` for Instagram photos.
3. Schedule with `POST /api/v1/posts/schedule` and poll the returned `job_id`.

**Collaborator Tags**

1. Add `collaborator_tags` with the co-author's `username`.
2. Publish. The invitation is sent automatically.
3. The post appears on the collaborator's profile only once they accept.

#### Best Practices

* Keep coordinates inside `0.05`–`0.95` so tag bubbles are not clipped at the edges of the image.
* Tag the subject, not the corner — Instagram positions the label from the point you give.
* Send collaborator invitations only to accounts expecting them; an unaccepted invitation leaves the post on your profile alone.
* There is no API to look up usernames. Supply values you already hold.

#### Related Topics

* [Reels, Shorts & Stories](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/reels-shorts-and-stories) — Short-form formats
* [Post with Location](https://publer.com/docs/posting/create-posts/content-types/post-with-location) — Attaching a place to a post


# Twitter/X Long-Form Posts

Unlock the ability to schedule and publish long-form posts (up to 25,000 characters) to Twitter/X using the Publer API—exclusively for accounts with an X Premium subscription.

### Overview

Twitter/X supports long-form posts (sometimes called "long posts" or "extended tweets") for users with an X Premium (formerly Twitter Blue) subscription, even at the Basic tier. These posts can contain up to **25,000 characters**, far exceeding the standard 280-character limit.

With Publer, you can programmatically schedule and publish long-form posts via the API. Publer automatically detects your account’s eligibility and switches to the appropriate post type.

### How It Works

* **Accounts with X Premium:**\
  You can create and schedule long-form posts up to 25,000 characters.
* **Accounts without X Premium:**\
  Your post text will be truncated to the standard 280-character limit, and the long-form post type will be disabled.

> **Tip:** Validate the post length in your integration to avoid surprises when publishing.

### Key Differences

* **Long-form posts** are not the same as Twitter threads. Threads are multiple connected posts; long-form posts are a single post with expanded character count.
* Scheduling long-form posts is not possible directly on X/Twitter—use Publer’s API or platform to achieve this functionality.

### Request Example

To schedule a Twitter/X long-form post, set the network type to `"long_post"` inside the `details` object for the `"twitter"` network:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "twitter": {
            "type": "status",
            "details": {
              "type": "long_post"
            },
            "text": "This is a twitter long post"
          }
        },
        "accounts": [
          {
            "id": "66e011b94e299eb49376c715",
            "scheduled_at": "2025-09-24T14:16+02:00"
          }
        ]
      }
    ]
  }
}
```

<table><thead><tr><th width="285.07891845703125">Field</th><th width="71.5963134765625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.twitter.details.type</code></td><td>string</td><td>Must be <code>"long_post"</code> for long-form posts</td></tr><tr><td><code>networks.twitter.text</code></td><td>string</td><td>Content of your long-form post (max 25,000 characters with X Premium)</td></tr></tbody></table>

### Important Notes

* **X Premium Required:** Only X Premium accounts can publish long-form posts. For other accounts, posts will be truncated to 280 characters.
* **Not for Threads:** Use this format for single extended posts, not for multi-part threads.
* **API Detection:** Publer automatically detects account eligibility for long-form posting.
* **Scheduling Limitation:** Twitter/X doesn’t natively support scheduling long-form posts; this is enabled via Publer’s platform and API.

### Best Practices

* Check your account’s X Premium status before relying on long-form functionality.
* Always validate post length to ensure your content is not unintentionally truncated.
* Use long-form posts for in-depth announcements, articles, or detailed updates—threads remain better for sequential storytelling.

### Related Topics

* [Content Types Overview](https://publer.com/docs/posting/create-posts/content-types)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)


# Twitter/X Community Posts

Publish posts directly to Twitter/X Communities using the Publer API. This feature enables you to reach targeted audiences and participate in focused discussions within X Communities—right from your own app or workflow.

### Overview

**Twitter/X Communities** are spaces for people to connect, share, and discuss specific topics. Posts made in a Community are visible to anyone on X, but only Community members can engage (like, reply, etc.) with them.

* **You can only post to Communities you have joined.**
* Community posts help foster deeper engagement on niche topics or interests.

### How It Works

To publish a post inside a Twitter/X Community via the API, you need:

* The **Community ID** (found in the X Community URL: `https://x.com/i/communities/{COMMUNITY_ID}`)
* The **Community Name** (for reference and clarity)
* Whether to share the post with followers or not

### Example Request

Set the `community` object inside the `details` for the `twitter` network configuration:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "twitter": {
            "type": "status",
            "details": {
              "community": {
                "id": "1508851391443484686",
                "share_with_followers": true,
                "name": "ALBANIANS"
              }
            },
            "text": "Post to X communities"
          }
        },
        "accounts": [
          {
            "id": "66e011b94e299eb49376c715",
            "scheduled_at": "2025-07-03T10:28+02:00"
          }
        ]
      }
    ]
  }
}
```

<table><thead><tr><th width="366.97900390625">Field</th><th width="91.4798583984375">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.twitter.details.community.id</code></td><td>string</td><td>Community ID (from the Community URL)</td></tr><tr><td><code>networks.twitter.details.community.name</code></td><td>string</td><td>Name of the Community (optional, for clarity in requests/logs)</td></tr><tr><td><code>networks.twitter.details.community.share_with_followers</code></td><td>boolean</td><td>Whether to share the post with followers or not (defaulted to true)</td></tr></tbody></table>

### How to Find the Community ID

1. Go to the Community on X.
2. Look at the URL:\
   `https://x.com/i/communities/1492410432069451776`
3. The number at the end is your `COMMUNITY_ID`.

### Important Notes

* **Membership Required:** You must be a member of the Community to post.
* **Engagement:** Only members can engage with Community posts, but all users can view them.
* **Visibility:** Community posts are public, but participation is limited to members.
* **Scheduling:** You can schedule Community posts just like any other X post using Publer.

### Best Practices

* **Join Relevant Communities:** Ensure your X account has joined the Communities you wish to post in.
* **Use for Focused Engagement:** Target posts to specific Communities for more relevant discussions.
* **Check Community Guidelines:** Each Community may have its own moderation and content rules.

### Related Topics

* [Twitter/X Long-Form Posts](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/twitter-x-long-form-posts)
* [Content Types Overview](https://publer.com/docs/posting/create-posts/content-types)


# TikTok Video & Multi-Photo Posts

Publish or schedule TikTok videos and multi-photo (carousel) posts using the Publer API. This feature supports all TikTok-specific options, including privacy, comments, branded content, and more.

### Overview

Publer enables you to directly post or schedule TikTok videos and multi-photo posts (carousels) from your app or workflow.

{% hint style="info" %}
**You can only post to one TikTok account at a time—TikTok does not allow duplicate content or posting to multiple accounts simultaneously.**
{% endhint %}

* **Video posts:** Upload and schedule single video posts. Supports cover selection, privacy, comment/duet/stitch toggles, and branded content disclosures.
* **Multi-photo posts (carousels):** Upload and schedule up to 35 photos, each with an optional caption, as a single post. Supports music auto-add, privacy, and engagement options.

### Notice: TikTok Video Publishing & Link Availability

When posting a **video** to TikTok, the API does **not** immediately return a URL to the published post.\
TikTok first processes the video after upload and only makes the public link available once processing is complete.

* **After posting a video:**\
  The returned response will not contain the TikTok post URL.
* **To obtain the published TikTok video link:**\
  Retrieve your post later via the [Posts](https://publer.com/docs/api-reference/posts).\
  Once TikTok finishes processing, the link will be included in the post data.

### How It Works

To schedule or publish a TikTok post, use the [Immediate Publishing](https://publer.com/docs/posting/create-posts/publishing-methods/immediate-publishing) or [Manual Scheduling](https://publer.com/docs/posting/create-posts/publishing-methods/manual-scheduling) API endpoint with a `networks.tiktok` object describing your post.

#### Key Rules

* **No recurring or recycled videos:** TikTok does not allow duplicate content.
* **Watermarks:** Not supported due to TikTok API limits.
* **Privacy and engagement:** Options are synced from TikTok and may vary by account type, check your account details from [Accounts](https://publer.com/docs/api-reference/accounts).
* **Thumbnails (Videos):** You can select a cover frame when posting automatically.

### Video Post Example

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "accounts": [
          {
            "id": "tiktok_account_123",
            "scheduled_at": "2025-08-26T12:00:00Z"
          }
        ],
        "networks": {
          "tiktok": {
            "type": "video",
            "text": "Check out our new product launch! #launch #tiktok",
            "media": [
              {
                "id": "media_video_001",
                "path": "https://storage.com/launch-video.mp4",
                "default_thumbnail": 2,
                "thumbnails": [
                  {
                    "real": "https://storage.com/thumb1.jpg",
                    "small": "https://storage.com/thumb1_small.jpg"
                  },
                  {
                    "real": "https://storage.com/thumb2.jpg",
                    "small": "https://storage.com/thumb2_small.jpg"
                  },
                  {
                    "real": "https://storage.com/thumb3.jpg",
                    "small": "https://storage.com/thumb3_small.jpg"
                  }
                ]
              }
            ],
            "details": {
              "privacy": "PUBLIC_TO_EVERYONE",
              "comment": true,
              "duet": true,
              "stitch": true,
              "promotional": false,
              "paid": false,
              "reminder": false
            }
          }
        }
      }
    ]
  }
}
```

### Multi-Photo Post (Carousel) Example

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "accounts": [
          {
            "id": "tiktok_account_123",
            "scheduled_at": "2025-08-26T14:00:00Z"
          }
        ],
        "networks": {
          "tiktok": {
            "type": "photo",
            "title": "Summer Vibes ☀️",
            "text": "Nothing beats a perfect summer day! What's your favorite summer activity? 🏖️ #summer #lifestyle #photography",
            "media": [
              { "id": "img1", "path": "https://storage.com/summer1.jpg", "caption": "Beach day" },
              { "id": "img2", "path": "https://storage.com/summer2.jpg", "caption": "Sunset views" },
              { "id": "img3", "path": "https://storage.com/summer3.jpg", "caption": "Ice cream time" }
            ],
            "details": {
              "privacy": "PUBLIC_TO_EVERYONE",
              "auto_add_music": true,
              "comment": true,
              "promotional": false,
              "paid": false,
              "reminder": false
            }
          }
        }
      }
    ]
  }
}
```

### TikTok-Specific Parameters

#### Video Post Parameters

<table><thead><tr><th width="241.89862060546875">Field</th><th width="84.29022216796875">Type</th><th width="106.814208984375">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td>string</td><td>Yes</td><td>Must be <code>"video"</code>.</td></tr><tr><td><code>text</code></td><td>string</td><td>Yes</td><td>Video description text (max 2,200 chars).</td></tr><tr><td><code>media[]</code></td><td>array</td><td>Yes</td><td><strong>Single</strong> video object (see below).</td></tr><tr><td><code>media[].id</code></td><td>string</td><td>Yes</td><td>Media ID if using stored media.</td></tr><tr><td><code>media[].path</code></td><td>string</td><td>No</td><td>URL to the video file.</td></tr><tr><td><code>media[].default_thumbnail</code></td><td>integer</td><td>No</td><td>(Optional) Index of the selected thumbnail (0-based).</td></tr><tr><td><code>media[].thumbnails[]</code></td><td>array</td><td>Yes</td><td>Array of thumbnails with <code>real</code> and <code>small</code> URLs.</td></tr><tr><td><code>media[].thumbnails[].real</code></td><td>string</td><td>No</td><td>Full-size thumbnail image URL.</td></tr><tr><td><code>media[].thumbnails[].small</code></td><td>string</td><td>No</td><td>Small-size thumbnail image URL.</td></tr><tr><td><code>details</code></td><td>object</td><td>Yes</td><td>TikTok-specific options (see below).</td></tr><tr><td><code>details.privacy</code></td><td>string</td><td>No</td><td>Who can view: <code>"PUBLIC_TO_EVERYONE"</code>, <code>"MUTUAL_FOLLOW_FRIENDS"</code>,<br><code>"FOLLOWER_OF_CREATOR"</code>, <code>"SELF_ONLY"</code></td></tr><tr><td><code>details.comment</code></td><td>boolean</td><td>No</td><td>Allow comments (default: false).</td></tr><tr><td><code>details.duet</code></td><td>boolean</td><td>No</td><td>Allow duets (default: true).</td></tr><tr><td><code>details.stitch</code></td><td>boolean</td><td>No</td><td>Allow stitching (default: true).</td></tr><tr><td><code>details.promotional</code></td><td>boolean</td><td>No</td><td>Mark as promotional/brand organic content (cannot be private, default: false).</td></tr><tr><td><code>details.paid</code></td><td>boolean</td><td>No</td><td>Mark as paid partnership (cannot be private, default: false).</td></tr></tbody></table>

#### Carousel (Multi-Photo) Post Parameters

<table><thead><tr><th width="214.22021484375">Field</th><th width="114.392333984375">Type</th><th width="107.015869140625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td>string</td><td>Yes</td><td>Must be <code>"photo"</code>.</td></tr><tr><td><code>title</code></td><td>string</td><td>Yes</td><td>Carousel post title (max 90 chars).</td></tr><tr><td><code>text</code></td><td>string</td><td>Yes</td><td>Description text (max 4,000 chars).</td></tr><tr><td><code>media[]</code></td><td>array</td><td>Yes</td><td>Up to <strong>35</strong> photo objects (see below).</td></tr><tr><td><code>media[].id</code></td><td>string</td><td>Yes</td><td>Media ID if using stored media.</td></tr><tr><td><code>media[].path</code></td><td>string</td><td>No</td><td>(Optional) URL to the photo file.</td></tr><tr><td><code>media[].caption</code></td><td>string</td><td>No</td><td>(Optional) Caption for each photo.</td></tr><tr><td><code>details</code></td><td>object</td><td>Yes</td><td>TikTok-specific options (see below).</td></tr><tr><td><code>details.privacy</code></td><td>string</td><td>No</td><td>Who can view: <code>"PUBLIC_TO_EVERYONE"</code>, <code>"MUTUAL_FOLLOW_FRIENDS"</code>,<br><code>"FOLLOWER_OF_CREATOR"</code>, <code>"SELF_ONLY"</code></td></tr><tr><td><code>details.comment</code></td><td>boolean</td><td>No</td><td>Allow comments (default: false).</td></tr><tr><td><code>details.auto_add_music</code></td><td>boolean</td><td>No</td><td>Auto-add music to slideshow (default: false).</td></tr><tr><td><code>details.promotional</code></td><td>boolean</td><td>No</td><td>Mark as promotional/brand organic content (cannot be private, default: false).</td></tr><tr><td><code>details.paid</code></td><td>boolean</td><td>No</td><td>Mark as paid partnership (cannot be private, default: false).</td></tr><tr><td><code>details.reminder</code></td><td>boolean</td><td>No</td><td>Upload-only mode (user must publish manually, default: false).</td></tr></tbody></table>

### Tips & Limitations

* **No GIF/video mixing:** Carousel posts cannot mix photos, GIFs, or videos.
* **Privacy:** "Everyone" is only available if the TikTok account is public.
* **Branded content:** Cannot be private. Once posted, branded content is permanently labeled.
* **No recurring or recycled posts:** TikTok blocks duplicate content.
* **Watermarks:** Not supported.
* **Links:** Not supported in TikTok posts.

### Related Topics

* [Twitter/X Long-Form Posts](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/twitter-x-long-form-posts)
* [Content Types Overview](https://publer.com/docs/posting/create-posts/content-types)

<br>


# Threads Cross-Share to Instagram Stories

Share Threads posts to the linked Instagram account's Story.

Share a Threads post to the Story of its linked Instagram account. Publer sends the cross-share request with the Threads post.

Cross-share is set per Threads account in that account's `share` object. It needs no Instagram account entry or separate endpoint.

### Overview

{% hint style="info" %}
A cross-share failure never blocks the Threads post. Publer reports the failure in `share.crossshare`.
{% endhint %}

### How it works

1. Add `share.crossshare` to a Threads entry in `accounts`.
2. Publish or schedule the Threads post.
3. Read the result from `share.crossshare.status` on the returned post.

Set cross-share while creating the post. `PUT /api/v1/posts/{id}` does not change it.

### Cross-share parameters

Add cross-share at `bulk.posts[].accounts[].share.crossshare`. Do not add it under `networks`.

<table><thead><tr><th width="247.921875">Parameter</th><th width="118.94140625">Type</th><th width="96.19140625">Required</th><th width="97.41015625">Default</th><th>Description</th></tr></thead><tbody><tr><td><code>share</code></td><td>object</td><td>Yes</td><td>—</td><td>The account auto-share object.</td></tr><tr><td><code>share.crossshare</code></td><td>object</td><td>Yes</td><td>—</td><td>Cross-share settings. Only <code>enabled</code> and <code>dark_mode</code> are read.</td></tr><tr><td><code>share.crossshare.enabled</code></td><td>boolean</td><td>Yes</td><td><code>false</code></td><td><code>true</code> shares the Threads post to the linked Instagram Story.</td></tr><tr><td><code>share.crossshare.dark_mode</code></td><td>boolean</td><td>No</td><td><code>false</code></td><td>Displays the Story card in dark mode. Requires <code>enabled: true</code>.</td></tr><tr><td><code>share.account_ids</code></td><td>array</td><td>No</td><td><code>[]</code></td><td>Accounts to auto-share to. Omit or leave empty for cross-share only.</td></tr><tr><td><code>share.text</code>, <code>share.delay</code></td><td>—</td><td>No</td><td>—</td><td>Auto-share settings. They do not affect the Instagram Story.</td></tr></tbody></table>

Send booleans as `true` or `false`. The strings `"true"` and `"false"` also work.

`status` and `error` are read-only. Publer ignores those fields in create requests.

| `enabled`          | `dark_mode`        | Result                                  |
| ------------------ | ------------------ | --------------------------------------- |
| `true`             | Omitted or `false` | Story is shared in light mode.          |
| `true`             | `true`             | Story is shared in dark mode.           |
| Omitted or `false` | `true`             | No cross-share. `dark_mode` is ignored. |
| Omitted or `false` | Omitted or `false` | No cross-share.                         |

### Supported Threads post types

Set the type with `networks.threads.type`.

| Type                                                  | Cross-share | Notes                                                                   |
| ----------------------------------------------------- | ----------- | ----------------------------------------------------------------------- |
| `status`                                              | Yes         | Text-only post.                                                         |
| `photo` with 1 image                                  | Yes         |                                                                         |
| `photo` with 2–20 images                              | Yes         | Published as a carousel. The complete carousel is cross-shared.         |
| `gif`                                                 | Yes         | Published as an image.                                                  |
| `video`                                               | Yes         |                                                                         |
| `link` with a website URL                             | Yes         | Published with a link attachment.                                       |
| `link` with a Threads URL, text, or follow-up comment | Yes         | Published as a quote post.                                              |
| `link` with a Threads URL only                        | No          | Published as a repost. Threads does not accept cross-share for reposts. |

### Examples

#### Schedule a text post

This post cross-shares only. It does not auto-share to another account.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "threads": {
            "type": "status",
            "text": "Big news dropping this Friday. Stay tuned!"
          }
        },
        "accounts": [
          {
            "id": "threads_account_123",
            "scheduled_at": "2026-10-02T14:00:00Z",
            "share": {
              "crossshare": {
                "enabled": true
              }
            }
          }
        ]
      }
    ]
  }
}
```

#### Publish a photo in dark mode

Send this payload to `POST /api/v1/posts/schedule/publish`.

```json
{
  "bulk": {
    "posts": [
      {
        "networks": {
          "threads": {
            "type": "photo",
            "text": "Our new office is finally ready.",
            "media": [
              {
                "id": "media_photo_001",
                "path": "https://storage.com/office.jpg"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "threads_account_123",
            "share": {
              "crossshare": {
                "enabled": true,
                "dark_mode": true
              }
            }
          }
        ]
      }
    ]
  }
}
```

#### Cross-share and auto-share

This post cross-shares immediately. It also auto-shares to Facebook after 10 minutes.

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "threads": {
            "type": "video",
            "text": "Behind the scenes of our latest shoot 🎬",
            "media": [
              {
                "id": "media_video_001",
                "path": "https://storage.com/bts.mp4"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "threads_account_123",
            "scheduled_at": "2026-10-02T16:00:00Z",
            "share": {
              "account_ids": ["facebook_page_456"],
              "text": "In case you missed it on Threads 👇",
              "delay": { "duration": 10, "unit": "Minute" },
              "crossshare": {
                "enabled": true,
                "dark_mode": false
              }
            }
          }
        ]
      }
    ]
  }
}
```

### Read the result

`GET /api/v1/posts/{id}` and `GET /api/v1/posts` return cross-share under `share.crossshare`.

<table><thead><tr><th width="166.28125">Field</th><th width="128.26953125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>enabled</code></td><td>boolean</td><td>The value sent in the request.</td></tr><tr><td><code>dark_mode</code></td><td>boolean</td><td>The value sent in the request.</td></tr><tr><td><code>status</code></td><td>string</td><td><code>published</code> or <code>failed</code>. It is absent until publication and in some outcomes.</td></tr><tr><td><code>error</code></td><td>string</td><td>Present only when <code>status</code> is <code>failed</code>. It is localized and ready to display.</td></tr></tbody></table>

<table data-header-hidden><thead><tr><th width="137.85546875"></th><th></th></tr></thead><tbody><tr><td><code>status</code></td><td>Meaning</td></tr><tr><td>Missing</td><td>The post has not published, Threads returned no result, or the post was a repost. Do not treat this as a failure.</td></tr><tr><td><code>published</code></td><td>Threads confirmed the Story was shared.</td></tr><tr><td><code>failed</code></td><td>The Story was not shared. The Threads post still published. Inspect <code>error</code>.</td></tr></tbody></table>

#### Response examples

**Shared successfully**

```json
"share": {
  "account_ids": [],
  "crossshare": {
    "enabled": true,
    "dark_mode": true,
    "status": "published"
  }
}
```

**Cross-share failed**

```json
"share": {
  "account_ids": [],
  "crossshare": {
    "enabled": true,
    "dark_mode": false,
    "status": "failed",
    "error": "Couldn't share this post to your Instagram Story. Make sure your Threads profile has a linked Instagram account."
  }
}
```

**Permission missing**

```json
"share": {
  "account_ids": [],
  "crossshare": {
    "enabled": true,
    "dark_mode": false,
    "status": "failed",
    "error": "Sharing to Instagram Stories requires additional permissions. Please reauthorize your Threads account to enable it."
  }
}
```

A pending post, a repost, or a post without a Threads result has no `status`.

### Tips & limitations

| Case                                               | Threads post                                       | Cross-share result                                     |
| -------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------ |
| Post has not published                             | Not published                                      | No `status`.                                           |
| Threads confirms the Story                         | Published                                          | `status: "published"`.                                 |
| Threads reports a Story failure                    | Published                                          | `status: "failed"` and an error.                       |
| Threads rejects cross-share                        | Published after Publer resends without cross-share | `status: "failed"` and an error.                       |
| Threads rejects cross-share for missing permission | Published after Publer resends without cross-share | `status: "failed"` and a reauthorization error.        |
| Threads returns no result                          | Published                                          | No `status`.                                           |
| Post is a repost                                   | Published                                          | No `status`.                                           |
| Threads post fails                                 | Failed with its usual error                        | No `status`.                                           |
| `crossshare` is set on a non-Threads account       | —                                                  | Removed without an error. Other `share` values remain. |

Cross-share requires the auto-share feature in your plan. Without it, the post is not created and returns: `Please upgrade your plan to continue scheduling follow-up comments, auto-shares, and autodeletes`.

* Cross-share works only for Threads accounts.
* The Threads profile needs a linked Instagram account. You cannot choose another Instagram account.
* Set `share.crossshare` on each eligible Threads account in a multi-account post.
* Removing `share` disables cross-share.
* An already-published post cannot be cross-shared.

### Related topics

* [Accounts](https://publer.com/docs/api-reference/accounts)
* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Creating Posts](https://publer.com/docs/posting/create-posts)


# Media Handling

Manage your media assets before attaching them to posts. Publer’s API supports direct uploads and URL imports, returning media IDs you can reference when creating or updating posts.

### Overview

Before including media in your social media posts, you must first upload those files to Publer's servers. The API provides two methods for uploading media:

1. Direct file upload
2. Upload from URL

Once uploaded, you'll receive a media ID that can be referenced in your post requests.

### Direct File Upload

Use this method when you have local media files that you want to upload directly.

#### Limitation

* Maximum file size for direct uploads: 200MB per file.
* Requests exceeding 200MB will be rejected (typically with HTTP 413 Payload Too Large). For larger files, use the [Upload from URL](#upload-from-url) method.

#### Request Format

This endpoint expects a `multipart/form-data` request with the file included in the `file` field.

## Upload a media file directly

> Upload a media file (image, video, or document) to be used in social media posts

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"MediaUploadResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the uploaded media"},"path":{"type":"string","description":"URL path to access the uploaded media"},"thumbnail":{"type":"string","description":"URL path to access a thumbnail version of the media"},"validity":{"type":"object","description":"Indicates which networks and post types support this media"},"width":{"type":"number","description":"Width of the media in pixels"},"height":{"type":"number","description":"Height of the media in pixels"},"source":{"type":"string","description":"Source attribution for the media"},"type":{"type":"string","description":"Media type (photo, video, document)"},"name":{"type":"string","description":"Original filename"},"caption":{"type":"string","description":"Caption for the media"}}},"ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"401ErrorResponse":{"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":{"/media":{"post":{"summary":"Upload a media file directly","description":"Upload a media file (image, video, or document) to be used in social media posts","tags":["Media"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to upload media","required":true}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream"},"direct_upload":{"type":"boolean","description":"Whether to upload directly to our S3 cloud (slower, but required if you need the final media URL)","default":false},"in_library":{"type":"boolean","description":"Whether to save to media library","default":false}}},"encoding":{"file":{"contentType":"application/octet-stream"}}}}},"responses":{"200":{"description":"Media file uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"413":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

**Key Response Fields**

| Field             | Description                                                          |
| ----------------- | -------------------------------------------------------------------- |
| `id`              | Unique identifier for the uploaded media (use this in post requests) |
| `path`            | URL path to access the uploaded media                                |
| `thumbnail`       | URL path to access a thumbnail version of the media                  |
| `validity`        | Indicates which networks and post types support this media           |
| `width`, `height` | Dimensions of the uploaded media in pixels                           |
| `type`            | Media type (photo, video, document)                                  |
| `name`            | Original filename                                                    |

### Upload from URL

Use this method when your media is already hosted elsewhere and you want to import it by URL.

## Upload media from URL

> Upload media files by providing URLs

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Media","description":"Endpoints for uploading and managing media files"}],"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":{"ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"401ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"403JobErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"MediaFromUrlRequest":{"type":"object","required":["media","type"],"properties":{"media":{"type":"array","description":"List of media URLs and metadata","items":{"type":"object","required":["url","name"],"properties":{"url":{"type":"string","description":"URL of the media to download"},"name":{"type":"string","description":"Custom name for the media file"},"caption":{"type":"string","description":"Caption for the media"},"source":{"type":"string","description":"Source attribution for the media"}}}},"type":{"type":"string","description":"Upload type","enum":["single","thumbnail","bulk","thumbnail"]},"direct_upload":{"type":"boolean","description":"Whether to upload directly to our S3 cloud (slower, but required if you need the final media URL)","default":false},"in_library":{"type":"boolean","description":"Whether to save to media library","default":false}}}}},"paths":{"/media/from-url":{"post":{"summary":"Upload media from URL","description":"Upload media files by providing URLs","tags":["Media"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to upload media","required":true}],"responses":{"200":{"description":"Media upload job created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"job_id":{"type":"string","description":"ID of the created job"}}}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403JobErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaFromUrlRequest"}}},"description":"URL upload request","required":true}}}}}
```

**Request Parameters**

<table data-header-hidden><thead><tr><th width="164.66632080078125"></th><th width="503.065673828125"></th><th></th></tr></thead><tbody><tr><td>Parameter</td><td>Description</td><td>Required</td></tr><tr><td><code>media[].url</code></td><td>URL of the media file to download</td><td>Yes</td></tr><tr><td><code>media[].name</code></td><td>Custom name for the media file</td><td>Yes</td></tr><tr><td><code>media[].caption</code></td><td>Caption for the media</td><td>No</td></tr><tr><td><code>media[].source</code></td><td>Source attribution</td><td>No</td></tr><tr><td><code>type</code></td><td>Upload type (<code>single</code> or <code>bulk</code>)</td><td>No</td></tr><tr><td><code>direct_upload</code></td><td><p>Whether to upload directly to our S3 cloud (slower, but required if you need the final media URL)</p><p>(default: <code>false</code>)</p></td><td>No</td></tr><tr><td><code>in_library</code></td><td>Whether to save to media library (default: <code>false</code>)</td><td>No</td></tr></tbody></table>

Unlike direct uploads, URL uploads are processed asynchronously. Use the returned `job_id` to check the status of your upload.

#### Checking Upload Status

## Get job status

> Check the status of an asynchronous job, including URL media uploads

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Jobs","description":"Endpoints for managing asynchronous jobs"}],"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":{"JobStatusResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the request was successful"},"data":{"type":"object","properties":{"status":{"type":"string","enum":["working","complete","failed"],"description":"Current status of the job \n\n - `working`: The job is still processing.\n - `complete`: The job has completed successfully.\n - `failed`: The job has failed."},"result":{"type":"object","description":"Result data, contents depend on job type","properties":{"status":{"type":"string","enum":["working","complete","failed"],"description":"Current status of the job \n\n - `working`: The job is still processing.\n - `complete`: The job has completed successfully.\n - `failed`: The job has failed."},"payload":{"type":"object","description":"Result payload containing any operation results","properties":{"failures":{"type":"object","description":"Any failures that occurred during processing"}}},"plan":{"type":"object","description":"Current user's plan information","properties":{"rate":{"type":"string","description":"The rate plan of the workspace"},"locked":{"type":"boolean","description":"Whether the workspace is locked"}}}}}}}}},"401ErrorResponse":{"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":{"/job_status/{job_id}":{"get":{"summary":"Get job status","description":"Check the status of an asynchronous job, including URL media uploads","tags":["Jobs"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve posts from","required":true},{"schema":{"type":"string"},"name":"job_id","in":"path","description":"ID of the job to check","required":true}],"responses":{"200":{"description":"Job status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Using Media in Posts

Once you've uploaded media and have the media ID, you can reference it in your post requests:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "default": {
            "type": "photo",
            "text": "Check out our latest product!",
            "media": [
              {
                "id": "6813892b5ec8b1e65235ae9e",
                "type": "image",
                "alt_text": "Product on white background"
              }
            ]
          }
        },
        "accounts": [
          {
            "id": "66db83154e299efa19a2d8eb",
            "scheduled_at": "2025-05-15T14:30:00Z"
          }
        ]
      }
    ]
  }
}
```

### Supported Media Types

#### Images

* **Supported formats**: JPG, PNG, GIF, WEBP
* **Recommended dimensions**: Varies by platform (see [Networks Reference](https://publer.com/docs/posting/create-posts/networks))
* **Maximum file size**: Varies by platform, generally 5-10MB

#### Videos

* **Supported formats**: MP4, MOV, AVI, WEBM
* **Recommended dimensions**: Varies by platform (see [Networks Reference](https://publer.com/docs/posting/create-posts/networks))
* **Maximum file size**: Varies by platform, generally 512MB-2GB
* **Duration limits**: Varies by platform and content type

#### Documents

* **Supported formats**: PDF
* **Maximum file size**: 100MB
* **Supported networks**: LinkedIn only

### Network Validation

The `validity` object in the media upload response indicates which networks and post types can use the uploaded media. This helps prevent errors when attempting to use incompatible media in your posts.

For example, if `validity.instagram.reel` is `false`, the uploaded media cannot be used for Instagram Reels.

### Best Practices

#### Image Optimization

1. **Resolution**: Use appropriate image resolutions for each platform
2. **Aspect ratio**: Follow recommended aspect ratios to avoid cropping
3. **File size**: Optimize images for web to reduce file size
4. **Alt text**: Always include descriptive alt text for accessibility

#### Video Optimization

1. **Format**: Use MP4 with H.264 encoding for maximum compatibility
2. **Dimensions**: Use 1080p (1920x1080) for standard videos
3. **Aspect ratio**: 16:9 for horizontal, 9:16 for vertical/stories/reels
4. **Duration**: Keep videos under platform limits
5. **Thumbnails**: Consider uploading custom thumbnails for videos

#### General Tips

1. **Pre-check compatibility**: Review the `validity` object before using media
2. **Error handling**: Implement robust error handling for upload failures
3. **Caching**: Cache media IDs to avoid unnecessary re-uploads

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types) - Details on different content formats
* [Network Reference](https://publer.com/docs/posting/create-posts/networks) - Platform-specific media requirements
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods) - Using media in different post types


# Post Labels

Add labels to posts to organize content within a workspace. Labels can be used to filter posts, group content in analytics, and control labeled auto-scheduling timeslots.

For an overview of the different ways to publish and schedule posts, see [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods).

### Overview

A label is a workspace scoped tag with a `name` and `color`. You can attach multiple labels to a post.

Labels are created automatically when you use a new label name while creating a post.

When Publer receives a label:

1. It looks for an existing label with the same name in the workspace.
2. If the label exists, it is reused.
3. If it doesn't exist, a new label is created.
4. The label is attached to the post.

Labels are supported when:

* Scheduling a post
* Publishing immediately
* Creating drafts or ideas
* Creating recycling posts
* Creating recurring posts
* Using bulk scheduling

#### Where Labels Go

There are two places where labels can be provided, but they serve different purposes:

<table><thead><tr><th width="241.4140625">Location</th><th width="145.08984375">Format</th><th>Purpose</th></tr></thead><tbody><tr><td><code>posts[].labels</code></td><td>Array of objects</td><td>Recommended for labeling posts</td></tr><tr><td><code>posts[].accounts[].labels</code></td><td>Array of strings</td><td>Used primarily for labeled auto-scheduling</td></tr></tbody></table>

**Use `posts[].labels` for normal post labeling.**

Account-level labels should only be used when you need to select labeled auto-scheduling timeslots.

### Post-Level Labels

The recommended way to add labels is to include a `labels` array directly on the post.

```json5
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Check out our latest product!"
          }
        },
        "accounts": [
          {
            "id": "66db83154e299efa19a2d8eb",
            "scheduled_at": "2025-05-15T14:30:00Z"
          }
        ],
        "labels": [
          {
            "name": "Product Launch",
            "color": "#84FFBF"
          },
          {
            "name": "Q2 Campaign",
            "color": "#87C7F6"
          }
        ]
      }
    ]
  }
}
```

#### Label Object

<table><thead><tr><th width="156.70703125">Field</th><th width="117.24609375">Type</th><th width="121.359375">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td>string</td><td>Yes</td><td>Label name</td></tr><tr><td><code>color</code></td><td>string</td><td>No</td><td>Hex color used when creating a new label</td></tr></tbody></table>

#### Label Matching

Labels are matched by name, **case-insensitively**.

For example:

```
Recipes
recipes
RECIPES
```

all refer to the same label.

Whitespace is significant, however. These are different labels:

```
Recipes
 Recipes
Recipes 
```

Trim label names before sending them.

If a label already exists, the color you provide is ignored and the existing color is preserved.

#### Requirements

`posts[].labels` must be an array of objects:

```json5
"labels": [
  {
    "name": "Product Launch",
    "color": "#84FFBF"
  }
]
```

A plain array of strings is not supported at the post level:

```json5
"labels": ["Product Launch"]
```

***

### Account-Level Labels

Account-level labels are provided inside `accounts[]`:

```json5
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Evergreen tip of the week"
          }
        },
        "accounts": [
          {
            "id": "66db83154e299efa19a2d8eb",
            "labels": ["Recipes"]
          }
        ]
      }
    ]
  }
}
```

Use this format primarily when you want to control **auto-scheduling through labeled timeslots**.

When an account-level label is used:

1. The label is attached to the post.
2. If the label doesn't exist, it is created with the fixed color `#434343`.
3. If no `scheduled_at` is provided, Publer uses the label to select posting-schedule timeslots.

#### Timeslot Selection

This applies when `scheduled_at` is not explicitly provided, including auto-scheduling, `share_next`, and recycling.

<table><thead><tr><th width="211.515625">Labels</th><th>Timeslots used</th></tr></thead><tbody><tr><td>Omitted or <code>[]</code></td><td>Unlabeled timeslots only</td></tr><tr><td>One label</td><td>Timeslots with exactly that label</td></tr><tr><td>Multiple labels</td><td>Timeslots matching any of the provided labels</td></tr></tbody></table>

If one label is provided and no matching timeslot exists, the post fails. There is no fallback to unlabeled timeslots.

If multiple labels are provided and none match, Publer falls back to unlabeled timeslots.

{% hint style="warning" %}
\
Timeslot label matching is **case-sensitive and exact**.

For example, a timeslot labeled `Recipes` does not match `recipes`.

Post-level labels use case-insensitive matching, so these two behaviors are different.<br>
{% endhint %}

Timeslot labels are not available through the API. You can check them in the Publer web app under **Accounts → Posting Schedule**.

#### Account-Level Label Differences

* Color is always `#434343`.
* Recurring occurrences are **not** labeled; only the parent post is.
* For recycling posts, the first label is also stored as the recycling label and returned in `recycling_props.label`.
* If `scheduled_at` is explicitly provided, labels do not affect timeslot selection.

**For normal post categorization, use post-level labels instead.**

***

### Label Colors

Publer supports the following colors in the web app:

<table><thead><tr><th width="226.4140625">Name</th><th>Hex</th></tr></thead><tbody><tr><td>Green</td><td><code>#84FFBF</code></td></tr><tr><td>DarkBlue</td><td><code>#87C7F6</code></td></tr><tr><td>DarkRed</td><td><code>#F28EBB</code></td></tr><tr><td>Orange</td><td><code>#FCB000</code></td></tr><tr><td>Primary</td><td><code>#C0C2D1</code></td></tr><tr><td>Pink</td><td><code>#FF8787</code></td></tr><tr><td>DarkGreen</td><td><code>#73DDD8</code></td></tr><tr><td>LightOrange</td><td><code>#FDDF79</code></td></tr><tr><td>Blue</td><td><code>#C5B7FF</code></td></tr><tr><td>LightBlue</td><td><code>#B6DCF9</code></td></tr></tbody></table>

`#C0C2D1` is the standard default color.

{% hint style="info" %}
\
Colors are only applied when a label is created. Sending a different color for an existing label does not change its color.
{% endhint %}

***

### Scheduling Posts with Labels

Labels work with the standard scheduling endpoint.

#### Example

```json5
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "facebook": {
            "type": "status",
            "text": "Check out our latest product!"
          }
        },
        "accounts": [
          {
            "id": "66db83154e299efa19a2d8eb",
            "scheduled_at": "2025-05-15T14:30:00Z"
          }
        ],
        "labels": [
          {
            "name": "Product Launch",
            "color": "#84FFBF"
          }
        ]
      }
    ]
  }
}
```

***

### Reading Labels

`GET /api/v1/posts` returns a `labels` array for each post. See [Posts](https://publer.com/docs/api-reference/posts).

```json5
{
  "posts": [
    {
      "id": "68176f0e8bee9dc9b0ce3427",
      "state": "scheduled",
      "type": "status",
      "text": "Check out our latest product!",
      "account_id": "66db83154e299efa19a2d8eb",
      "scheduled_at": "2025-05-15T14:30:00.000+02:00",
      "labels": [
        {
          "id": "6937e35e9823a2eeecfa378f",
          "name": "Product Launch",
          "color": "#84FFBF"
        },
        {
          "id": "69f327eb912f8d1e7e0bc7f0",
          "name": "Q2 Campaign",
          "color": "#87C7F6"
        }
      ]
    }
  ],
  "total": 1
}
```

***

### Updating Labels

Use:

```http
PUT /api/v1/posts/{id}
```

The `labels` property uses the same format as post creation.

```json5
{
  "post": {
    "text": "Updated copy",
    "labels": [
      {
        "name": "Product Launch",
        "color": "#84FFBF"
      }
    ]
  }
}
```

{% hint style="danger" %}
`labels` is a **full replacement set**, not an addition.

If you only want to add a label, first read the current labels and send the complete desired set.

If you omit `labels` entirely, all labels are removed from the post.

If the post currently has `Product Launch` and `Q2 Campaign`, sending only `Product Launch` removes `Q2 Campaign`.<br>
{% endhint %}

For recurring posts, updating labels applies the replacement to the parent post and its occurrences.

Removing a label from its last post does not delete the label from the workspace.

***

### Limitations

* Labels cannot be created independently; they are created when attached to a post.
* Labels are scoped to a workspace.
* Updating labels requires appropriate access to the post.

***

### Best Practices

* **Use post-level labels by default.** Use `posts[].labels` for normal post organization and categorization.
* **Use account-level labels for auto-scheduling.** Only use `accounts[].labels` when you need labeled posting-schedule timeslots.
* **Keep names consistent.** Trim whitespace and use consistent casing.
* **Send the complete label set when updating.** `PUT /api/v1/posts/{id}` replaces the existing labels.
* **Use supported colors** for consistent rendering in the Publer web app.

***

### Related Topics

* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods) — Learn about the different ways to publish and schedule posts
* [Recurring Posts](https://publer.com/docs/posting/create-posts/publishing-methods/recurring-posts) — Label recurring posts and their generated occurrences
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling) — Upload media before attaching it to a post
* [Content Types](https://publer.com/docs/posting/create-posts/content-types) — Supported post types and network-specific fields


# Media Options

Manage and retrieve Facebook albums, Pinterest boards, and saved watermarks for your social accounts—all within your workspace. Use these options to organize content and protect your creative assets.

### Overview

Media options help you:

* **Post** your Facebook photos into albums.
* **Pin** to specific Pinterest boards.
* **Protect** your images and videos with custom watermarks.

Retrieve all available albums/boards and watermarks per account to use in your post scheduling workflows.

### Fetch Media Options

Use the following endpoint to list all available albums (for Facebook), boards (for Pinterest), and saved watermarks for the accounts in your workspace.

## Get Media Options

> Retrieves albums and watermarks for specified accounts in a workspace.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Workspaces","description":"Endpoints for managing workspaces and teams"}],"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":{"401ErrorResponse":{"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":{"/workspaces/{workspace_id}/media_options":{"get":{"summary":"Get Media Options","description":"Retrieves albums and watermarks for specified accounts in a workspace.","tags":["Workspaces"],"parameters":[{"schema":{"type":"string"},"name":"workspace_id","in":"path","description":"ID of the workspace to retrieve media options from","required":true},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false,"name":"accounts","in":"query","description":"Array of account IDs to filter media options by","required":true}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"albums":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}}}},"watermarks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"opacity":{"type":"number"},"size":{"type":"number"},"position":{"type":"string"},"default":{"type":"boolean"},"image":{"type":"string","format":"url"}}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Parameters

<table><thead><tr><th width="214.99017333984375">Field</th><th width="95.99688720703125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td>Account ID</td></tr><tr><td><code>albums</code></td><td>array</td><td>List of albums (Facebook) or boards (Pinterest)</td></tr><tr><td><code>albums[].id</code></td><td>string</td><td>Album or board ID</td></tr><tr><td><code>albums[].name</code></td><td>string</td><td>Album or board name</td></tr><tr><td><code>albums[].type</code></td><td>string</td><td><code>"facebook"</code> or <code>"pinterest"</code></td></tr><tr><td><code>watermarks</code></td><td>array</td><td>List of watermark objects</td></tr><tr><td><code>watermarks[].id</code></td><td>string</td><td>Watermark ID</td></tr><tr><td><code>watermarks[].name</code></td><td>string</td><td>Watermark name</td></tr><tr><td><code>watermarks[].opacity</code></td><td>number</td><td>Opacity percentage (0–100)</td></tr><tr><td><code>watermarks[].size</code></td><td>number</td><td>Relative size percentage (e.g., 15 = 15%)</td></tr><tr><td><code>watermarks[].position</code></td><td>string</td><td>Position on media (e.g., <code>bottom_right</code>)</td></tr><tr><td><code>watermarks[].default</code></td><td>boolean</td><td>Whether this is the default watermark</td></tr><tr><td><code>watermarks[].image</code></td><td>string</td><td>URL to the watermark image</td></tr></tbody></table>

### How to Use Media Options

* **Facebook Albums**: Select an album ID when posting to Facebook to keep your photos organized and easy to browse.
* **Pinterest Boards**: Use the board ID to specify where your Pin should be published.
* **Watermarks**: Choose a watermark ID to apply a logo, copyright, or brand mark to your images/videos. Watermarks help deter unauthorized use and reinforce your brand.

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types)
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods)
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling)


# Networks

Detailed platform-specific capabilities, content support, and limitations for all social networks available via the Publer API.

### Supported Networks

| Network         | Provider    | Content Types                               | Media Support                    | Character Limit                |
| --------------- | ----------- | ------------------------------------------- | -------------------------------- | ------------------------------ |
| Facebook        | `facebook`  | status, photo, video, link, carousel        | Images, videos, links            | 10,000                         |
| Instagram       | `instagram` | photo, video, carousel, story, reel         | Images, videos                   | 2,200                          |
| Twitter/X       | `twitter`   | status, photo, video, link                  | Images, videos, links, polls     | 280 (25,000 for premium)       |
| LinkedIn        | `linkedin`  | status, photo, video, link, document, polls | Images, videos, documents, links | 3,000                          |
| Pinterest       | `pinterest` | photo, video                                | Images, videos, links            | 500                            |
| Google Business | `google`    | status, photo, video, link                  | Images, videos, links            | 1,500                          |
| TikTok          | `tiktok`    | video, single or multi-photo/carousel posts | Videos                           | 2,200                          |
| YouTube         | `youtube`   | video, shorts                               | Videos                           | No fixed limit (100 chars min) |
| Telegram        | `telegram`  | status, photo, video, link                  | Images, videos, links            | 4,096                          |
| Mastodon        | `mastodon`  | status, photo, video, link, polls, gif      | Images, videos, links            | 500+ (server dependent)        |
| Threads         | `threads`   | status, photo, video                        | Images, videos                   | 500                            |
| Bluesky         | `bluesky`   | status, photo, video                        | Images, videos                   | 300                            |

### Network-Specific Details

#### Facebook

**Provider:** `facebook`

**Content Types:**

* Text posts
* Text posts with background color
* Photo posts (single or multiple)
* Video posts
* Link posts
* Carousel posts
* Stories

**Limitations:**

* Text: 10,000 characters
* Photos: Up to 10 per post
* Videos: Up to 240 minutes, 10GB max file size
* Link previews: Automatically generated from URL

**Special Considerations:**

* Page permissions required for business pages
* Video aspect ratio: 16:9 to 9:16 supported
* Image aspect ratio: 1.91:1 to 1:1 recommended
* Hashtags supported but used less frequently than other platforms

**Example:**

```json
"facebook": {
  "type": "status",
  "text": "Facebook-specific content with more detailed formatting"
}
```

#### Instagram

**Provider:** `instagram`

**Content Types:**

* Photo posts (single or multiple)
* Video posts
* Carousel posts
* Stories
* Reels

**Limitations:**

* Text (caption): 2,200 characters
* Photos: Up to 10 per carousel
* Videos: Up to 60 minutes, 10GB max file size
* Stories: 15 seconds per segment
* Reels: 3-90 seconds

**Special Considerations:**

* Business account required for API posting
* Image aspect ratio: Between 1.91:1 and 4:5 (square 1:1 recommended)
* Cannot post links in captions (they won't be clickable)
* First comments can be auto-posted with hashtags

**Example:**

```json
"instagram": {
  "type": "carousel",
  "text": "Instagram caption with #hashtags",
  "media": [
    {"id": "media_id_1", "type": "image"},
    {"id": "media_id_2", "type": "image"}
  ]
}
```

#### Twitter/X

**Provider:** `twitter`

**Content Types:**

* Text posts
* Photo posts (single or multiple)
* Video posts
* Link posts
* Polls

**Limitations:**

* Text: 280 characters (25,000 for premium accounts)
* Photos: Up to 4 per tweet
* Videos: Up to 140 seconds for standard users
* URLs count as 23 characters regardless of length
* GIFs limited to 15MB

**Special Considerations:**

* Developer account required for API access
* Hashtags and @mentions count toward character limit
* Media attachments no longer count toward the 280 character limit
* Alt text for images highly recommended

**Example:**

```json
"twitter": {
  "type": "status",
  "text": "Concise Twitter post with #hashtags and @mentions"
}
```

#### LinkedIn

**Provider:** `linkedin`

**Content Types:**

* Text posts
* Photo posts
* Video posts
* Link posts
* Document posts (PDFs)

**Limitations:**

* Text: 3,000 characters
* Photos: Up to 9 per post
* Videos: Up to 15 minutes, 5GB max file size
* Documents: PDF format, 100MB max

**Special Considerations:**

* Supports markdown-style formatting (bold, italic, bullets)
* Company page access requires admin privileges
* More formal tone typically recommended
* Professional content performs best

**Example:**

```json
"linkedin": {
  "type": "status",
  "text": "**Professional announcement** with formatted text:\n\n• Point one\n• Point two\n• Point three"
}
```

#### Pinterest

**Provider:** `pinterest`

**Content Types:**

* Photo pins
* Video pins

**Limitations:**

* Description: 500 characters
* Images: 20MB max, 1000x1500px recommended
* Videos: 30 seconds minimum, 15 minutes maximum

**Special Considerations:**

* Must include an image or video (no text-only posts)
* Vertical images (2:3 ratio) perform best
* Board selection required when posting
* Alt text important for search optimization

**Example:**

```json
"pinterest": {
  "type": "photo",
  "text": "Pin description with #hashtags",
  "board_id": "board_id_here",
  "media": [{"id": "media_id", "type": "image"}]
}
```

#### Google Business Profile

**Provider:** `google`

**Content Types:**

* Text posts
* Photo posts
* Video posts
* Link posts

**Limitations:**

* Text: 1,500 characters
* Photos: Up to 10 per post
* Videos: Up to 30 seconds

**Special Considerations:**

* Location ID required for multi-location businesses
* Posts expire after 7 days by default
* Call-to-action buttons available (Learn more, Book, Order, etc.)
* Location-specific content recommended

**Example:**

```json
"google": {
  "type": "status",
  "text": "Local business update with important information",
  "location_id": "location_id_here",
  "cta": {
    "type": "LEARN_MORE",
    "url": "https://example.com/details"
  }
}
```

#### TikTok

**Provider:** `tiktok`

**Content Types:**

* Video posts
* Single or multi-photo/carousel posts

**Limitations:**

* Caption: 2,200 characters
* Videos: 3 seconds to 10 minutes
* File size: 500MB maximum
* Carousels can be up to 10 photos. At the moment, videos cannot be included in a carousel post.

**Special Considerations:**

* Business account required for API posting
* Vertical video format (9:16) required
* Sound/music highly recommended
* Cannot edit video after posting

**Example:**

```json
"tiktok": {
  "type": "video",
  "text": "Caption with #hashtags #fyp",
  "media": [{"id": "video_id", "type": "video"}]
}
```

#### YouTube

**Provider:** `youtube`

**Content Types:**

* Video posts
* Shorts

**Limitations:**

* Title: 100 characters
* Description: 5,000 characters
* Tags: Up to 500 characters total
* Videos: Up to 12 hours, 256GB maximum
* Shorts need to be shot vertically and be up to 3 minutes long.

**Special Considerations:**

* Channel verification required for longer videos
* Thumbnail image can be specified
* Category selection required
* Privacy setting options (public, private, unlisted)

**Example:**

```json
"youtube": {
  "type": "video",
  "text": "Video description with timestamps and links",
  "title": "Video Title Here",
  "media": [{"id": "video_id", "type": "video"}],
  "privacy": "public",
  "category": "22"  // People & Blogs category
}
```

#### Telegram

**Provider:** `telegram`

**Content Types:**

* Text posts
* Photo posts
* Video posts
* Link posts

**Limitations:**

* Text: 4,096 characters per message
* Photos: Up to 10 per post
* Videos: Up to 2GB per file
* File attachments: Up to 2GB

**Special Considerations:**

* Bot API token required
* Channel or group specified by chat ID
* Markdown and HTML formatting supported
* Silent posting option available

**Example:**

```json
"telegram": {
  "type": "status",
  "text": "Telegram message with *bold* and _italic_ formatting",
  "disable_notification": false
}
```

#### Mastodon

**Provider:** `mastodon`

**Content Types:**

* Text posts
* Photo posts
* Video posts
* Link posts
* Gif Posts

**Limitations:**

* Text: 500 characters minimum (varies by server)
* Photos: Up to 4 per post
* Videos: Format and size limits vary by server
* GIFs need to be less than 8 MB and have a resolution up to 1280x720 pixels.

**Special Considerations:**

* Instance URL required for posting
* Content warnings can be specified
* Visibility options: public, unlisted, private, direct
* Alt text essential for accessibility

**Example:**

```json
"mastodon": {
  "type": "status",
  "text": "Mastodon post with #hashtags",
  "visibility": "public",
  "content_warning": "Optional content warning"
}
```

#### Threads

**Provider:** `threads`

**Content Types:**

* Text posts
* Photo posts
* Video posts

**Limitations:**

* Text: 500 characters
* Photos: Up to 10 per post
* Videos: Up to 5 minutes

**Special Considerations:**

* Requires Instagram business account connection
* Cannot schedule posts for specific times via API
* No direct link posting (links are non-clickable)
* Hashtags supported but used differently than Instagram
* [Threads Cross-Share to Instagram Stories](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/threads-cross-share-to-instagram-stories) is configured per Threads account.

**Example:**

```json
"threads": {
  "type": "status",
  "text": "Threads update with conversational tone"
}
```

#### Bluesky

**Provider:** `bluesky`

**Content Types:**

* Text posts
* Photo posts

**Limitations:**

* Text: 300 characters
* Photos: Up to 4 per post

**Special Considerations:**

* Decentralized platform in beta stage
* API access requires developer invitation
* Custom domains and handles supported
* Limited media format support

**Example:**

```json
"bluesky": {
  "type": "status",
  "text": "Bluesky post with limited characters but #tags",
  "media": [{"id": "image_id", "type": "image"}]
}
```

### Media Specifications

#### Image Requirements

| Network         | Optimal Dimensions | Aspect Ratio | Max File Size    |
| --------------- | ------------------ | ------------ | ---------------- |
| Facebook        | 1200x630px         | 1.91:1       | 8MB              |
| Instagram       | 1080x1080px        | 1:1 to 4:5   | 8MB              |
| Twitter         | 1200x675px         | 16:9         | 5MB              |
| LinkedIn        | 1200x627px         | 1.91:1       | 5MB              |
| Pinterest       | 1000x1500px        | 2:3          | 20MB             |
| Google Business | 1200x900px         | 4:3          | 5MB              |
| Telegram        | 1280x720px         | 16:9         | 10MB             |
| Mastodon        | 1200x900px         | 4:3          | Server dependent |
| Threads         | 1080x1080px        | 1:1 to 4:5   | 8MB              |
| Bluesky         | 1200x675px         | 16:9         | 5MB              |

#### Video Requirements

| Network   | Optimal Dimensions | Aspect Ratio | Duration         | Max File Size |
| --------- | ------------------ | ------------ | ---------------- | ------------- |
| Facebook  | 1280x720px         | 16:9         | 1s - 240m        | 10GB          |
| Instagram | 1080x1920px        | 9:16         | 3s - 60m         | 650MB         |
| Twitter   | 1280x720px         | 16:9         | 0.5s - 140s      | 512MB         |
| LinkedIn  | 1920x1080px        | 16:9         | 3s - 15m         | 5GB           |
| Pinterest | 1080x1920px        | 9:16         | 4s - 15m         | 2GB           |
| TikTok    | 1080x1920px        | 9:16         | 3s - 10m         | 500MB         |
| YouTube   | 1920x1080px        | 16:9         | No minimum - 12h | 256GB         |
| Telegram  | 1280x720px         | 16:9         | No limits        | 2GB           |
| Threads   | 1080x1920px        | 9:16         | 3s - 5m          | 650MB         |

### Best Practices

* **Cross-Platform Posting**
  * Provide network-specific overrides under `networks` for optimal formatting.
  * Adjust media dimensions to each platform’s specs.
  * Tailor text length to char limits.
* **Platform Selection**
  * Choose networks based on audience and content type.
  * Leverage visual platforms (Instagram, Pinterest) for images/video-heavy campaigns.
  * Use LinkedIn for professional announcements; Facebook/Instagram for broad reach.
* **Error Prevention**
  * Pre-validate media compatibility via upload responses’ `validity` flags.
  * Poll job status to catch and handle errors early.

### Related Topics

* [Content Types](https://publer.com/docs/posting/create-posts/content-types) - Detailed information about different content formats
* [Media Handling](https://publer.com/docs/posting/create-posts/media-handling) - Guide to uploading and managing media files
* [Publishing Methods](https://publer.com/docs/posting/create-posts/publishing-methods) - Options for publishing to different networks


# Updating Posts

Modify an existing post—whether scheduled or already published—across your social networks. This endpoint handles network-specific constraints and supports advanced features like recycling and recurring schedules.

### Requirements

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

### Endpoint

Updates an existing post by ID. The behavior differs depending on whether the post is scheduled or already published.

```http
PUT /api/v1/posts/:id
```

### Parameter Reference

<table data-header-hidden><thead><tr><th width="117.247802734375"></th><th width="99.66619873046875"></th><th width="116.20751953125"></th><th></th></tr></thead><tbody><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>text</td><td>string</td><td>Yes</td><td>The main content text of the post</td></tr><tr><td>title</td><td>string</td><td>No</td><td>Title for the post (used in some networks)</td></tr></tbody></table>

#### Special Cases <a href="#special-cases" id="special-cases"></a>

When the post is published, you can only update network-specific params.

<table data-header-hidden><thead><tr><th width="157.33676147460938"></th><th></th></tr></thead><tbody><tr><td>Network</td><td>Updatable Fields</td></tr><tr><td>LinkedIn</td><td>• Text content</td></tr><tr><td>YouTube</td><td><p>• Title (limited to 100 characters)</p><p>• Text/description (limited to 5000 characters)</p></td></tr><tr><td>Google Business</td><td>• Text content (called "summary" in Google's API, limited to 1500 characters)</td></tr><tr><td>Facebook</td><td><p>• Text content (both description and message fields)</p><p>• Title (only for video posts, in the name field)</p></td></tr><tr><td>WordPress</td><td><p>• Title</p><p>• Content (HTML converted)</p></td></tr><tr><td>Telegram</td><td>• For status updates and links: Text content</td></tr><tr><td>Mastodon</td><td><p>• Text content</p><p>• Title</p></td></tr></tbody></table>

**Networks Not Supporting Published Post Updates**

For the following networks, only labels can be updated in Publer's database after a post is published:

* Twitter/X (polls cannot be edited after publishing)
* Pinterest
* Instagram
* Threads
* Bluesky

#### Recurring Posts

If the post is a recurring post, the update will be applied to all future child posts in the recurring series. Already published child posts will not be affected.

### Notes

* When updating a post that requires approval, a notification will be sent to the appropriate workspace members.
* Changes to published posts will be reflected both in Publer's database and on the social media platform (for supported networks).

## Update Post

> Updates an existing post. The behavior differs depending on whether the post is already published or not.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"PostDetail":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the post"},"text":{"type":"string","description":"Post text content"},"state":{"type":"string","description":"Current state of the post"},"type":{"type":"string","description":"Type of post"},"account_id":{"type":"string","description":"ID of the social account"},"account":{"type":"object","description":"Details of the social account","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"}}},"user":{"type":"object","description":"User who created the post","properties":{"id":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"}}},"scheduled_at":{"type":"string","description":"Scheduled publication time"},"created_at":{"type":"string","description":"Creation timestamp"},"updated_at":{"type":"string","description":"Last update timestamp"},"post_link":{"type":"string","description":"Link to the published post on the social network"},"media":{"type":"array","description":"Media items attached to the post","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"alt_text":{"type":"string"}}}},"link":{"type":"object","description":"Link details for link posts","properties":{"url":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"image_url":{"type":"string"}}},"labels":{"type":"array","description":"Labels assigned to this post","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}}},"auto":{"type":"boolean","description":"Whether this post was auto-scheduled"},"recycling":{"type":"object","description":"Recycling settings if applicable","properties":{"solo":{"type":"boolean"},"gap":{"type":"integer"},"gap_freq":{"type":"string"},"start_date":{"type":"string"},"expire_count":{"type":"integer"}}},"recurring":{"type":"object","description":"Recurring settings if applicable","properties":{"frequency":{"type":"string"},"repeat_every":{"type":"integer"},"weekdays":{"type":"array","items":{"type":"string"}},"start_date":{"type":"string"}}}}},"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"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/posts/{id}":{"put":{"summary":"Update Post","description":"Updates an existing post. The behavior differs depending on whether the post is already published or not.","tags":["Posts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace containing the post","required":true},{"schema":{"type":"string"},"name":"id","in":"path","description":"ID of the post to update","required":true}],"responses":{"200":{"description":"Post updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"403":{"description":"Forbidden - You cannot update a post that has been published with approval","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}},"422":{"description":"Unprocessable Entity - Error message explaining why the post couldn't be updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The main content text of the post"},"title":{"type":"string","description":"Title for the post (used in some networks)"}}}}}}},"description":"Post update parameters","required":true}}}}}
```

### Related Resources

* [List Posts API](https://publer.com/docs/api-reference/posts) - Retrieve and filter posts
* [Accounts API](https://publer.com/docs/api-reference/accounts) - Manage social media accounts
* [Media API](https://publer.com/docs/posting/create-posts/media-handling) - Upload and manage media for posts


# Unpublished Posts

Once a post exists, you can move it or change its state — without rebuilding the payload. These endpoints complement `PUT /api/v1/posts/{id}`, which only changes `text` and `title`.

#### Requirements

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

{% hint style="info" %}
All four endpoints require that the API key's user is the **creator** of the post. A key belonging to a different member of the same workspace can read the post but not modify it.
{% endhint %}

### **Reschedule Post**

Move a scheduled post to a new time.

```http
PUT /api/v1/posts/{id}/reschedule
```

## Reschedule Post

> Reschedules a post to a new date and time. This may trigger approval workflows depending on workspace settings.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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\""}}},"paths":{"/posts/{id}/reschedule":{"put":{"summary":"Reschedule Post","description":"Reschedules a post to a new date and time. This may trigger approval workflows depending on workspace settings.","tags":["Posts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace containing the post","required":true},{"schema":{"type":"string"},"name":"id","in":"path","description":"ID of the post to reschedule","required":true}],"responses":{"200":{"description":"Post successfully rescheduled","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the post"},"state":{"type":"string","description":"Current state of the post"},"scheduled_at":{"type":"string","format":"date-time","description":"New scheduled date and time for the post"},"details":{"type":"object","description":"Additional details about the post"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"},"description":"List of error messages"}}}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"},"description":"List of error messages"}}}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["scheduled_at"],"properties":{"scheduled_at":{"type":"string","format":"date-time","description":"New date and time for the post in ISO 8601 format"}}}}},"description":"New scheduled time for the post","required":true}}}}}
```

Example:

```json
{ "post": { "scheduled_at": "2026-10-14T09:30:00Z" } }
```

***

### **Publish Post Now**

Publish a draft, scheduled or failed post immediately.

```http
POST /api/v1/posts/{id}/publish_now
```

## Publish Post Now

> Immediately publishes a scheduled/draft post to its associated social media account.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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\""}}},"paths":{"/posts/{id}/publish_now":{"post":{"summary":"Publish Post Now","description":"Immediately publishes a scheduled/draft post to its associated social media account.","tags":["Posts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace containing the post","required":true},{"schema":{"type":"string"},"name":"id","in":"path","description":"ID of the post to publish","required":true}],"responses":{"200":{"description":"Post publishing job started successfully","content":{"application/json":{"schema":{"type":"object","properties":{"job_id":{"type":"string","description":"ID of the background job that will publish the post"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"},"description":"List of error messages"}}}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"},"description":"List of error messages"}}}}}}}}}}}
```

Returns `{ "job_id": "..." }`. Poll Job Status for the outcome. Retrying a `failed` post clears its upload checkpoints first, so the publish starts cleanly.

***

### **Change Post State**

Promote a draft to scheduled, or move a post back to draft.

```http
PUT /api/v1/posts/{id}/state
```

## Change Post State

> Changes the state of a post, for example promoting a draft to scheduled.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"PostDetail":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the post"},"text":{"type":"string","description":"Post text content"},"state":{"type":"string","description":"Current state of the post"},"type":{"type":"string","description":"Type of post"},"account_id":{"type":"string","description":"ID of the social account"},"account":{"type":"object","description":"Details of the social account","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"}}},"user":{"type":"object","description":"User who created the post","properties":{"id":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"}}},"scheduled_at":{"type":"string","description":"Scheduled publication time"},"created_at":{"type":"string","description":"Creation timestamp"},"updated_at":{"type":"string","description":"Last update timestamp"},"post_link":{"type":"string","description":"Link to the published post on the social network"},"media":{"type":"array","description":"Media items attached to the post","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"alt_text":{"type":"string"}}}},"link":{"type":"object","description":"Link details for link posts","properties":{"url":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"image_url":{"type":"string"}}},"labels":{"type":"array","description":"Labels assigned to this post","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}}},"auto":{"type":"boolean","description":"Whether this post was auto-scheduled"},"recycling":{"type":"object","description":"Recycling settings if applicable","properties":{"solo":{"type":"boolean"},"gap":{"type":"integer"},"gap_freq":{"type":"string"},"start_date":{"type":"string"},"expire_count":{"type":"integer"}}},"recurring":{"type":"object","description":"Recurring settings if applicable","properties":{"frequency":{"type":"string"},"repeat_every":{"type":"integer"},"weekdays":{"type":"array","items":{"type":"string"}},"start_date":{"type":"string"}}}}},"401ErrorResponseWithWorkspace":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}},"422ErrorResponse":{"type":"object","properties":{"errors":{"type":"array","description":"List of error messages","items":{"type":"string"}}}}}},"paths":{"/posts/{id}/state":{"put":{"summary":"Change Post State","tags":["Posts"],"description":"Changes the state of a post, for example promoting a draft to scheduled.","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 post"}],"responses":{"200":{"description":"Post updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponseWithWorkspace"}}}},"422":{"description":"Unprocessable Entity - invalid state transition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","required":["state"],"properties":{"state":{"type":"string","description":"Target state, for example scheduled, draft_private or draft_public"}}}}}}},"required":true,"description":"New state"}}}}}
```

Example:

```json
{ "post": { "state": "scheduled" } }
```

{% hint style="info" %}
This is the intended "build as a draft, release later" flow: create with `state: "draft"`, verify with `GET /api/v1/posts/{id}`, then flip to `scheduled`.
{% endhint %}

***

#### Notes

* A post that does not exist returns **422**, not 404. A post in another workspace returns **403**.
* Posts already in the publishing queue cannot be rescheduled, published, or edited — wait for the queue to drain.

#### Related Resources

* [Get Post](https://publer.com/docs/api-reference/posts) — Read a single post back
* [Updating Posts](https://publer.com/docs/posting/update-posts) — Change text and title


# Deleting Posts

Delete posts from your Publer workspace, or remove published posts from the social networks they were published to. These endpoints enforce role-based permissions and state-specific restrictions.

{% hint style="warning" %}

### Warning

If the `post_ids` query parameter is **omitted**, this endpoint will delete **all non-published posts** in the workspace that you have permission to delete. This includes:

* Scheduled posts
* Draft posts
* Auto-scheduled posts
* Recycle posts
* Recurring posts
* Pending posts
* Other unpublished post states

**Published posts are never deleted when `post_ids` is omitted.**

Use this operation with caution, as it performs a bulk deletion.
{% endhint %}

### Requirements

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

### Endpoint

```http
DELETE /api/v1/posts
```

Deletes one or more posts based on the provided IDs. If no `post_ids` are provided, all unpublished posts that you have permission to delete will be removed.

#### Query Parameters

<table data-header-hidden><thead><tr><th width="110.401123046875"></th><th width="84.6837158203125"></th><th width="101.6964111328125"></th><th></th></tr></thead><tbody><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>post_ids</td><td>array</td><td>Yes</td><td>Array of post IDs to delete. If omitted, <strong>all unpublished posts</strong> (scheduled, drafts, recycle, recurring, auto-scheduled, pending, etc.) that you have permission to delete will be deleted. Published posts are excluded.</td></tr></tbody></table>

### Authorization Rules

You may delete:

* Posts you created
* Posts in workspaces you own
* Posts in workspaces where you have **post action** access
* Private drafts: only their creator can delete

Restrictions:

* Published posts requiring approval: restricted roles (e.g. editors) cannot delete
* Queued posts (except reminders): cannot be deleted
* Pending-state deletions trigger a notification to the creator before removal

## Delete Multiple Posts

> Deletes one or multiple posts from the workspace specifying exact post IDs. Authorization rules apply to ensure users can only delete posts they have permission to delete.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Posts","description":"Endpoints for managing social media posts"}],"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":{"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":{"/posts":{"delete":{"summary":"Delete Multiple Posts","description":"Deletes one or multiple posts from the workspace specifying exact post IDs. Authorization rules apply to ensure users can only delete posts they have permission to delete.","tags":["Posts"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace containing the posts","required":true},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"name":"post_ids","in":"query","description":"Array of post IDs to delete. Can include both MongoDB ObjectIDs and PostgreSQL IDs.","required":true}],"responses":{"200":{"description":"Posts deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{"deleted_ids":{"type":"array","description":"Array of IDs of successfully deleted posts","items":{"type":"string"}}}}}}},"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"}}}}}}}}}
```

### Delete a Published Post

Remove a published post from the social network it was published to. The post stays in Publer, in the `published_deleted` state, so its history and analytics remain available.

#### Requirements

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

The API key's user must be the post's creator, the workspace owner, or a member with post action access.

#### Endpoint

```http
DELETE /api/v1/posts/{id}/destroy_single
```

#### Parameters

| Parameter | In   | Type   | Required | Description                        |
| --------- | ---- | ------ | -------- | ---------------------------------- |
| id        | path | string | Yes      | ID of the published post to delete |

#### Response

The deletion runs in the background. The endpoint returns a job ID straight away:

```json
{ "job_id": "6720f1c2a4b3e9001c8d1234" }
```

#### Limitations

Some social networks restrict post deletion through their API:

{% hint style="danger" %}
**TikTok: Not supported**&#x20;

TikTok does not allow deleting videos outside the TikTok app. Delete the video in the TikTok app.
{% endhint %}

{% hint style="warning" %}
**Instagram: Partially supported**&#x20;

Supported only for accounts connected through Facebook. Not available for accounts connected with Instagram Login. Delete these posts in the Instagram app.
{% endhint %}

#### Notes

* Only use this endpoint on **published** posts. To delete scheduled, draft or other unpublished posts, use `DELETE /api/v1/posts` with `post_ids`.
* If the post was already removed on the network, it is still marked `published_deleted` and no error is returned.
* Calling it on a post that is already `published_deleted` does nothing and returns no error.
* Editors cannot delete posts that were published through an approval workflow (`403`).

### Related Resources

* [List Posts API](https://publer.com/docs/api-reference/posts) - Retrieve and filter posts
* [Update Posts API](https://publer.com/docs/posting/update-posts) - Modify existing posts


# Charts

The Analytics section provide access to social media analytics data for connected accounts in your workspace. These endpoints allow you to retrieve available charts and their corresponding data for various social media platforms.

The Charts endpoints let you:

* Discover which analytics charts are available (and their IDs).
* Fetch time‑series and comparative data for selected charts.

Use the returned `id` values from “List Charts” with “Get Chart Data” to build dashboards and reports.

### Requirements

**Authentication:** Bearer API token\
**Scope:** `analytics`\
**Headers:**

* `Authorization: Bearer-API YOUR_API_KEY`
* `Publer-Workspace-Id: YOUR_WORKSPACE_ID`&#x20;

### Endpoints

### 1. List Charts

Retrieve chart definitions.

```http
GET /api/v1/analytics/charts
```

#### Description

Returns a list of charts grouped by category (growth, insights, demographics). Different platforms expose different charts.

#### Query Parameters

<table data-full-width="true"><thead><tr><th width="139.78363037109375">Parameter</th><th width="83.0086669921875">Type</th><th width="115.09356689453125">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_type</code></td><td>string</td><td>No</td><td>Filter charts for a specific account type.</td></tr></tbody></table>

Account type values:\
`ig_business`, `fb_page`, `twitter`, `linkedin`, `youtube`, `tiktok`, `google`, `pin_business`, `pin_personal`, `threads`, `wordpress_oauth`, `in_profile`, `in_page`, `mastodon`, `bluesky`

## Get Available Analytics Charts

> Retrieves a list of available analytics charts filtered by account type and chart type. Charts include growth metrics (followers, connections), insights (engagement, reach), and demographics (countries, ages).

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/analytics/charts":{"get":{"summary":"Get Available Analytics Charts","description":"Retrieves a list of available analytics charts filtered by account type and chart type. Charts include growth metrics (followers, connections), insights (engagement, reach), and demographics (countries, ages).","tags":["Analytics"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve charts from","required":true},{"schema":{"type":"string","enum":["ig_business","fb_page","twitter","linkedin","youtube","tiktok","google","pin_business","pin_personal","threads","wordpress_oauth","in_profile","in_page","mastodon","bluesky"]},"name":"account_type","in":"query","description":"Social media platform type to filter charts for (e.g., 'ig_business', 'fb_page', 'twitter', 'linkedin', 'youtube', 'tiktok', 'google', 'pin_business')","required":false}],"responses":{"200":{"description":"List of available charts with metadata","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the chart"},"title":{"type":"string","description":"Display title of the chart"},"group_id":{"type":"string","description":"Group category (growth, insights, demographics)"},"tooltip":{"type":"string","description":"Tooltip text explaining the chart"},"type":{"type":"string","description":"Chart visualization type","enum":["vertical","horizontal","side_by_side"]},"last_value":{"type":"boolean","description":"Whether to show the most recent value"},"show_percentage":{"type":"boolean","description":"Whether values should be displayed as percentages"}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

#### Field Descriptions

<table data-full-width="true"><thead><tr><th width="214.21484375">Field</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>Unique chart identifier (use in <code>chart_ids[]</code>).</td></tr><tr><td><code>title</code></td><td>Display title.</td></tr><tr><td><code>group_id</code></td><td>Chart group: <code>growth</code>, <code>insights</code>, <code>demographics</code>.</td></tr><tr><td><code>tooltip</code></td><td>Short explanatory text.</td></tr><tr><td><code>type</code></td><td>Suggested visualization: <code>vertical</code>, <code>horizontal</code>, <code>side_by_side</code>.</td></tr><tr><td><code>last_value</code></td><td>Show latest value highlight.</td></tr><tr><td><code>show_percentage</code></td><td>Indicates client should render as percentage.</td></tr></tbody></table>

### 2. Get Chart Data

Fetch data for one or more charts by ID. Returns current and previous period blocks for comparison.

```http
GET /api/v1/analytics/:account_id/chart_data
```

#### Description

Supports growth metrics, post insights, and demographics. Chart IDs must come from the “List Charts” endpoint.

For better performance and lower latency, request chart data in small logical batches of related `chart_ids` (e.g., growth first, then insights, then demographics) instead of sending every available chart ID in one call.

#### URL Parameters

<table data-full-width="true"><thead><tr><th width="124.3582763671875">Parameter</th><th width="83.41064453125">Type</th><th width="108.86383056640625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>When provided, returns data for that account only; when omitted, returns aggregate across the workspace (where supported).</td></tr></tbody></table>

#### Query Parameters

<table data-full-width="true"><thead><tr><th width="129.170654296875">Parameter</th><th width="184.84124755859375">Type</th><th width="146.0906982421875">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>chart_ids[]</code></td><td>string[]</td><td>Yes</td><td>One or more chart IDs from <code>/api/v1/analytics/charts</code>. Example: <code>chart_ids[]=followers&#x26;chart_ids[]=post_engagement</code></td></tr><tr><td><code>from</code></td><td>string (YYYY-MM-DD)</td><td>Yes if <code>to</code> used</td><td>Start date (inclusive). Defaults to workspace range if omitted with <code>to</code>.</td></tr><tr><td><code>to</code></td><td>string (YYYY-MM-DD)</td><td>Yes if <code>from</code> used</td><td>End date (inclusive). Defaults to workspace range if omitted with <code>from</code>.</td></tr></tbody></table>

## Get Analytics Chart Data

> Retrieves analytics data for specific charts by their IDs. Returns current and previous period data for comparison. Supports growth metrics, post insights, and demographic data.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/analytics/chart_data":{"get":{"summary":"Get Analytics Chart Data","description":"Retrieves analytics data for specific charts by their IDs. Returns current and previous period data for comparison. Supports growth metrics, post insights, and demographic data.","tags":["Analytics"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve data from","required":true},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"name":"chart_ids","in":"query","description":"Array of chart IDs to retrieve data for. Use chart IDs from the /analytics/charts endpoint","required":true},{"schema":{"type":"string"},"name":"account_id","in":"path","description":"Optional account ID to filter analytics data for a specific social media account","required":false},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Start date for analytics data (YYYY-MM-DD format)","required":false},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"End date for analytics data (YYYY-MM-DD format)","required":false}],"responses":{"200":{"description":"Analytics chart data with current and previous period values","content":{"application/json":{"schema":{"type":"object","properties":{"current":{"type":"object","description":"Current period data for requested charts","additionalProperties":{"type":"object","description":"Chart-specific data structure with metrics and values"}},"previous":{"type":"object","description":"Previous period data for comparison","additionalProperties":{"type":"object","description":"Previous period chart data for trend analysis"}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

#### Structure

<table data-full-width="true"><thead><tr><th width="153.740966796875">Key</th><th>Description</th></tr></thead><tbody><tr><td><code>current</code></td><td>Object keyed by chart ID with current period series.</td></tr><tr><td><code>previous</code></td><td>Matching structure for the previous (comparison) period.</td></tr><tr><td><code>data[]</code></td><td>Array of <code>{ date, value }</code> points.</td></tr><tr><td><code>last_value</code></td><td>Latest cumulative snapshot (growth charts).</td></tr><tr><td><code>total</code></td><td>Period aggregate sum (engagement / sum charts).</td></tr></tbody></table>

### Usage Notes

* Always fetch chart IDs from `/api/v1/analytics/charts`; charts can change over time.
* If `account_id` is omitted, results are aggregated across accessible accounts (where the metric supports aggregation).
* The comparison (previous) window automatically matches the current window length.
* Ensure `from` ≤ `to` when providing dates.
* Not all charts are available for every `account_type`.
* Apply client‑side caching for chart definitions to reduce requests.

### Related Resources

* [Accounts API](https://publer.com/docs/api-reference/accounts) - Manage social media accounts
* [Hashtag Analysis](https://publer.com/docs/analytics/hashtag-analysis) — Track hashtag performance
* [Best Times](https://publer.com/docs/analytics/best-times-to-post) — Suggested posting time slots
* [Members](https://publer.com/docs/analytics/members) — Member (team) analytics


# Post Insights

The Post Insights endpoint retrieves detailed performance analytics for published posts, with powerful filtering, sorting, and pagination. Use it to build per-post dashboards, leaderboards, and competitor comparisons.

### Requirements

**Authentication:** Bearer API token\
**Scope:** `analytics`\
**Headers:**

* `Authorization: Bearer-API YOUR_API_KEY`
* `Publer-Workspace-Id: YOUR_WORKSPACE_ID`

### Endpoint

#### Get Post Insights

Retrieve comprehensive analytics for posts within a workspace or a specific social account. Supports competitor analysis, text search, labels, post types, date ranges, member filtering, and multiple sort options.

```
GET /api/v1/analytics/:account_id/post_insights
```

#### Description

* When `:account_id` is a specific social account ID, results are limited to that account.
* When `:account_id` is omitted, results include all accessible accounts.
* Enable competitor mode with `competitors=true` and optionally narrow to a single competitor via `competitor_id` , see [Competitor Analysis](https://publer.com/docs/analytics/competitor-analysis) how to fetch competitor ids.

#### URL Parameter

<table><thead><tr><th width="124.36590576171875">Parameter</th><th width="78.0074462890625">Type</th><th width="109.900634765625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Social account ID to scope results.<br>When used with competitors: true, it will filter all competitor posts related to this account.</td></tr></tbody></table>

#### Query Parameters

<table><thead><tr><th width="136.32025146484375">Parameter</th><th width="177.43426513671875">Type</th><th width="106.465576171875">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>competitors</code></td><td>string</td><td>No</td><td>For competitor insights. <code>true</code> or <code>false</code> (default <code>false</code>).</td></tr><tr><td><code>competitor_id</code></td><td>string</td><td>No</td><td>Competitor account ID to analyze (requires <code>competitors=true</code>).</td></tr><tr><td><code>from</code></td><td>date (YYYY-MM-DD)</td><td>Yes</td><td>Start date (inclusive). Filters posts scheduled/published on or after this date.</td></tr><tr><td><code>to</code></td><td>date (YYYY-MM-DD)</td><td>Yes</td><td>End date (inclusive). Filters posts scheduled/published on or before this date.</td></tr><tr><td><code>query</code></td><td>string</td><td>No</td><td>Case-insensitive search across post text, title, link description, video title.</td></tr><tr><td><code>postType</code></td><td>string</td><td>No</td><td>Filter by post type. One of: <code>poll</code>, <code>status</code>, <code>link</code>, <code>carousel</code>, <code>photo</code>, <code>gif</code>, <code>video</code>, <code>reel</code>, <code>document</code>, <code>short</code>, <code>article</code>, <code>story</code>.</td></tr><tr><td><code>sort_by</code></td><td>string</td><td>No</td><td>Sort field. One of: <code>scheduled_at</code>, <code>reach</code>, <code>engagement</code>, <code>engagement_rate</code>, <code>click_through_rate</code>, <code>reach_rate</code>, <code>postType</code>, <code>likes</code>, <code>video_views</code>, <code>comments</code>, <code>shares</code>, <code>saves</code>, <code>link_clicks</code>, <code>post_clicks</code>. Default <code>scheduled_at</code>.</td></tr><tr><td><code>sort_type</code></td><td>string</td><td>No</td><td>Sort direction. <code>ASC</code> or <code>DESC</code>. Default <code>DESC</code>.</td></tr><tr><td><code>page</code></td><td>integer</td><td>No</td><td>Page number (0-based). Each page contains 10 posts. Default <code>0</code>.</td></tr><tr><td><code>member_id</code></td><td>string</td><td>No</td><td>Filter by the workspace <a href="https://publer.com/docs/analytics/members">member</a> who created the post.</td></tr></tbody></table>

## Get Post Post Insights

> Retrieves comprehensive analytics data for published posts with advanced filtering, sorting, and pagination capabilities.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/analytics/{account_id}/post_insights":{"get":{"summary":"Get Post Post Insights","description":"Retrieves comprehensive analytics data for published posts with advanced filtering, sorting, and pagination capabilities.","tags":["Analytics"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve insights from","required":true},{"schema":{"type":"string","default":"false","enum":["true","false"]},"name":"competitors","in":"query","description":"Include competitor analysis data. Set to 'true' to retrieve competitor post insights","required":false},{"schema":{"type":"string"},"name":"account_id","in":"path","description":"Filter posts for a specific social media account ID. If omitted, includes all workspace accounts. Used with competitors parameter for competitor-specific analysis","required":false},{"schema":{"type":"string"},"name":"competitor_id","in":"query","description":"Specific competitor account ID to analyze when competitors=true. Works in conjunction with account_id parameter","required":false},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Start date for post insights data range (YYYY-MM-DD format). Filters posts scheduled on or after this date","required":true},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"End date for post insights data range (YYYY-MM-DD format). Filters posts scheduled on or before this date","required":true},{"schema":{"type":"string"},"name":"query","in":"query","description":"Search query to filter posts by text content, title, link description, or video title using case-insensitive matching","required":false},{"schema":{"type":"string","enum":["poll","status","link","carousel","photo","git","video","reel","document","short","article","story"]},"name":"postType","in":"query","description":"Filter posts by specific post type (e.g., image, video, link, text, carousel)","required":false},{"schema":{"type":"string","default":"scheduled_at","enum":["scheduled_at","reach","engagement","engagement_rate","click_through_rate","reach_rate","postType","likes","video_views","comments","shares","saves","link_clicks","post_clicks"]},"name":"sort_by","in":"query","description":"Field to sort results by. Supports various engagement and performance metrics","required":false},{"schema":{"type":"string","default":"DESC","enum":["ASC","DESC"]},"name":"sort_type","in":"query","description":"Sort order direction","required":false},{"schema":{"type":"integer","default":0,"minimum":0},"name":"page","in":"query","description":"Page number for pagination (0-based indexing). Each page contains 10 posts","required":false},{"schema":{"type":"string"},"name":"member_id","in":"query","description":"Filter posts by specific workspace member/user ID who created or manages the posts","required":false}],"responses":{"200":{"description":"Post insights data with analytics metrics and pagination information","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","description":"Array of posts with detailed analytics data","items":{"type":"object","properties":{"id":{"type":"integer","format":"int64","minimum":1,"description":"Publer's unique identifier for the post (positive 64-bit integer). This is not the social network's post ID."},"text":{"type":"string","description":"Post content text"},"title":{"type":"string","description":"Post title"},"scheduled_at":{"type":"string","format":"date-time","description":"Date and time when post was scheduled/published"},"post_type":{"type":"string","description":"Type of post (image, video, link, etc.)"},"account_id":{"type":"string","description":"ID of the social media account"},"details":{"type":"object","properties":{"labels":{"type":"array","description":"Labels/tags associated with the post","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}}}}},"analytics":{"type":"object","description":"Comprehensive analytics data for the post","properties":{"reach":{"type":"integer","description":"Number of unique users who saw the post"},"engagement":{"type":"integer","description":"Total engagement count (likes + comments + shares + saves + clicks)"},"engagement_rate":{"type":"number","format":"float","description":"Engagement rate as percentage"},"likes":{"type":"integer","description":"Number of likes/reactions"},"comments":{"type":"integer","description":"Number of comments"},"shares":{"type":"integer","description":"Number of shares/reposts"},"saves":{"type":"integer","description":"Number of saves/bookmarks"},"video_views":{"type":"integer","description":"Number of video views (for video posts)"},"link_clicks":{"type":"integer","description":"Number of link clicks"},"post_clicks":{"type":"integer","description":"Number of post profile clicks"},"click_through_rate":{"type":"number","format":"float","description":"Click-through rate percentage"},"reach_rate":{"type":"number","format":"float","description":"Reach rate percentage"}}}}}},"total":{"type":"integer","description":"Total number of posts matching the filter criteria (for pagination)"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied - requires analytics access or paying subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Notes

* Data sources: Metrics come from the official social network APIs. Insights auto‑sync periodically; you can manually sync in the UI for fresher data.
* Post vs aggregate reach: Post Insights show reach per post. Charts/overview may show total reach across all posts for a time window, so numbers won’t necessarily sum 1:1.
* Engagement formula: Typically the sum of likes/reactions + comments + shares + saves + post clicks (platform‑dependent).
  * Engagement Rate (%) ≈ `engagement / reach * 100`
  * Click‑Through Rate (%) ≈ `link_clicks / reach * 100`
  * Reach Rate (%) ≈ `reach / followers * 100` (where available)
* Platform differences: Not all metrics are available for all networks or account types (e.g., LinkedIn Profiles vs Pages).
* Pagination: Use `page` (0‑based). Each page returns 10 posts. Response includes `total` to compute more pages.
* Competitors: Requires `competitors=true`. Use `competitor_id` to focus on a single competitor’s posts; otherwise data may include multiple competitors (if enabled).

### Related Resources

* [Charts](https://publer.com/docs/analytics/charts) — Discover chart IDs and fetch chart data
* [Hashtag Analysis](https://publer.com/docs/analytics/hashtag-analysis) — Track hashtag performance
* [Best Times](https://publer.com/docs/analytics/best-times-to-post) — Suggested posting time slots
* [Members](https://publer.com/docs/analytics/members) — Member (team) analytics


# Hashtag Analysis

The Hashtag Analysis endpoints help you understand how hashtags perform across your workspace or a specific account. Use them to rank, filter, and retrieve top posts for any hashtag.

### Requirements

**Authentication:** Bearer API token\
**Scope:** `analytics`\
**Headers:**

* `Authorization: Bearer-API YOUR_API_KEY`
* `Publer-Workspace-Id: YOUR_WORKSPACE_ID`

### Endpoints

### 1. Get Hashtag Insights

Retrieve aggregated analytics for hashtags used in published posts. Supports filtering by date range, account, member, and search, plus sorting and pagination.

```http
GET /api/v1/analytics/:account_id/hashtag_insights
```

#### Description

Returns a paginated list of hashtags with totals for posts, reach, engagement, and related metrics, plus up to 3 recent posts per hashtag and a hashtag performance score.

#### URL Parameter

<table><thead><tr><th width="124.36590576171875">Parameter</th><th width="94.78668212890625">Type</th><th width="109.900634765625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Limit to a single social account. Omit for all workspace accounts.</td></tr></tbody></table>

#### Query Parameters

<table><thead><tr><th width="121.57464599609375">Param</th><th width="180.772705078125">Type</th><th width="108.6373291015625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>from</code></td><td>date (YYYY-MM-DD)</td><td>No</td><td>Start date (inclusive).</td></tr><tr><td><code>to</code></td><td>date (YYYY-MM-DD)</td><td>No</td><td>End date (inclusive).</td></tr><tr><td><code>sort_by</code></td><td>string</td><td>No</td><td>One of: <code>posts</code>, <code>reach</code>, <code>likes</code>, <code>comments</code>, <code>shares</code>, <code>video_views</code>. Default <code>posts</code>.</td></tr><tr><td><code>sort_type</code></td><td>string</td><td>No</td><td><code>ASC</code> or <code>DESC</code>. Default <code>DESC</code>.</td></tr><tr><td><code>page</code></td><td>integer</td><td>No</td><td>Page number (0‑based). Each page contains 10 hashtags. Default <code>0</code>.</td></tr><tr><td><code>query</code></td><td>string</td><td>No</td><td>Case‑insensitive filter by hashtag text.</td></tr><tr><td><code>member_id</code></td><td>string</td><td>No</td><td>Filter hashtags by posts authored/managed by a <a href="https://publer.com/docs/analytics/members">member</a>.</td></tr></tbody></table>

## Get Hashtag Insights

> Retrieves comprehensive analytics data for hashtags used in published posts. Provides metrics like reach, engagement, likes, comments, shares, and video views for each hashtag, along with recent posts using each hashtag and hashtag performance scores.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/analytics/{account_id}/hashtag_insights":{"get":{"summary":"Get Hashtag Insights","description":"Retrieves comprehensive analytics data for hashtags used in published posts. Provides metrics like reach, engagement, likes, comments, shares, and video views for each hashtag, along with recent posts using each hashtag and hashtag performance scores.","tags":["Analytics"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve insights from","required":true},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Start date for hashtag insights data range (YYYY-MM-DD format). Filters posts scheduled on or after this date","required":false},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"End date for hashtag insights data range (YYYY-MM-DD format). Filters posts scheduled on or before this date","required":false},{"schema":{"type":"string","enum":["posts","reach","likes","comments","shares","video_views"]},"name":"sort_by","in":"query","description":"Field to sort hashtag results by. Supports various engagement and performance metrics","required":false},{"schema":{"type":"string","enum":["ASC","DESC"]},"name":"sort_type","in":"query","description":"Sort order direction","required":false},{"schema":{"type":"string"},"name":"account_id","in":"path","description":"Filter hashtags for a specific social media account ID. If omitted, includes all workspace accounts","required":false},{"schema":{"type":"integer","minimum":0},"name":"page","in":"query","description":"Page number for pagination (0-based indexing). Each page contains 10 hashtags","required":false},{"schema":{"type":"string"},"name":"query","in":"query","description":"Search query to filter hashtags by name using case-insensitive matching","required":false},{"schema":{"type":"string"},"name":"member_id","in":"query","description":"Filter hashtags by specific workspace member ID","required":false}],"responses":{"200":{"description":"Hashtag insights data with analytics metrics and pagination information","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","description":"Array of hashtags with detailed analytics data","items":{"type":"object","properties":{"hashtag":{"type":"string","description":"The hashtag text (without # symbol)"},"posts":{"type":"integer","description":"Number of posts using this hashtag"},"recent_posts":{"type":"array","description":"Array of recent post objects using this hashtag (up to 3 posts)","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the post"},"text":{"type":"string","description":"Post content text"},"scheduled_at":{"type":"string","format":"date-time","description":"Date and time when post was scheduled/published"}}}},"reach":{"type":"integer","description":"Total reach across all posts using this hashtag"},"likes":{"type":"integer","description":"Total likes across all posts using this hashtag"},"comments":{"type":"integer","description":"Total comments across all posts using this hashtag"},"shares":{"type":"integer","description":"Total shares across all posts using this hashtag"},"engagement":{"type":"integer","description":"Total engagement (likes + comments + shares) across all posts using this hashtag"},"video_views":{"type":"integer","description":"Total video views across all video posts using this hashtag"},"link_clicks":{"type":"integer","description":"Total link clicks across all posts using this hashtag"},"post_clicks":{"type":"integer","description":"Total post clicks across all posts using this hashtag"},"saves":{"type":"integer","description":"Total saves across all posts using this hashtag"},"hashtag_score":{"type":"number","format":"float","description":"Performance score of the hashtag as percentage relative to overall post engagement"}}}},"total":{"type":"integer","description":"Total number of hashtags matching the filter criteria (for pagination)"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied - requires analytics access or paying subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

Fields:

* `records[]`: One row per hashtag.
  * `hashtag`: Text without `#`.
  * `posts`: Number of posts using it.
  * `recent_posts[]`: Up to 3 recent posts `{ id, text, scheduled_at }`.
  * Totals: `reach`, `likes`, `comments`, `shares`, `engagement`, `video_views`, `link_clicks`, `post_clicks`, `saves`.
  * `hashtag_score` (%): Relative performance = (total hashtag engagement / total post engagement) × 100.
* `total`: Total hashtags matching filters.

### 2. Get Hashtag Performing Posts

Retrieve up to 6 top posts that used a specific hashtag, with full per‑post analytics.

```http
GET /api/v1/analytics/hashtag_performing_posts
```

#### URL Parameter

<table><thead><tr><th width="124.36590576171875">Parameter</th><th width="78.0074462890625">Type</th><th width="109.900634765625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Limit to a single social account. Omit for all workspace accounts.</td></tr></tbody></table>

#### Query Parameters

<table><thead><tr><th width="131.52691650390625">Param</th><th width="178.8773193359375">Type</th><th width="110.1763916015625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>hashtag</code></td><td>string</td><td>Yes</td><td>Hashtag to analyze (with <code>#</code>).</td></tr><tr><td><code>from</code></td><td>date (YYYY-MM-DD)</td><td>No</td><td>Start date (inclusive).</td></tr><tr><td><code>to</code></td><td>date (YYYY-MM-DD)</td><td>No</td><td>End date (inclusive).</td></tr><tr><td><code>sort_by</code></td><td>string</td><td>No</td><td>One of: <code>scheduled_at</code>, <code>reach</code>, <code>engagement</code>, <code>engagement_rate</code>, <code>click_through_rate</code>, <code>reach_rate</code>, <code>postType</code>, <code>likes</code>, <code>video_views</code>, <code>comments</code>, <code>shares</code>, <code>saves</code>, <code>link_clicks</code>, <code>post_clicks</code>. Default <code>scheduled_at</code>.</td></tr><tr><td><code>sort_type</code></td><td>string</td><td>No</td><td><code>ASC</code> or <code>DESC</code>. Default <code>DESC</code>.</td></tr><tr><td><code>member_id</code></td><td>string</td><td>No</td><td>Filter by post author/manager.</td></tr><tr><td><code>query</code></td><td>string</td><td>No</td><td>Text search in post text/title/link info.</td></tr></tbody></table>

## Get Hashtag Performing Posts

> Retrieves the top performing posts for a specific hashtag. Returns up to 6 posts that used the hashtag, with comprehensive analytics metrics including engagement, reach, likes, comments, shares, and video views.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/analytics/{account_id}/hashtag_performing_posts":{"get":{"summary":"Get Hashtag Performing Posts","description":"Retrieves the top performing posts for a specific hashtag. Returns up to 6 posts that used the hashtag, with comprehensive analytics metrics including engagement, reach, likes, comments, shares, and video views.","tags":["Analytics"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve posts from","required":true},{"schema":{"type":"string"},"name":"hashtag","in":"query","description":"The hashtag to retrieve performing posts for (with # symbol). This parameter is required to filter posts by the specific hashtag","required":true},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Start date for posts data range (YYYY-MM-DD format). Filters posts scheduled on or after this date","required":false},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"End date for posts data range (YYYY-MM-DD format). Filters posts scheduled on or before this date","required":false},{"schema":{"type":"string","enum":["scheduled_at","reach","engagement","engagement_rate","click_through_rate","reach_rate","postType","likes","video_views","comments","shares","saves","link_clicks","post_clicks"]},"name":"sort_by","in":"query","description":"Field to sort post results by. Supports various engagement and performance metrics","required":false},{"schema":{"type":"string","enum":["ASC","DESC"]},"name":"sort_type","in":"query","description":"Sort order direction","required":false},{"schema":{"type":"string"},"name":"account_id","in":"path","description":"Filter posts for a specific social media account ID. If omitted, includes all workspace accounts","required":false},{"schema":{"type":"string"},"name":"member_id","in":"query","description":"Filter posts by specific workspace member ID","required":false},{"schema":{"type":"string"},"name":"query","in":"query","description":"Search query to filter posts by content text, title, or link information using case-insensitive matching","required":false}],"responses":{"200":{"description":"Hashtag performing posts data with analytics metrics","content":{"application/json":{"schema":{"type":"array","description":"Array of top performing posts using the specified hashtag (up to 6 posts)","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the post"},"text":{"type":"string","description":"Post content text"},"title":{"type":"string","description":"Post title if available"},"scheduled_at":{"type":"string","format":"date-time","description":"Date and time when post was scheduled/published"},"account_id":{"type":"string","description":"ID of the social media account that published this post"},"hashtags":{"type":"array","description":"Array of hashtags used in this post","items":{"type":"string"}},"analytics":{"type":"object","description":"Comprehensive analytics data for the post","properties":{"reach":{"type":"integer","description":"Total reach of the post"},"likes":{"type":"integer","description":"Number of likes received"},"comments":{"type":"integer","description":"Number of comments received"},"shares":{"type":"integer","description":"Number of shares/reposts"},"engagement":{"type":"integer","description":"Total engagement (likes + comments + shares)"},"engagement_rate":{"type":"number","format":"float","description":"Engagement rate as percentage"},"video_views":{"type":"integer","description":"Number of video views (for video posts)"},"link_clicks":{"type":"integer","description":"Number of link clicks"},"post_clicks":{"type":"integer","description":"Number of post clicks"},"saves":{"type":"integer","description":"Number of saves/bookmarks"}}},"details":{"type":"object","description":"Additional post details and metadata","properties":{"labels":{"type":"array","description":"Labels assigned to this post","items":{"type":"object","properties":{"id":{"type":"string","description":"Label ID"},"name":{"type":"string","description":"Label name"}}}}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied - requires analytics access or paying subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

### Notes

* Time range: Defaults to the workspace’s default range when not provided. “Last X Days” excludes partial data for the current day.
* Sorting & ranking: Use `sort_by` and `sort_type` to rank by Posts, Reach, Reactions (likes), Comments, Shares, or Video Views. UI columns can be reordered client‑side.
* Data freshness: Insights auto‑refresh every \~24h; you can manually sync in the UI for real‑time updates.
* Platform differences: Metrics availability varies by social network/account type; missing fields may be `null` or omitted.
* Pagination (insights list): `page` is 0‑based and returns 10 hashtags per page.
* Hashtag score: `hashtag_score (%) = (total hashtag engagement / total post engagement) × 100`.

### Related Resources

* [Post Insights](https://publer.com/docs/analytics/post-insights) — Per‑post performance analytics
* [Charts](https://publer.com/docs/analytics/charts) — Discover chart IDs and fetch chart data
* [Best Times](https://publer.com/docs/analytics/best-times-to-post) — Suggested posting time slots
* [Members](https://publer.com/docs/analytics/members) — Member (team) analytics


# Best Times to Post

The Best Times to Post endpoint returns a heatmap of optimal posting times for a specific account, based on historical performance. Use it to power schedule suggestions, calendar overlays, and autofill routines.

### Requirements

**Authentication:** Bearer API token\
**Scope:** `analytics`\
**Headers:**

* `Authorization: Bearer-API YOUR_API_KEY`
* `Publer-Workspace-Id: YOUR_WORKSPACE_ID`

### Endpoint <a href="#endpoint" id="endpoint"></a>

#### Get Best Times to Post

```http
GET /api/v1/analytics/:account_id/best_times
```

#### Description

Retrieves a day/hour heatmap of posting performance tailored to the audience of the specified account. Optionally include competitor data and restrict to a custom date range.

#### URL Parameter

<table><thead><tr><th width="119.40118408203125">Parameter</th><th width="82.78936767578125">Type</th><th width="106.99005126953125">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Social account to analyze. Omit for all workspace accounts.</td></tr></tbody></table>

#### Query Parameters

<table><thead><tr><th width="141.52471923828125">Parameter</th><th width="179.1859130859375">Type</th><th width="107.7215576171875">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>competitors</code></td><td>string</td><td>No</td><td>For competitor data. <code>true</code> or <code>false</code> (default <code>false</code>).</td></tr><tr><td><code>competitor_id</code></td><td>string</td><td>No</td><td>Analyze a specific competitor (requires <code>competitors=true</code>).</td></tr><tr><td><code>from</code></td><td>date (YYYY-MM-DD)</td><td>Yes</td><td>Start date (inclusive).</td></tr><tr><td><code>to</code></td><td>date (YYYY-MM-DD)</td><td>Yes</td><td>End date (inclusive).</td></tr></tbody></table>

## Get Best Times to Post for Account

> Retrieves the optimal posting times for a specific social media account based on historical analytics data. Returns a heatmap of posting performance across days of the week and hours of the day, tailored to the specified account's audience engagement patterns.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/analytics/{account_id}/best_times":{"get":{"summary":"Get Best Times to Post for Account","description":"Retrieves the optimal posting times for a specific social media account based on historical analytics data. Returns a heatmap of posting performance across days of the week and hours of the day, tailored to the specified account's audience engagement patterns.","tags":["Analytics"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve best times from","required":true},{"schema":{"type":"string"},"name":"account_id","in":"path","description":"Social media account ID to analyze posting times for. When provided, analysis is specific to this account's performance data","required":false},{"schema":{"type":"string","enum":["true","false"]},"name":"competitors","in":"query","description":"Include competitor data in best times analysis. Set to 'true' to analyze competitor posting patterns","required":false},{"schema":{"type":"string"},"name":"competitor_id","in":"query","description":"Specific competitor ID to analyze. Used in conjunction with competitors=true parameter","required":false},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Start date for analytics data range (YYYY-MM-DD format). Filters data from this date onwards","required":true},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"End date for analytics data range (YYYY-MM-DD format). Filters data up to this date","required":true}],"responses":{"200":{"description":"Best times to post data organized by day of the week and hour for the specific account","content":{"application/json":{"schema":{"type":"object","description":"Heatmap data showing optimal posting times with scores for each hour of each day, specific to the account's audience","additionalProperties":{"type":"array","description":"Array of 24 hourly scores (0-23) for each day of the week","items":{"type":"number","description":"Engagement score for this hour (higher = better posting time)"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied - requires analytics access or paying subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

#### Structure

* Object keyed by day of week (`Monday`..`Sunday`).
* Each day maps to an array of 24 numbers (hour indexes `0..23`).
* Each number is a relative engagement/performance score (higher = better posting time). Use for ranking and heatmap intensity; not a percentage.

### Notes

* Default window: If no dates are provided, best times are computed from recent history (commonly last 7 days).
* Workspace/account settings (e.g., “day starts at” and “week starts on”) influence the visualization in the app; the API always returns 24 hourly slots per day.
* Heatmap scores are relative within the dataset; normalize in your UI if combining multiple accounts.
* Competitor view requires `competitors=true`; use `competitor_id` to focus on a single competitor.
* Data refreshes automatically (about every 24 hours). Use Sync Insights in the UI for on‑demand refresh.

### Related Resources

* [Charts](https://publer.com/docs/analytics/charts) — Discover chart IDs and fetch chart data
* [Post Insights](https://publer.com/docs/analytics/post-insights) — Per‑post performance analytics
* [Hashtag Analysis](https://publer.com/docs/analytics/hashtag-analysis) — Hashtag performance
* [Members](https://publer.com/docs/analytics/members) — Workspace member analytics


# Members

The Members endpoint returns posting activity and engagement metrics per workspace member, optionally scoped to a single account and time range. Use it to build leaderboards, performance reviews, and workload reports.

### Requirements

**Authentication:** Bearer API token\
**Scope:** `analytics`\
**Headers:**

* `Authorization: Bearer-API YOUR_API_KEY`
* `Publer-Workspace-Id: YOUR_WORKSPACE_ID`

### Endpoint <a href="#endpoint" id="endpoint"></a>

#### Get Members Analytics

```http
GET /api/v1/analytics/members
```

#### Description

Retrieves analytics for each workspace member within a required date range. Optionally filter to a specific social account.

#### Query Parameters

<table><thead><tr><th width="108.6776123046875">Param</th><th width="175.787353515625">Type</th><th width="108.5699462890625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>from</code></td><td>date (YYYY-MM-DD)</td><td>Yes</td><td>Start date (inclusive).</td></tr><tr><td><code>to</code></td><td>date (YYYY-MM-DD)</td><td>Yes</td><td>End date (inclusive).</td></tr><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Restrict analytics to one social account. Omit for all workspace accounts.</td></tr></tbody></table>

## Get Analytics Members Data

> Retrieves analytics data for workspace members showing their posting activity and engagement metrics.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/analytics/members":{"get":{"summary":"Get Analytics Members Data","description":"Retrieves analytics data for workspace members showing their posting activity and engagement metrics.","tags":["Analytics"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve members from","required":true},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Start date for analytics data range (YYYY-MM-DD format). Filters data from this date onwards","required":true},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"End date for analytics data range (YYYY-MM-DD format). Filters data up to this date","required":true},{"schema":{"type":"string"},"name":"account_id","in":"query","description":"Optional account ID to filter analytics data for a specific social media account","required":false}],"responses":{"200":{"description":"Members analytics data with performance metrics","content":{"application/json":{"schema":{"type":"array","description":"List of members with their analytics data","items":{"type":"object","properties":{"engagements":{"type":"integer","description":"Total engagements (likes + comments + shares + post clicks) for the member"},"posts":{"type":"integer","description":"Total number of posts created by the member"},"reach":{"type":"integer","description":"Total reach for the member's posts (only included for supported account types)"},"account_ids":{"type":"array","description":"List of account IDs the member posted to","items":{"type":"string"}},"user":{"type":"object","description":"User information for the member","properties":{"id":{"type":"string","description":"User ID"},"name":{"type":"string","description":"User's display name"},"picture":{"type":"string","description":"URL to user's profile picture"}}}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied - requires analytics access or paying subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

Fields:

* `engagements`: Total engagements = likes + comments + shares + post clicks (platform-dependent).
* `posts`: Number of posts created by the member in the range.
* `reach`: Sum of post reach where supported by the platform/account type (may be omitted for unsupported types).
* `account_ids[]`: Accounts the member posted to.
* `user`: Member info `{ id, name, picture }`.

### Notes

* Date range is required; ensure `from` ≤ `to`.
* If `account_id` is omitted, metrics aggregate across all accessible accounts in the workspace.
* `reach` may be missing for networks that don’t expose member-level reach. Handle absent fields gracefully.
* Insights refresh automatically (about every 24 hours). Use “Sync Insights” in the UI to update on demand.

### Related Resources

* [Charts](https://publer.com/docs/analytics/charts) — Discover chart IDs and fetch chart data
* [Post Insights](https://publer.com/docs/analytics/post-insights) — Per‑post performance analytics
* [Hashtag Analysis](https://publer.com/docs/analytics/hashtag-analysis) — Hashtag performance
* [Best Times](https://publer.com/docs/analytics/best-times-to-post) — Suggested posting time slots


# Competitor Analysis

Use the Competitor Analysis endpoints to list competitor accounts and fetch their high‑level analytics (followers, growth, engagement, reach, and posting mix). Combine with Post Insights and Best Times to build a full competitive benchmarking view.

### Requirements

**Authentication:** Bearer API token\
**Scope:** `analytics`          \
**Headers:**

* `Authorization: Bearer-API YOUR_API_KEY`
* `Publer-Workspace-Id: YOUR_WORKSPACE_ID`

### 1. List Competitors

Retrieve competitor accounts for the workspace or scoped to a specific social account.

```http
GET /api/v1/competitors/:account_id
```

#### Description

* Omit `:account_id` to list all competitors across the workspace.
* Provide `:account_id` to list competitors tied to a single social account.

#### URL Parameter

<table><thead><tr><th width="132.5650634765625">Parameter</th><th width="107.46759033203125">Type</th><th width="138.5596923828125">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Social account ID to scope competitors.</td></tr></tbody></table>

## List Competitors

> Retrieves a list of competitor accounts for the workspace or for a specific social media account.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Competitors","description":"Endpoints for retrieving competitors and analytics"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/competitors/{account_id}":{"get":{"summary":"List Competitors","description":"Retrieves a list of competitor accounts for the workspace or for a specific social media account.","tags":["Competitors"],"parameters":[{"schema":{"type":"string"},"name":"account_id","in":"path","description":"ID of the social media account to retrieve competitors for.","required":false},{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve competitors from","required":true}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","description":"Social media provider (instagram, facebook, twitter, etc.)"},"name":{"type":"string","description":"Display name of the competitor account"},"social_id":{"type":"string","description":"Unique social media ID of the competitor"},"picture":{"type":"string","description":"Profile picture URL of the competitor"},"type":{"type":"string","description":"Type of account (user, page, etc.)"},"competitor_sync_in_queue":{"type":"boolean","description":"Whether competitor sync is currently queued"},"username":{"type":"string","description":"Username of the competitor (available for twitter, instagram, telegram, mastodon)"},"verified":{"type":"boolean","description":"Whether the account is verified (available for twitter, facebook)"}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied or missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}}}}}}}
```

Fields:

* `provider`: Social network (e.g., instagram, facebook, twitter).
* `name`: Display name of the competitor account.
* `social_id`: Network-unique ID.
* `picture`: Profile avatar URL.
* `type`: Account type (user, page, business, etc.).
* `competitor_sync_in_queue`: Whether a sync job is queued.
* `username`: Handle (available for twitter, instagram, facebook).
* `verified`: Whether the account is verified (available for twitter, facebook).

### 2. Get Competitors Analytics

Fetch paginated analytics for competitor accounts with filtering, sorting, and date range selection.

```
GET /api/v1/competitors/:account_id/analytics
```

#### Description

* Use `account_id` to focus on competitors relevant to a specific social account.
* Filter by `competitor_id` or search by name with `query`.
* Sort by followers, reach, engagement, and post mix counts.

#### URL Parameter

<table><thead><tr><th width="118.65557861328125">Parameter</th><th width="86.06414794921875">Type</th><th width="118.04095458984375">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Scope analytics to one social account (path variant).</td></tr></tbody></table>

#### Query Parameters

<table><thead><tr><th width="137.4339599609375">Parameter</th><th width="177.03118896484375">Type</th><th width="108.304931640625">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Scope analytics to one social account (query variant).</td></tr><tr><td><code>competitor_id</code></td><td>string</td><td>No</td><td>Analyze a specific competitor.</td></tr><tr><td><code>query</code></td><td>string</td><td>No</td><td>Case‑insensitive search by competitor name.</td></tr><tr><td><code>from</code></td><td>date (YYYY-MM-DD)</td><td>No</td><td>Start date (inclusive).</td></tr><tr><td><code>to</code></td><td>date (YYYY-MM-DD)</td><td>No</td><td>End date (inclusive).</td></tr><tr><td><code>page</code></td><td>integer</td><td>No</td><td>Page number (0‑based). Default <code>0</code>.</td></tr><tr><td><code>sort_by</code></td><td>string</td><td>No</td><td>One of: <code>followers</code>, <code>reach</code>, <code>engagement</code>, <code>posts_count</code>, <code>videos_count</code>, <code>photos_count</code>, <code>links_count</code>, <code>statuses_count</code>. Default <code>followers</code>.</td></tr><tr><td><code>sort_type</code></td><td>string</td><td>No</td><td><code>asc</code> or <code>desc</code>. Default <code>asc</code>.</td></tr></tbody></table>

## Get Competitors Analytics

> Retrieves analytics data for competitor accounts, including engagement metrics, follower counts, and post performance statistics.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Competitors","description":"Endpoints for retrieving competitors and analytics"}],"servers":[{"url":"https://app.publer.com/api/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{},"schemas":{"401ErrorResponse":{"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":{"/competitors/{account_id}/analytics":{"get":{"summary":"Get Competitors Analytics","description":"Retrieves analytics data for competitor accounts, including engagement metrics, follower counts, and post performance statistics.","tags":["Competitors"],"parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","description":"ID of the workspace to retrieve competitors analytics from","required":true},{"schema":{"type":"string"},"name":"account_id","in":"query","description":"ID of the social media account to filter competitors analytics for","required":false},{"schema":{"type":"string"},"name":"competitor_id","in":"query","description":"Specific competitor account ID to analyze","required":false},{"schema":{"type":"string"},"name":"query","in":"query","description":"Search filter for competitor account names","required":false},{"schema":{"type":"string","format":"date"},"name":"from","in":"query","description":"Start date for analytics data (ISO 8601 format, e.g., 2023-01-01)","required":false},{"schema":{"type":"string","format":"date"},"name":"to","in":"query","description":"End date for analytics data (ISO 8601 format, e.g., 2023-12-31)","required":false},{"schema":{"type":"integer","minimum":0},"name":"page","in":"query","description":"Page number for pagination (default: 0)","required":false},{"schema":{"type":"string","enum":["followers","reach","engagement","posts_count","videos_count","photos_count","links_count","statuses_count"]},"name":"sort_by","in":"query","description":"Field to sort results by","required":false},{"schema":{"type":"string","enum":["asc","desc"]},"name":"sort_type","in":"query","description":"Sort direction","required":false}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"insights":{"type":"array","description":"Array of competitor analytics data","items":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string","description":"Competitor account ID"},"name":{"type":"string","description":"Competitor account name"},"provider":{"type":"string","description":"Social media provider"},"competitor_sync_in_queue":{"type":"boolean","description":"Whether sync is in progress"},"picture":{"type":"string","description":"Profile picture URL"},"my_account":{"type":"boolean","description":"Whether this is the user's own account"}}},"followers":{"type":"integer","description":"Current follower count"},"followers_growth":{"type":"integer","description":"Follower growth during the period"},"engagement":{"type":"integer","description":"Total engagement count"},"engagement_rate":{"type":"number","description":"Engagement rate percentage (for Twitter)"},"reach":{"type":"integer","description":"Total reach (not available for Instagram/Facebook)"},"posts_count":{"type":"integer","description":"Total number of posts"},"videos_count":{"type":"integer","description":"Number of video posts"},"photos_count":{"type":"integer","description":"Number of photo posts"},"links_count":{"type":"integer","description":"Number of link posts (not available for Instagram)"},"statuses_count":{"type":"integer","description":"Number of status posts (not available for Instagram)"}}}},"total":{"type":"integer","description":"Total number of competitor accounts"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401ErrorResponse"}}}},"403":{"description":"Permission denied - requires analytics access or paying subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403ErrorResponse"}}}},"422":{"description":"Unprocessable entity - service error","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"string","description":"Error message from the service"}}}}}}}}}}}
```

Fields:

* `insights[]`: One item per competitor.
  * `account`: Basic account info and sync status; `my_account` indicates if it’s your own account.
  * `followers`: Current follower count.
  * `followers_growth`: Net growth in the selected period.
  * `engagement`: Total interactions (definition varies by network).
  * `engagement_rate`: Percentage (available for Twitter).
  * `reach`: Total reach (not available for Instagram/Facebook).
  * `posts_count`, `videos_count`, `photos_count`, `links_count`, `statuses_count`: Posting mix counts.
* `total`: Total competitors matching filters (use with `page` to paginate).

### Notes

* Reach availability: `reach` is not returned for Instagram/Facebook competitor analytics.
* **Best times for competitors**: Use [Best Times](https://publer.com/docs/analytics/best-times-to-post) endpoint with competitor mode to view competitors’ optimal posting hours:
  * GET /api/v1/analytics/:account\_id/best\_times?competitors=true\&competitor\_id=...
* **Competitor post insights**: Use the [Post Insights](https://publer.com/docs/analytics/post-insights) endpoint in competitor mode:
  * GET /api/v1/analytics/:account\_id/post\_insights?competitors=true\&competitor\_id=...

### Related Resources

* [Post Insights](https://publer.com/docs/analytics/post-insights) — Per‑post performance analytics (supports competitor mode)
* [Best Times ](https://publer.com/docs/analytics/best-times-to-post)— Suggested posting times (supports competitor mode)
* [Hashtag Analysis](https://publer.com/docs/analytics/hashtag-analysis) — Hashtag performance
* [Charts](https://publer.com/docs/analytics/charts) — Discover chart IDs and fetch chart data


# Export

Generate a downloadable CSV or PDF of your analytics for a workspace or a single account. Exports run asynchronously and are retrieved through the Job Status endpoint.

#### Requirements

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

### **Export Analytics**

Create an analytics export job.

```http
PUT /api/v1/analytics/export
```

{% hint style="warning" %}
The output format is specified using the **nested** `format` parameter, not a top-level `format` parameter. Any value other than `csv` produces a PDF.
{% endhint %}

**Query Parameters**

<table><thead><tr><th width="184.140625">Parameter</th><th width="96">Type</th><th width="86">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>format</code></td><td>string</td><td>No</td><td><code>csv</code> or <code>pdf</code>. Defaults to <code>pdf</code>.</td></tr><tr><td><code>account_id</code></td><td>string</td><td>No</td><td>Limit the export to one account. When omitted, the export covers all accounts in the workspace.</td></tr><tr><td><code>from</code></td><td>string</td><td>No</td><td>Start of the reporting period (ISO date)</td></tr><tr><td><code>to</code></td><td>string</td><td>No</td><td>End of the reporting period (ISO date)</td></tr><tr><td><code>tab</code></td><td>string</td><td>No</td><td>Analytics tab to export</td></tr><tr><td><code>account_type</code></td><td>string</td><td>No</td><td>Filter by account type</td></tr><tr><td><code>postType</code></td><td>string</td><td>No</td><td>Filter by post type</td></tr><tr><td><code>query</code></td><td>string</td><td>No</td><td>Full-text search on post content</td></tr><tr><td><code>member_id</code></td><td>string</td><td>No</td><td>Filter by workspace member</td></tr><tr><td><code>sort_by</code></td><td>string</td><td>No</td><td>Field to sort by</td></tr><tr><td><code>sort_type</code></td><td>string</td><td>No</td><td>Sort direction</td></tr><tr><td><code>labels[]</code></td><td>string[]</td><td>No</td><td>Filter by label IDs</td></tr><tr><td><code>columns[]</code></td><td>string[]</td><td>No</td><td>Columns to include in a CSV export</td></tr></tbody></table>

## Export Analytics

> Generates a CSV or PDF analytics export. Filters are sent as a JSON request body. The export is produced asynchronously; poll the returned job\_id via the Job Status endpoint to retrieve the finished file.

```json
{"openapi":"3.1.1","info":{"title":"Publer API","version":"1.0.0"},"tags":[{"name":"Analytics","description":"Endpoints for retrieving analytics data and charts"}],"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":{"JobResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the job was created successfully"},"data":{"type":"object","properties":{"job_id":{"type":"string","description":"ID of the created job"}}}}},"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":{"/analytics/export":{"put":{"summary":"Export Analytics","tags":["Analytics"],"description":"Generates a CSV or PDF analytics export. Filters are sent as a JSON request body. The export is produced asynchronously; poll the returned job_id via the Job Status endpoint to retrieve the finished file.","parameters":[{"schema":{"type":"string"},"name":"Publer-Workspace-Id","in":"header","required":true,"description":"ID of the workspace to export analytics from"}],"responses":{"200":{"description":"Export job created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","enum":["csv","pdf"],"description":"Output format. Anything other than \"csv\" produces a PDF."},"from":{"type":"string","format":"date","description":"Start of the reporting period"},"to":{"type":"string","format":"date","description":"End of the reporting period"},"tab":{"type":"string","description":"Analytics tab to export, for example \"overview\""},"account_id":{"type":"string","description":"Limit the export to one account. When omitted, the export covers all accounts in the workspace."},"account_type":{"type":"string","description":"Filter by account type"},"postType":{"type":"string","description":"Filter by post type. May be null."},"type":{"type":"string","description":"Filter by type"},"query":{"type":"string","description":"Full-text search on post content"},"member_id":{"type":"string","description":"Filter by workspace member"},"sort_by":{"type":"string","description":"Field to sort by"},"sort_type":{"type":"string","description":"Sort direction"},"labels":{"type":"array","items":{"type":"string"},"description":"Filter by label IDs"},"columns":{"type":"array","items":{"type":"string"},"description":"Columns to include in a CSV export"}}}}},"required":true,"description":"Export filters"}}}}}
```

#### Retrieving the export

The endpoint returns immediately with a job ID:

```json
{ "job_id": "6810dec617eae6d55d7a5e5b" }
```

Poll it until the job completes:

```http
GET /api/v1/job_status/6810dec617eae6d55d7a5e5b
```

#### Notes

* Only one export job runs at a time per user. Starting a second while one is still in progress returns an error.
* Omit `account_id` for a workspace-wide export across every connected account.
* `columns[]` applies to CSV exports only.

#### Related Resources

* [Charts](https://publer.com/docs/analytics/charts) — Available analytics charts
* [Post Insights](https://publer.com/docs/analytics/post-insights) — Per-post performance


