canonical: https://jentic.com/apis/socialrails.com/socialrails

# SocialRails Public API

The SocialRails API schedules and publishes posts to Twitter, LinkedIn, Facebook, Instagram, TikTok, Bluesky, Pinterest, Threads, and YouTube from one workspace. You can create a single post or the same post for several platforms in one batch, attach media uploaded from a file or a public URL, build threads on Twitter and Threads, and read posting analytics over 7, 30, 90, or 365 day periods. It also generates post copy with AI in a chosen tone and sends webhooks when a post is scheduled, published, or fails.

## For AI agents

Draft, schedule, and publish social posts to nine platforms including LinkedIn, Instagram, TikTok, and Bluesky, upload media, generate post copy with AI, and read posting analytics for a SocialRails workspace.

## Scope

Does not read other accounts' public posts, reply to comments, or manage direct messages. Use for scheduling, publishing, and measuring your own workspace's social posts only.

## Capabilities

- Schedule a post to Twitter, LinkedIn, Instagram, TikTok, Bluesky, or another connected platform for a future scheduled_for time
- Publish the same announcement to several platforms in one batch with per-platform content overrides
- Post a multi-part thread on Twitter or Threads with media per thread item
- Upload images or MP4 video from a file or a public URL and attach the media keys to a post
- Generate post copy with AI from a prompt, target platform, and tone such as professional or casual
- Read posting analytics for the workspace or a single post over a 7d, 30d, 90d, or 365d period
- Register a webhook for post.published, post.failed, or post.scheduled events

## Use cases

### Let your agent run a posting calendar through Jentic

A marketing agent can draft and schedule a week of social posts by calling SocialRails through Jentic. It searches by intent, gets the post-creation operation with its content, platform, and scheduled_for inputs, and queues each post on the right channel. Your SocialRails API key stays on your own Jentic One instance, and a rule can keep the agent away from deleting posts or managing webhooks.

Example prompt: Search Jentic for 'schedule a social media post', then call POST /posts with platform 'linkedin', content for a product update, and scheduled_for set to 2026-12-07T09:00:00Z

### Cross-post one announcement to many networks

Teams announcing a release usually want it on every channel with small wording changes. The batch endpoint takes default content, a platforms list, and platform_content overrides, so one request can schedule a short version for Twitter and Bluesky and a longer one for LinkedIn. Each platform counts as one post against the workspace's monthly limit.

Example prompt: Call POST `/posts/batch` with platforms ['twitter','bluesky','linkedin'], a default content string, platform_content with a longer LinkedIn version, and a scheduled_for time

### Review what published and what failed

After a campaign runs, someone has to check results. Listing posts with a status filter of failed or published, then calling the analytics endpoint with a period such as 30d or a specific post_id, gives an agent what it needs to report which posts landed, which need a retry, and how the workspace performed.

Example prompt: Call GET /posts with status 'failed', then GET /analytics with period '30d', and summarize failures and overall performance

### Draft on-brand copy with AI before scheduling

When the agent needs a first draft, the AI generate endpoint returns post copy from a prompt, a target platform, and a tone such as professional, casual, excited, or humorous. Each request deducts 2 AI credits, and the result can be passed straight into a draft post for human review.

Example prompt: Call POST `/ai/generate` with a prompt about a new feature, platform 'instagram', and tone 'excited', then save the result with POST /posts without scheduled_for so it stays a draft

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/posts` | Create or schedule a post |
| POST | `/posts/batch` | Create the same post for several platforms |
| GET | `/posts` | List posts with status and platform filters |
| GET | `/analytics` | Get posting analytics |
| POST | `/media/upload-url` | Store media fetched from a public URL |
| POST | `/ai/generate` | Generate post copy with AI |
| GET | `/accounts` | List connected social accounts |
| POST | `/webhooks` | Register a webhook |

## Key resources

- **Posts** — Create, batch-create, list by status or platform, update, and delete draft or scheduled posts
- **Analytics** — Workspace or per-post posting analytics over 7d, 30d, 90d, or 365d
- **Accounts** — Connected social accounts, their settings and capabilities, and discovery tools such as listing Facebook pages or Pinterest boards
- **Media** — Uploads from files or public URLs, returning keys to attach to posts
- **AI** — AI-generated post copy by prompt, platform, and tone
- **Webhooks** — Subscriptions to post.published, post.failed, and post.scheduled events
- **Workspace** — Workspace info, plan limits, and current usage

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 49 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 62 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 25 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 81 / 100
- **View full report:** https://jentic.com/apis/socialrails.com/socialrails/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring SocialRails by hand means sending its sr_live_ key as a bearer token, matching each operation to the read, write, ai, or webhooks scope it needs, and uploading media first to get keys for a post. Through Jentic you install once, import SocialRails from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** SocialRails separates reading, posting, and deleting into distinct methods and paths, so a rule can hold your agent to the operations it needs, such as listing and creating posts. You choose the operations it may call, so destructive ones like DELETE `/posts/{id}` or webhook registration are not included unless you add them.
- **Credential handling:** Your SocialRails API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'schedule a LinkedIn post' or 'get posting analytics', and Jentic returns the matching SocialRails operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Buffer API** — Social media scheduling and publishing
- **Late API** — Social media scheduling API across many platforms
- **SocialBee API** — Social media management with content categories
- **SocialKit API** — Reads public stats, comments, and transcripts from social posts

## FAQ

### Is there a SocialRails MCP server?

You don't need an MCP server to give your agent SocialRails. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent calls it. Operations are discovered on demand, so the agent's context only holds the post or analytics operation it is using.

### Can I limit what my agent is allowed to do with SocialRails?

Yes. For example, write a rule that allows only GET /posts, POST /posts, and GET /analytics: the agent can review the calendar, queue new posts, and read results, but cannot delete posts, remove media, or register webhooks, and every call it makes is logged. SocialRails API keys also carry their own read, write, ai, and webhooks scopes, which you set in the SocialRails dashboard.

### What authentication does the SocialRails API use?

The SocialRails API uses bearer authentication per its OpenAPI spec: an API key from Dashboard > Settings > API, starting with sr_live_, sent as a Bearer token. Operations also name a key scope such as read, write, ai, or webhooks, and the /health check needs no key. Through Jentic the key is stored encrypted by your own Jentic One instance and injected at call time.

### Which platforms can SocialRails post to?

The spec's Platform enum lists twitter, linkedin, facebook, instagram, tiktok, bluesky, pinterest, threads, and youtube. Threads of several posts are supported on twitter and threads only, and GET `/accounts/{id}/settings` returns each account's character limit and media limits.

### Can I edit or delete a post after scheduling it?

Yes, while it is still a draft or scheduled. PATCH `/posts/{id}` updates content, platform, scheduled_for, media, or platform_settings, and DELETE `/posts/{id}` removes it. The spec states that published or failed posts cannot be deleted.

### What are the rate limits for the SocialRails API?

The OpenAPI spec does not fix a number. It defines a RateLimited response with X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers, so your agent can read its hourly allowance from each response. Plan limits and usage are returned by GET /workspace; see https://socialrails.com for plan details.

### How do I schedule a post through Jentic?

Install Jentic One, add SocialRails from the Jentic API Directory, store your SocialRails API key, and have your agent search for 'schedule a social media post'. Jentic returns POST /posts with its content, platform, and scheduled_for inputs, and the agent calls it. To run it on your own infrastructure, install Jentic One from its GitHub repo.
