Post to Mastodon from one API

Connect an account on any Mastodon instance and publish statuses with media, polls, content warnings and visibility. Long text becomes a thread, the same way as on X.

What works on Mastodon

  • Publish now
  • Schedule and queue
  • Post analytics
  • Comments in the inbox
  • Direct messages
  • First comment
  • Public data scraping
  • Video downloads

What you can publish

Text length
500 characters
Images per post
Up to 4
Videos per post
Up to 1
Images and videos together
One kind per post
Video file size
Up to 99 MB
Image file size
Up to 16 MB
Media
Optional
Long text
Split into a thread automatically

Preflight checks these limits for every target before publishing and returns clear errors and warnings.

How you connect

Enter your instance, for example mastodon.social, then sign in there and approve access.

Options for Mastodon

Pass these in platformSpecificData on the Mastodon entry of a post. Everything else, like text, media, first comment and scheduling, works the same on every network.

  • visibility
  • spoilerText
  • sensitive
  • language
  • poll

Example request

curl -X POST "https://postkea.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTKEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "Our spring pottery workshop opens for booking today.",
  "platforms": [
    {
      "accountId": "acc_mast_8f2k",
      "platformSpecificData": {
        "visibility": "unlisted",
        "spoilerText": "Kiln results"
      }
    }
  ],
  "scheduledFor": "2026-11-03T09:00",
  "timezone": "Europe/Berlin"
}'

Read public Mastodon data

5 operations for public Mastodon content. Each returns clean JSON and costs credits only when it succeeds.

OperationEndpoint
Mastodon post detailsText, author, likes, boosts, replies, media, poll and link card of a post on any Mastodon server.POST /v1/scrape/mastodon/post
Mastodon repliesReplies to a post, flattened in thread order with parent ids, likes and authors.POST /v1/scrape/mastodon/comments
Mastodon profileName, bio, avatar, header, followers, following, post count and profile links of an account.POST /v1/scrape/mastodon/profile
Mastodon account postsLatest public posts of an account, optionally with replies, boosts or media only.Returns a list you can use in pipelinesPOST /v1/scrape/mastodon/posts
Mastodon hashtag postsLatest public posts with a hashtag on a Mastodon server.Returns a list you can use in pipelinesPOST /v1/scrape/mastodon/hashtag

Mastodon questions

Can I schedule Mastodon posts with the API?

Yes. Send a post with scheduledFor and a timezone, or addToQueue to use the next free slot of the account. You can also schedule from the dashboard calendar or let an AI agent do it through the MCP server.

What are the Mastodon limits?

Posts can have up to 500 characters. Postkea checks text length, media count, file size, duration and aspect ratio before publishing, so you get a clear error instead of a failed post.

What happens if a Mastodon post fails?

The post gets a result per network. Failed networks cost no credits, the error says what went wrong, and you can retry them with one call to POST /v1/posts/{id}/retry or one click in the dashboard.

Can I get data from public Mastodon posts?

Yes. Use the Mastodon scraping operations for details, comments, profiles and more, or POST /v1/scrape/auto with any Mastodon link.

Other platforms

Connect your first channels

Free includes 3 channels and 200 credits a month.