Upload Media /v2/media

Upload is Now Optional

You no longer need to upload media to Blotato before publishing. You can pass any publicly accessible image/video URL directly into the mediaUrls parameter in the Publish node. Blotato handles the media transfer automatically.

The Upload Media endpoint is still available if you prefer to use it, or if you need to host media on Blotato's servers.


Upload Media

Endpoint

Base URL: https://backend.blotato.com/v2

URL: /media

Method: POST

Description

This endpoint allows users to upload media by providing a URL. The uploaded media will be processed and stored, returning a new media URL that is used to publish a new post. Most of the platforms require validated URLs for posting images.

You can upload:

  • publicly accessible URLs

  • base64 encoded image data

Media uploads are limited to 200MB file size or smaller.

Request

Request Body

Field

Type

Required

Description

url

string

βœ…

The URL of the media to upload.

Responses

Success Response

Status Code: 201 Created

Response Body:

Error Responses

Internal Server Error

Status Code: 500 Internal Server Error

Too Many Requests

Media upload has a user-level rate limit of 10 requests / minute.

Status Code: 429 Too many requests

Error Codes

The following client error codes may be returned:

Code
Description

9999

Unknown error.

Examples

1. Upload Media

Response:

Seeing error "Google Drive can't scan this file for viruses"?

This is the most common issue when using Google Drive. When you try to access your file, you see this popup "Google Drive can't scan this file for viruses":

The issue is when you host a large video on google drive, it will show this popup, which prevents Blotato from accessing the video.

Recommended workaround: if you're regularly posting large videos (100MB+), I recommend using Dropbox, AWS S3 or GCP bucket, or similar tool where there is no issue sharing large video files.

Last updated