Mastodon BulkPublish

Mastodon API

Publish, schedule and manage Mastodon from your own code. One REST API and one key cover Mastodon and every other network you connect, so you write the integration once.

Mastodon integration for BulkPublish

What the Mastodon API covers

Everything below is part of the published API and works with Mastodon today.

CapabilityEndpoint
Create, schedule, update and publish posts POST /api/posts
Upload images and video POST /api/media
Find the next free slot in your queue GET /api/posts/queue-slot
Create repeating schedules POST /api/schedules
Publish new items from an RSS feed POST /api/rss-feeds
Post a first comment automatically platformSpecific._firstComment
Publish multi-part threads postFormat: "thread"
Read per-post metrics GET /api/posts/{id}/metrics
Read and reply to comments on published posts GET /api/posts/{id}/engagement, POST /api/posts/{id}/comments/reply
Read and answer direct messages GET /api/inbox/conversations, POST /api/inbox/conversations/{id}/messages
Check that the connection is healthy GET /api/channels/{id}/health
Check your plan usage GET /api/quotas/usage

Post types you can publish to Mastodon

Choose the type with postTypeOverrides. A type Mastodon does not offer is rejected before anything is queued.

Post typeMedia
post Post Optional, up to 4 images or videos

Schedule Mastodon posts with curl

Three requests: find your channel, upload the file if the post has one, then create the post. Replace the key with one from Settings, then API keys, and 12 with your own channel id.

1. List your channels and note the id of your Mastodon account.

curl https://app.bulkpublish.com/api/channels \
  -H "Authorization: Bearer bp_your_key_here"

2. Create the post.

curl -X POST https://app.bulkpublish.com/api/posts \
  -H "Authorization: Bearer bp_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "New post is up",
  "channels": [{ "channelId": 12 }],
  "status": "scheduled",
  "scheduledAt": "2026-12-01T09:00:00Z",
  "platformSpecific": {
    "_firstComment": "Full write-up on the blog"
  }
}'

The response is the created post, with its id and status. Fetch it later with GET /api/posts/{id} to see how it went.

Mastodon options

Mastodon takes no extra options. The text, media and post type are all a request needs.

Mastodon analytics through the API

These metrics come back for each Mastodon post on GET /api/posts/{id}/metrics, with snapshots over time.

  • Likes
  • Comments
  • Shares

Comments and messages

Through the API you can read and reply to comments on published posts and read and answer direct messages.

Reading comments works on every plan. Replying to comments needs a paid plan, and the inbox is part of Pro and Business. Until a feature is switched on for your account the API answers 403 with a code you can check for.

API access on every plan

Every plan includes API keys, the Free plan included. Here is what each one allows.

PlanAPI keysRequests per day
Free 1 30
Pro 5 5,000
Business 10 50,000

Build on Mastodon directly, or use BulkPublish

Going direct is a fair choice, especially if you need something BulkPublish does not expose. This is what Mastodon API asks of you, checked against its documentation in October 2026.

  • You register a developer app with Mastodon before you can publish.
  • The API can schedule a post itself, within limits the platform sets.
  • A post with media takes several calls: upload or create, wait for processing, then publish.

BulkPublish keeps the connection for you: it refreshes tokens, checks each post against Mastodon's rules before it is queued, and reports a failed destination on the post, so your code makes one request.

Prefer to ask an assistant?

Claude, ChatGPT and Cursor can do the same through the Mastodon MCP server, with prompts instead of code.

Prefer a calendar to code?

The same Mastodon account can be scheduled from the app, with a content calendar and bulk upload.

Frequently asked questions

Common questions about the Mastodon API.

Is there a ready-made API for Mastodon, so I do not have to build the integration myself?

Yes. BulkPublish exposes Mastodon through its REST API. Connect your Mastodon account once, then publish, schedule and manage it with a key. The same key works for every other network you connect.

What can I publish to Mastodon through the API?

The post types are Post. Each is checked against Mastodon's media rules before anything is queued, so a request Mastodon would reject fails straight away with a clear error.

Can I schedule Mastodon posts through the API?

Yes. Send status "scheduled" with a scheduledAt time and a timezone, or ask for the next free slot in your queue first. Repeating schedules and RSS feeds are available too.

Can I read Mastodon analytics through the API?

Yes. Per-post metrics include Likes, Comments, and Shares, with snapshots over time.

Can I read and answer Mastodon comments or messages through the API?

Yes. You can read and reply to comments on published posts and read and answer direct messages. Replying to comments needs a paid plan, and the inbox is part of Pro and Business.

Does the Mastodon API cost extra?

No. API access is on every plan. Free includes 1 key and 30 requests a day, Pro 5 keys and 5,000 a day, Business 10 keys and 50,000 a day.

Do I need a Mastodon developer account or an app review?

Not to use BulkPublish. You connect your Mastodon account on the Channels page and publish with a BulkPublish key. If you build on Mastodon's own API instead, the section above lists what it asks of you.

Can an AI assistant do this too?

Yes. The Mastodon MCP server page shows how to connect Claude, ChatGPT or Cursor and what to ask for.

The same key and the same request shape work for 15 networks.

Start publishing to Mastodon from code

Create a free account, connect Mastodon and generate a key. No card needed.