API

Post API

In BlogMaker, you can post via the API.

The Post API is available on the Expert Plan and above.

Create a Draft

The endpoint below creates a draft that is ready to published via the BlogMaker Dashboard.

The endpoint can also publish the draft directly, via the "publish" => boolean option below.

https://api.blogmaker.app/create_draft

Example request: Token can be found on "Settings > API > {api_key}"

$headers = array(                                                                          
    'Accept: application/json',
    'Content-Type: application/json',
    'Authorization: Bearer {token}'
);

$data = array(
    "title"       => "{title}",
    "description" => "{description}",
    "url"         => "{url}",
    "image"       => "{image}",
    "text"        => "{text}",
    "publish"     => true // boolean
);

Possible responses:

"status": 200,
"post_id": {post_id}

"status": 401,
"error": "missing_authorization"

"status": 403,
"error": "invalid_api_key"

"status": 429,
"error": "rate_limit"

"status": 500,
"error": "db_error"

Additional possible responses, when "publish===true":

"status": 409,
"error": "numeric_url_not_allowed"

"status": 409,
"error": "url_contains_a_reserved_word"

"status": 409,
"error": "url_not_unique"

Limits

Currently there is a 10 posts per day limit.