πŸš€API Quickstart

Get Started with Blotato API

The Blotato API allows you to:

  • publish and schedule posts directly to social media platforms

  • supports text, image, videos, reels, slideshows, carousels, threads, and stories

  • create images, videos, slideshows, and carousels programmatically via templates

It is limited to paying subscribers in order to reduce spam and service abuse, keeping Blotato's integration in good standing with the social platforms.


1. Get Your API Key

❗IMPORTANT: this will end your free trial immediately and start your paid subscription.

Go to Settings > API > click "Generate API Key".


2. Connect Social Accounts

Go to Settings and connect your social accounts. If you get stuck, more information here:


3. Setup Your First Automation!

Choose your preferred integration path:

Blotato has official Make.com and n8n nodes. Zapier coming soon! For n8n, your n8n instance must have "verified community nodes" enabled.

Check out more workflow automation templates here:


4. Troubleshoot Errors

Use the API Dashboard and click on each request to see full payload, response, and error message:

API Dashboard (for debugging): https://my.blotato.com/api-dashboard


Raw REST API Calls - Examples

Authentication

To authenticate API requests, include your Blotato API key in the request headers.

Authentication Header

blotato-api-key: YOUR_API_KEY

Requests without a valid API key will be rejected and 401 error will be returned.

Post to a Platform Immediately

POST https://backend.blotato.com/v2/posts HTTP/1.1
Content-Type: application/json
Headers:

{
  "post": {
    "accountId": "acc_12345",
    "content": {
      "text": "Hello, world!",
      "mediaUrls": [],
      "platform": "twitter"
    },
    "target": {
      "targetType": "twitter"
    }
  }
}

Post at a Scheduled Time

POST https://backend.blotato.com/v2/posts HTTP/1.1
Content-Type: application/json

{
  "post": {
    "accountId": "acc_67890",
    "content": {
      "text": "Scheduled post example",
      "mediaUrls": [],
      "platform": "facebook"
    },
    "target": {
      "targetType": "facebook",
      "pageId": "987654321"
    }
  },
  "scheduledTime": "2025-03-10T15:30:00Z"
}

Post a Twitter Thread with Multiple Posts

POST https://backend.blotato.com/v2/posts HTTP/1.1
Content-Type: application/json

{
  "post": {
    "accountId": "acc_13579",
    "content": {
      "text": "This is the first tweet in the thread.",
      "mediaUrls": [],
      "platform": "twitter",
      "additionalPosts": [
        {
          "text": "Here's the second tweet, adding more info.",
          "mediaUrls": []
        },
        {
          "text": "And here's the third tweet to conclude!",
          "mediaUrls": []
        }
      ]
    },
    "target": {
      "targetType": "twitter"
    }
  }
}

Attach Media to Post (images and videos)

If your post has images or videos, you need to first upload the media to Blotato's servers. Most social platforms will reject your request to post random image/video URLs.

  1. Upload media:

POST https://backend.blotato.com/v2/media HTTP/1.1
Content-Type: application/json

{
  "url": "https://example.com/image.jpg"
}
  1. Response:

{
  "url": "https://database.blotato.com/d1655c49-0bc4-4dd0-88b2-323ce0069fa4.jpg"
}
  1. Grab the URL from the response, then pass it in your Publish request:

POST https://backend.blotato.com/v2/posts HTTP/1.1
Content-Type: application/json

{
  "post": {
    "accountId": "acc_24680",
    "content": {
      "text": "Check out this image!",
      "mediaUrls": [
        "https://database.blotato.com/d1655c49-0bc4-4dd0-88b2-323ce0069fa4.jpg",
      ],
      "platform": "instagram"
    },
    "target": {
      "targetType": "instagram"
    }
  }
}

Last updated

Was this helpful?