SOCIAL MEDIA API · REST
Social media API for developers
One REST API to publish, schedule and manage posts on 15+ social networks from your product, backend or automation flow. JSON over HTTPS, a Bearer key and an OpenAPI 3 spec.
curl -X POST https://api.onlypult.com/v1/posts \
-H "Authorization: Bearer op_…" \
-H "Content-Type: application/json" \
-d '{
"profile_ids": ["1234", "5678"],
"content": "Launch day is here.",
"media_urls": ["https://cdn.example.com/a.png"],
"publish_at": "2026-07-07 14:00"
}' HTTP/1.1 201 Created
{ "data": {
"id": "abc123",
"status": "scheduled",
"content": "Launch day is here.",
"profile_ids": ["1234", "5678"],
"publish_at": "2026-07-07 14:00",
"published_at": null,
"media": […],
"error": null
} } Your bill doesn't grow with your customers' reach. Pay for a plan, not per connected account.
No separate developer tier. The API works on the free trial, no card required.
One endpoint, three modes: is_draft: true, publish_now: true, or publish_at. Nothing goes live by accident.
Call it from any HTTP client
Your clients connect their accounts via OAuth: no shared passwords, and no Meta app for you to build.
What every request looks like
A personal key from Settings → API Keys: op_ plus 64 hex characters. It is shown once at creation and stored only as a hash.
Every successful response is JSON wrapped in a data envelope. POST /posts returns 201 with the created post.
List endpoints take page and limit (up to 100) and return meta with total, page, limit and pages.
Every response carries X-RateLimit-Limit, -Remaining and -Reset, so you can pace requests instead of running into 429.
Schedule a post in three calls
Ask the account for its timezone and plan end date, pick the profiles, then create the post. publish_at uses "Y-m-d H:i" in the account timezone.
Responses you can parse
Lists come with pagination meta. Validation errors return a stable code, a message, the field and a retryable flag.
GET /v1/posts?status=scheduled&page=1&limit=20
{ "data": [
{ "id": "abc123", "status": "scheduled", … }
],
"meta": {
"total": 100, "page": 1,
"limit": 20, "pages": 5
} } HTTP/1.1 422 Unprocessable Entity
{ "error": {
"code": "publish_date_after_plan",
"message": "Cannot schedule posts after your plan end date…",
"retryable": false,
"field": "publish_at"
} } Error codes
400, 401 and 404 return { name, message, code, status }. Validation errors (422) return an error object with a stable code. When retryable is false, do not repeat the same request.
Endpoints for the whole post lifecycle
Start in five minutes
Two common mistakes: sending publish_at as UTC ISO-8601 instead of "Y-m-d H:i" in the account timezone, and retrying a 422 whose retryable is false. Both take a minute to fix.
The API is on every plan. No access fee.
No developer-tier surcharge, no per-connected-profile fee, no trial cut short when you create a key. Programmatic access is included everywhere, from the trial to the top plans.
Your bill doesn't grow with each connected profile.
Included in the plan you already have.
7 days free, no card, API included.
Questions, answered
Which social networks can I post to through the API?
Instagram, Facebook, LinkedIn, TikTok, YouTube, Pinterest, Threads, X, Telegram, WordPress, Google Business Profile and more: 15+ channels in total. GET /profiles/platforms returns the current list.
Can I post to several profiles in one request?
Yes. Pass several IDs in profile_ids and the post goes to each of them: as a draft, on a schedule or right away.
How do I attach images and videos?
Pass up to 10 public URLs in media_urls and Onlypult downloads the files itself. For files from your own storage, upload them through POST /media/upload-url or POST /media/upload and pass the returned IDs in media_ids.
Which plans include the API?
Every plan, including the free trial, with no separate developer tier and no per-profile fee.
Is there an MCP server for AI agents?
Yes. The same capabilities are available to Claude, ChatGPT, Cursor and other agents through the Onlypult MCP server. Setup guides are in the AI agents section.
What are the rate limits?
Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (a unix timestamp) for your key. Pace requests by these headers; if you get 429, wait until the reset time.
Is there an OpenAPI spec?
Yes, OpenAPI 3.0 at onlypult.com/dev/openapi.yaml. Generate a client from it or import it into Postman or Insomnia. The interactive reference is at onlypult.com/dev/api.html.
How does pagination work?
List endpoints such as GET /posts take page (from 1) and limit (1–100, 20 by default) and return meta with total, page, limit and pages.
Which time format does scheduling use?
publish_at is a string in "Y-m-d H:i" format in the account timezone, for example "2026-07-07 14:00". GET /account returns the timezone and plan_end_at.
How is the API versioned?
The API is versioned (v1) with backward compatibility within a major version, so your integration keeps working as we ship.
Connect publishing to your code
On every plan · 7-day free trial · no card required
