Skip to main content

Automating Postmypost publications with Make (Integromat)

What is Make?

Make (formerly Integromat) is a visual automation and integration platform that lets you build workflows without coding. You create scenarios composed of modules: each module performs a single action — retrieves data, transforms it, or sends it to another service via API.

How does Make work?

  • A scenario consists of modules connected by flows.
  • It can be triggered manually, on a schedule, by a webhook, or by other events.
  • Data passes through modules sequentially where it can be filtered, branched by conditions, and transformed with mappers.

What do we use Make for?

Make helps automate routine tasks when you need to connect multiple services: collect data, process it, and send it to Postmypost for publishing. This reduces manual work, minimizes errors, and speeds up content delivery.

Example: end‑to‑end flow for creating posts with AI image generation

Scenario goal:

  • An AI model generates an image from a prompt.
  • The generated image is uploaded to Postmypost via API automatically.
  • After a successful upload, a post with this image is created and scheduled/published.
https://make.com/

Important: every request to the Postmypost API must include the HTTP authorization header:

Authorization: Bearer <token>

Where <token> is your access token (see “How to get an API token in Postmypost?” below).

Step 1. Create a Scenario

  1. Sign in to Make and create a new Scenario.
  2. Add the first trigger module (e.g., Manual, Scheduler, or Webhooks).
    https://make.com/

Step 2. Generate an AI image

Implementation options:

  • OpenAI Images/DALL·E module — if available in your Make plan.
  • Or an HTTP module that calls a third‑party image generation service and returns a URL to the resulting image.

The output of this step should be an HTTP(S) URL to the generated image (e.g., https://.../generated.jpg).

https://make.com/

Step 3. Initialize upload (to Postmypost)

Use the HTTP “Make a request” module in Make:

  • Method: POST
  • URL: the Postmypost upload‑initialization endpoint (see your API spec)
  • Headers: Authorization: Bearer <token> and Content-Type: application/json
  • Body (JSON):
{
"project_id": 245678,
"url": "<URL from Step 3>"
}

Expected response:

{
"id": 1283466,
"url": "https://storage.example.com/123/uploaded_img.jpg",
"size": 259390,
"status": 5
}

Notes:

  • id — upload identifier (you’ll need it later)
  • url — temporary S3 upload URL
  • status = 5 — waiting for upload
https://make.com/

Step 4. Complete upload

Again, use the HTTP “Make a request” module:

  • Method: POST (or as defined in your API spec)
  • URL: the Postmypost upload‑completion endpoint
  • Headers: Authorization and Content-Type
  • Body (JSON):
{
"id": 112233
}

Sample response:

{
"id": 112233,
"status": 1
}

status = 1 — the file has been uploaded successfully.

https://make.com/

Step 5. Check upload status

HTTP “Make a request” module:

  • Method: GET
  • URL: the status‑check endpoint with the id from previous steps
  • Headers: Authorization

Sample response:

{
"id": 112233,
"file_id": 778899,
"status": 1
}

Important:

  • file_id — required to create a publication.

Statuses:

  • 5 — waiting for upload
  • 4 — uploading
  • 3 — processing
  • 2 — error
  • 1 — uploaded successfully
https://make.com/

Step 6. Create a Postmypost publication

HTTP “Make a request” module:

  • Method: POST
  • URL: the Postmypost publication‑creation endpoint
  • Headers: Authorization and Content-Type: application/json
  • Body (JSON):
{
"project_id": 245678,
"post_at": "2025-06-28T15:00:00+03:00",
"delete_at": "2025-07-05T15:00:00+03:00",
"rubric_id": 17289,
"account_ids": [4, 7, 10],
"publication_status": 4,
"details": [
{
"publication_type": "post",
"content": "Your post text",
"file_ids": [778899]
}
]
}

Where:

  • file_ids — an array of file IDs; pass the file_id obtained in Step 6 here.

The output will be a confirmation of publication creation and its identifier.

https://make.com/
https://make.com/

FAQ

How to get an API token in Postmypost?

  1. Open the "Access Tokens" section.
    https://app.postmypost.io/
  2. Click the "Create" button.
    https://app.postmypost.io/
  3. Specify a name for the token.
    https://app.postmypost.io/
  4. Save the generated token.
    https://app.postmypost.io/