LinkedIn carousel maker API
Paste a post or an outline, pick a size, theme and accent colour, and download the slides as one PDF ready for a LinkedIn document post. No watermark, no sign-up, and your text never leaves your browser.
- Endpoint:
POST https://postboost.co/app/api/tools/linkedin-carousel-maker(operationIdbuildLinkedinCarousel) - Web tool: postboost.co/tools/linkedin-carousel-maker
- Token: optional (limits)
- MCP: tool
build-linkedin-carouselonhttps://postboost.co/mcp/tools
Request
| Field | Type | Default | Description |
|---|---|---|---|
text | string | The post or outline. Blank lines separate slides; a first line starting with # (or a short first line without closing punctuation that is not a list item) is the slide heading; - * • lines become bullets. | |
max_slides | integer | 10 | Most slides to return, 3 to 20. The cover and the CTA slide are always kept. |
size | string: 4:5, 1:1 | "4:5" | Slide shape: 4:5 (1080 × 1350) or 1:1 (1080 × 1080). Every page of a LinkedIn document has the same size. |
cover | boolean | true | Start with a cover slide: the first heading, or the first line of the text. |
cta | string | Text of a closing call-to-action slide. |
Call it
- curl
- Python
- Node.js
- PHP
- Go
- Ruby
- Java
- C#
- Rust
- CLI
curl -X POST https://postboost.co/app/api/tools/linkedin-carousel-maker \
-H 'Content-Type: application/json' \
-d '{"text":"# 5 hooks that work\n\nOne.\n\nTwo"}'
from postboost import ApiClient, Configuration
from postboost.api.free_tools_api import FreeToolsApi
from postboost.models import FreeToolBuildLinkedinCarouselRequest
with ApiClient(Configuration()) as client:
api = FreeToolsApi(client)
result = api.build_linkedin_carousel(FreeToolBuildLinkedinCarouselRequest.from_dict({"text": "# 5 hooks that work\n\nOne.\n\nTwo"}))
print(result.to_dict())
import { FreeToolsApi } from 'postboost';
const api = new FreeToolsApi();
const { body } = await api.buildLinkedinCarousel({ text: "# 5 hooks that work\n\nOne.\n\nTwo" });
console.log(body);
use PostBoostClient\Api\FreeToolsApi;
use PostBoostClient\Model\FreeToolBuildLinkedinCarouselRequest;
$api = new FreeToolsApi(new GuzzleHttp\Client());
$result = $api->buildLinkedinCarousel(new FreeToolBuildLinkedinCarouselRequest(['text' => "# 5 hooks that work\n\nOne.\n\nTwo"]));
echo $result;
import (
"context"
"encoding/json"
"fmt"
postboost "github.com/postboost-co/postboost-go"
)
var request postboost.FreeToolBuildLinkedinCarouselRequest
if err := json.Unmarshal([]byte(`{"text":"# 5 hooks that work\n\nOne.\n\nTwo"}`), &request); err != nil {
panic(err)
}
client := postboost.NewAPIClient(postboost.NewConfiguration())
result, _, err := client.FreeToolsAPI.BuildLinkedinCarousel(context.Background()).FreeToolBuildLinkedinCarouselRequest(request).Execute()
fmt.Println(result, err)
require 'postboost'
api = PostBoost::FreeToolsApi.new
result = api.build_linkedin_carousel(PostBoost::FreeToolBuildLinkedinCarouselRequest.new({ text: "# 5 hooks that work\n\nOne.\n\nTwo" }))
puts result.to_hash
import com.postboost.ApiClient;
import com.postboost.api.FreeToolsApi;
import com.postboost.model.FreeToolBuildLinkedinCarouselRequest;
import com.postboost.model.FreeToolBuildLinkedinCarouselResponse;
FreeToolsApi api = new FreeToolsApi(new ApiClient());
FreeToolBuildLinkedinCarouselRequest request = FreeToolBuildLinkedinCarouselRequest.fromJson("{\"text\":\"# 5 hooks that work\\n\\nOne.\\n\\nTwo\"}");
FreeToolBuildLinkedinCarouselResponse result = api.buildLinkedinCarousel(request);
System.out.println(result.toJson());
using Newtonsoft.Json;
using PostBoost.Client.Api;
using PostBoost.Client.Client;
using PostBoost.Client.Model;
var api = new FreeToolsApi(new Configuration());
var request = JsonConvert.DeserializeObject<FreeToolBuildLinkedinCarouselRequest>(@"{""text"":""# 5 hooks that work\n\nOne.\n\nTwo""}");
var result = await api.BuildLinkedinCarouselAsync(request);
Console.WriteLine(result.ToJson());
use postboost::apis::configuration::Configuration;
use postboost::apis::free_tools_api;
use postboost::models::FreeToolBuildLinkedinCarouselRequest;
let config = Configuration::new();
let request: FreeToolBuildLinkedinCarouselRequest = serde_json::from_str(r##"{"text":"# 5 hooks that work\n\nOne.\n\nTwo"}"##)?;
let result = free_tools_api::build_linkedin_carousel(&config, request).await?;
println!("{:?}", result);
echo '{"text":"# 5 hooks that work\n\nOne.\n\nTwo"}' | ./postboost-cli --content-type application/json buildLinkedinCarousel -
With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).
Response
{
"page": {
"width": 1080,
"height": 1350
},
"slides": [
{
"n": 1,
"kind": "cover",
"heading": "5 hooks that work",
"body": []
},
{
"n": 2,
"kind": "content",
"heading": null,
"body": [
"One."
]
},
{
"n": 3,
"kind": "content",
"heading": null,
"body": [
"Two"
]
}
],
"warnings": [],
"limits": {
"max_slides": 20,
"heading_max": 80,
"body_max": 280,
"linkedin_max_pages": 300,
"linkedin_max_mb": 100
}
}
With MCP
Connect https://postboost.co/mcp/tools (setup) and ask, for example: Turn text into LinkedIn carousel (PDF document) slides with the PostBoost build-linkedin-carousel tool.
Errors
| Status | When |
|---|---|
401 | The Authorization header holds an invalid token. Leave it out to call as a guest. |
413 | The JSON body is larger than 128 KB. |
422 | A field is invalid; the body lists the errors per field. |
429 | A limit is reached; see limits. |