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.

A post failed? GET /posts?status=failed shows it, and POST /posts/retry-all-failed re-sends everything in one call.
or see the full flow
7-day free trial No credit card Cancel anytime
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
} }
POST /posts publish_at is in the account timezone
Not per-profile

Your bill doesn't grow with your customers' reach. Pay for a plan, not per connected account.

Included on every plan

No separate developer tier. The API works on the free trial, no card required.

Draft, schedule or publish

One endpoint, three modes: is_draft: true, publish_now: true, or publish_at. Nothing goes live by accident.

Call it from any HTTP client

curl
Node.js
Python
PHP
Go
n8n
Make
Zapier
Official platform integrations

Your clients connect their accounts via OAuth: no shared passwords, and no Meta app for you to build.

What every request looks like

Auth
Authorization: Bearer op_…

A personal key from Settings → API Keys: op_ plus 64 hex characters. It is shown once at creation and stored only as a hash.

Responses
{ "data": … }

Every successful response is JSON wrapped in a data envelope. POST /posts returns 201 with the created post.

Pagination
?page=1&limit=20 → meta

List endpoints take page and limit (up to 100) and return meta with total, page, limit and pages.

Rate limits
X-RateLimit-Remaining

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.

1 GET /account
timezone, plan_end_at
2 GET /profiles
profile IDs
3 POST /posts
is_draft · publish_now · publish_at

Responses you can parse

Lists come with pagination meta. Validation errors return a stable code, a message, the field and a retryable flag.

List with pagination
GET /v1/posts?status=scheduled&page=1&limit=20

{ "data": [
    { "id": "abc123", "status": "scheduled", … }
  ],
  "meta": {
    "total": 100, "page": 1,
    "limit": 20, "pages": 5
  } }
Validation error
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.

Code
When
What to do
400
A query parameter is malformed, e.g. publish_after
Fix the request
401
The API key is missing or invalid
Check the Authorization header
404
The profile or post is not found in this account
Check the ID
422 plan_expired
The subscription has ended
Renew the plan, do not retry
422 publish_date_after_plan
publish_at is after the plan end date
Pick an earlier date
422 publish_date_invalid
publish_at is not a valid schedule time
Send "Y-m-d H:i" in the account timezone
422 post_empty
The post has no content, media or poll
Add content
422 validation_error
Another field failed validation, see error.field
Follow retryable
429
Rate limit exceeded
Wait until X-RateLimit-Reset

Endpoints for the whole post lifecycle

What you need
Endpoint
Account timezone and plan end date
GET /account
Connected profiles
GET /profiles
Supported platforms
GET /profiles/platforms
Media by URL (up to 10)
media_urls in POST /posts
Media by file upload
POST /media/upload-url · POST /media/upload
Draft, schedule or publish now
POST /posts
List and filter posts
GET /posts?status=…&profile_id=…
Edit or delete a post
PUT /posts/{id} · DELETE /posts/{id}
Publish a draft right away
POST /posts/{id}/publish
Retry failed posts
POST /posts/{id}/retry · POST /posts/retry-all-failed
Analytics
GET /analytics/{id}/overview · /top-posts · /best-time

Start in five minutes

1 Create an API key in Settings → API Keys. Copy it right away: it is shown only once.
2 Call GET /account for timezone and plan_end_at, then GET /profiles for profile IDs.
3 Call POST /posts with is_draft, publish_now or publish_at.
base URL
https://api.onlypult.com/v1

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.

Not per-account

Your bill doesn't grow with each connected profile.

No separate developer tier

Included in the plan you already have.

Works on the trial

7 days free, no card, API included.

See pricing

Questions, answered

General
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.

For engineers
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

Try for free