Blog
hidden-dummy
Postman for beginners: API documentation, testing, and health checks
Instagram Features and Series: 90-minute videos and what they mean for businesses
Seeing double: WhatsApp is testing a dual-camera mode
Telegram API vs Telegram Bot API: how to message a customer by phone number
Formatting Telegram messages via API — a Cheat Sheet
WhatsApp Updates as of November 24, 2026
WhatsApp & Telegram for clinics: bookings, reminders, fewer no-shows
WhatsApp Groups API: Create Groups, Add Members and Moderate
Hybrid setup: combine WABA and WhatsApp API for the best of both worlds
One API for WhatsApp and Telegram: building omnichannel support

Postman for beginners: API documentation, testing, and health checks

Postman for beginners: API docs, tests, and health checks — GREEN-API

At first glance, the Postman window looks like an airplane cockpit: tabs, variables in curly braces, and scripts. In practice, five or six buttons are enough to start, and you can learn the rest as you go.

In one evening, you learn three things: how to read API documentation in Postman, how to check by hand that an API works, and how to write automated tests that run this check for you. You don’t need to know how to code. Every code sample is complete and explained line by line.

Practice on a real API, not a mock one. This tutorial uses GREEN-API for Telegram: it sends and receives Telegram messages through plain HTTP requests. Why this API:

  • It’s free. The Developer plan costs $0, messages are unlimited, and 3 chats are more than enough for learning.
  • The requests are ready. GREEN-API has a public Postman collection with 93 requests, so you don’t type anything by hand.
  • You see the result right away. You send a request, and the message arrives in your Telegram.
  • It grows with you. When a learning project turns into a real one, you change the plan, and your tests keep working.

Everything you learn here works with any other API.

What you need:

  • a computer and a browser;
  • a Telegram account on your phone;
  • 30–60 minutes;
  • Python 3.9+ or Go 1.18+ for the code samples and tests (optional).

Six words to know before you start

Working with an API is like shipping a parcel with a courier service. You fill in a shipping form, the service checks it and gives you a tracking number. If you leave the recipient field empty, the service returns the form and names the empty field. Here is how the terms map to that picture:

TermWhat it isAt the courierIn this tutorial
APIa “window” through which one program asks another to do somethingthe drop-off counterGREEN-API sends Telegram messages on your behalf
Requestan address (URL), a method (GET means “give”, POST means “do”), and a body with dataa filled-in shipping form“send the text Hello to chat 10000000”
Responsea status code (200 means OK, 400 means a bad request) and data in JSON formata receipt with a tracking number, or a rejection with the reason{"idMessage": "1769666251000"}, the ID of the sent message
Collectiona folder of saved requestsa stack of ready-made formsthe ready-made GREEN-API requests
Variablea name in curly braces that Postman replaces with a valuea field you fill with a rubber stamp{{idInstance}} becomes your instance number
Environmenta set of variable values: one for tests, another for productiona set of stamps: one for tests, one for real shipments“GREEN-API — test” with your credentials

One more word comes from GREEN-API: instance. An instance is your courier assigned to one Telegram account. Messages go out through it.

Step 1. Install Postman and get the ready-made collection

  1. Download Postman from postman.com/downloads and sign up. Postman also works in a browser, but the desktop app sends requests to localhost with no extra setup.
  2. Open the GREEN-API Telegram collection.
  3. On the collection, click … → Fork and select your workspace. A fork is your personal copy. You can change anything in it and get updates from the original later with … → Pull changes.

A folder tree appears on the left. The folders follow the same order as the sections of the API documentation:

FolderRequestsWhat it’s for
Account11link Telegram and check that everything works
Sending10send text, files, locations, contacts, and polls, and forward messages
Receiving3get incoming notifications and download files
Journals4view the chat history
Queues5see how many messages wait in the queue and clear it
Groups10create groups and manage members
Read mark1mark a chat as read
Service methods10check a number, get contacts and chats, edit or delete messages
Contacts3add, edit, and delete contacts
Webhooks36sample incoming notifications to test your bot

You don’t need every request at once. Three are enough to start: getStateInstance (instance state), sendMessage (send text), and receiveNotification (get a notification). This tutorial refers to requests by these method names. Each method name is part of the request URL, so you can find any request by searching the collection for it.

Step 2. Get free API access and set up an environment

API access

  1. Sign up in the GREEN-API console.
  2. Create a Telegram instance on the free Developer plan. One console account gets one such instance.
  3. Open the instance card and find four parameters: apiUrl, mediaUrl, idInstance, and apiTokenInstance.

Environment in Postman

You can type these parameters into every request, but then you edit them dozens of times. An environment keeps them in one place:

  1. On the left, open Environments → + and name the environment GREEN-API — test.
  2. Add the variables from the table below.
  3. In the top-right corner, select this environment instead of No Environment. Without this step, variables such as {{apiUrl}} stay empty and requests fail.
VariableValue
apiUrlfrom the console
mediaUrlfrom the console
idInstancefrom the console
apiTokenInstancefrom the console
chatIdthe chat that receives your test messages

chatId is the chat address. In Telegram, a personal chat is a number such as 10000000, and a group is a number with a minus sign, such as -10000000000000. To find a chatId, send the checkAccount request from the Service methods folder with the phone number of your second account or a colleague. The response contains the chatId.

You can also send messages to a phone number in the 79876543210@c.us format, but GREEN-API keeps this format for backward compatibility only. On the Developer plan, it also uses up your quota: the same person counts as two of your 3 chats if you write to their number and to their chatId. Pick one format and stick with it.

The token rule

apiTokenInstance is the key to your Telegram account. Anyone who has it can send messages as you. A Postman variable has two values:

  • the local value, the Value column in the environment table, stays on your computer and never syncs to the Postman cloud, so the token goes here;
  • the shared value syncs to the cloud and your teammates can see it, so the token never goes here. Its column is hidden by default: turn it on with … → Shared Value.

Also mark the variable as sensitive: hover over the apiTokenInstance row, and a Secure button with a lock icon appears next to the name.

If the token leaks, change it in the GREEN-API console or ask support to do it.

Step 3. First request: is the API alive?

Link Telegram

You link the instance to your Telegram account once. The most reliable way is a QR code, and the GREEN-API documentation recommends it too. In Telegram on your phone, open Settings → Devices → Add Device and scan the code from the console.

You can also link the account from Postman with requests from the Account folder:

  1. startAuthorization: put your number without the plus sign in the request body: {"phoneNumber": 79876543210}.
  2. A code arrives in Telegram or by SMS. It is valid for 5 minutes, so send it right away with sendAuthorizationCode: {"code": "12345"}.
  3. If the response contains 2fa_required, your account has a cloud password. Send it with sendAuthorizationPassword.

Telegram instance authorization by phone number: three requests and a branch for the cloud password

Check the state

Open the getStateInstance request in the Account folder and click Send. The response appears at the bottom:

{
    "stateInstance": "authorized"
}

authorized means the API is alive and ready. This is the simplest health check. Other possible responses:

ResponseWhat it meansWhat to do
notAuthorizedTelegram is not linked or is waiting for a codecomplete authorization
pendingPassworda cloud password is requiredsend the password
startingthe instance is startingwait up to 5 minutes, then reboot the instance
suspendedTelegram partly restricted sendingwait until the restriction ends
blockedthe account is blockedcontact support

Send your first message

Open the sendMessage request in the Sending folder, go to the Body tab, and replace the body with this one:

{
    "chatId": "{{chatId}}",
    "message": "Hello from Postman! {{$isoTimestamp}}"
}

Telegram instance authorization by phone number: three requests and a branch for the cloud password

On the left is the collection tree. In the center are the URL with variables and the request body. On the right, the Code panel shows the same request as a cURL command.

Click Send. The response is {"idMessage": "..."}, the message ID, and the message appears in the chat. {{$isoTimestamp}} is a built-in Postman variable that inserts the current time, so each new message differs from the previous one.

Now try to break the request. Delete the text from message and click Send again. You get error 400 with the explanation Validation failed. Details: Message cannot be empty. This is what manual testing looks like: first you check a correct request, then you break the fields one at a time and see whether the API explains the error clearly.

Tip: if something goes wrong, open Console in the Postman footer. It shows exactly what went to the server after Postman replaced the variables.

Step 4. Read the documentation and turn it into code

A Postman collection is documentation that you can run. It has three layers.

Descriptions (Docs)

Every request has a Docs tab with a description. In the GREEN-API collection, it links to the method page in the official documentation, for example SendMessage. In your fork, you can add tips for your team. Descriptions use Markdown:

**What it does:** sends a text message.
**Required fields:** chatId, message (up to 4096 characters).
**Success:** status 200 and a non-empty idMessage.

Response examples (Examples)

Saved response examples sit under the requests in the collection tree. You can view them without sending anything. Error examples help the most: the sendAuthorizationCode request has seven, one for each outcome, from success to an expired code.

A sendAuthorizationCode response example with the 2fa_required error in Postman

The 2fa_required example. The status is 200 OK, but the body says "status": false. In authorization methods, the error comes in the response body, not in the status code.

To save your own example, send the request and select Save Response in the response pane. Before you save it, replace real phone numbers and tokens with fake ones.

From Postman to code

The Code button (</>) in the right sidebar turns any request into code in the language you need, from cURL and Python to C# and Go. There is one catch: the generated code includes your token. The Python and Go samples below keep the credentials in environment variables instead. Both do the same thing: check that the instance is authorized and send a message.

First, set the variables in your terminal (in PowerShell on Windows: $env:GREEN_API_URL = "..."):

export GREEN_API_URL="<apiUrl from the console>"
export GREEN_API_ID_INSTANCE="<idInstance>"
export GREEN_API_TOKEN="<apiTokenInstance>"
export CHAT_ID="10000000"

Python (pip install requests, run with python send.py):

import os

import requests

API_URL = os.environ["GREEN_API_URL"]
ID_INSTANCE = os.environ["GREEN_API_ID_INSTANCE"]
API_TOKEN = os.environ["GREEN_API_TOKEN"]


def call(method, http_method="GET", **kwargs):
    url = f"{API_URL}/waInstance{ID_INSTANCE}/{method}/{API_TOKEN}"
    resp = requests.request(http_method, url, timeout=30, **kwargs)
    resp.raise_for_status()
    return resp.json() if resp.text.strip() else None


state = call("getStateInstance")["stateInstance"]
assert state == "authorized", f"Instance is not authorized: {state}"

sent = call("sendMessage", "POST", json={
    "chatId": os.environ["CHAT_ID"],
    "message": "Hello from Python",
})
print("idMessage:", sent["idMessage"])

Go (standard library only, Go 1.18+, run with go run main.go):

package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "log"
    "net/http"
    "os"
    "time"
)

var client = &http.Client{Timeout: 30 * time.Second}

func call(method, httpMethod string, body, out any) error {
    url := fmt.Sprintf("%s/waInstance%s/%s/%s",
        os.Getenv("GREEN_API_URL"), os.Getenv("GREEN_API_ID_INSTANCE"),
        method, os.Getenv("GREEN_API_TOKEN"))

    var buf bytes.Buffer
    if body != nil {
        if err := json.NewEncoder(&buf).Encode(body); err != nil {
            return err
        }
    }
    req, err := http.NewRequest(httpMethod, url, &buf)
    if err != nil {
        return err
    }
    req.Header.Set("Content-Type", "application/json")

    resp, err := client.Do(req)
    if err != nil {
        return err
    }
    defer resp.Body.Close()
    if resp.StatusCode != http.StatusOK {
        return fmt.Errorf("%s: HTTP %d", method, resp.StatusCode)
    }
    return json.NewDecoder(resp.Body).Decode(out)
}

func main() {
    var state struct {
        StateInstance string `json:"stateInstance"`
    }
    if err := call("getStateInstance", http.MethodGet, nil, &state); err != nil {
        log.Fatal(err)
    }
    if state.StateInstance != "authorized" {
        log.Fatalf("instance is not authorized: %s", state.StateInstance)
    }

    var sent struct {
        IDMessage string `json:"idMessage"`
    }
    msg := map[string]string{"chatId": os.Getenv("CHAT_ID"), "message": "Hello from Go"}
    if err := call("sendMessage", http.MethodPost, msg, &sent); err != nil {
        log.Fatal(err)
    }
    fmt.Println("idMessage:", sent.IDMessage)
}

Both samples build the URL from the same template: {apiUrl}/waInstance{idInstance}/{method}/{apiTokenInstance}. Once you know it, you can call any method in the collection by changing one word in the URL.

Step 5. Your first automated tests

So far, you have looked at each response and decided whether it was OK. An automated test does the same for you. You describe a correct response once, and the check runs on its own after that. The same tests appear twice below: in Postman and in Python.

Tests in Postman

Open the getStateInstance request, go to Scripts → Post-response, and paste this code. Post-response means “run after the response arrives”.

pm.test("Status is 200", function () {
    pm.response.to.have.status(200);
});

pm.test("Response time is under 5 seconds", function () {
    pm.expect(pm.response.responseTime).to.be.below(5000);
});

pm.test("Instance is authorized", function () {
    const data = pm.response.json();
    pm.expect(data.stateInstance).to.eql("authorized");
});

Here is what each line does:

  • pm.test("Status is 200", function () {...}) creates a named test. You see this name in the results.
  • pm.response.to.have.status(200) checks that the server returned status 200.
  • pm.response.responseTime is the response time in milliseconds, and .to.be.below(5000) means “less than 5000”.
  • pm.response.json() turns the response into an object, so you can read the stateInstance field.
  • pm.expect(...).to.eql("authorized") checks that the value equals authorized.

Click Send and open the Test Results tab under the response. Passed tests are green, and failed tests are red. You don’t have to write everything from scratch: the Snippets button in the corner of the editor inserts ready-made code.

A test for sendMessage. It checks that a message ID came back and saves it to a variable. You can pass this ID to another request later, for example to delete the message:

pm.test("Message is sent and has an ID", function () {
    pm.response.to.have.status(200);
    const data = pm.response.json();
    pm.expect(data.idMessage).to.be.a("string").and.not.be.empty;
    pm.collectionVariables.set("idMessage", data.idMessage);
});

A negative test. Duplicate the request (Duplicate), leave message empty in the copy, and add a check that the API rejects it politely:

pm.test("Empty message is rejected", function () {
    pm.response.to.have.status(400);
    pm.expect(pm.response.json().message).to.include("Validation failed");
});

The test checks only the start of the explanation. The text after Details: differs for each field, and GREEN-API may change it.

Beginner’s rule: make sure your test can fail. Temporarily replace "authorized" with "blocked" and click Send. If the test turns red, it works. If it stays green, it checks nothing.

The same tests in Python

When a project has many tests, teams often move them into code next to the project. Here are the same checks in Python with pytest. Save them to test_green_api.py:

import os

import pytest
import requests

API_URL = os.environ["GREEN_API_URL"]
ID_INSTANCE = os.environ["GREEN_API_ID_INSTANCE"]
API_TOKEN = os.environ["GREEN_API_TOKEN"]
CHAT_ID = os.environ["CHAT_ID"]


def url(method):
    return f"{API_URL}/waInstance{ID_INSTANCE}/{method}/{API_TOKEN}"


def test_instance_is_authorized():
    resp = requests.get(url("getStateInstance"), timeout=30)
    assert resp.status_code == 200
    assert resp.elapsed.total_seconds() < 5
    assert resp.json()["stateInstance"] == "authorized"


def test_send_message_returns_id():
    body = {"chatId": CHAT_ID, "message": "Test from pytest"}
    resp = requests.post(url("sendMessage"), json=body, timeout=30)
    assert resp.status_code == 200
    id_message = resp.json().get("idMessage")
    assert isinstance(id_message, str) and id_message


@pytest.mark.parametrize("field", ["chatId", "message"])
def test_send_message_rejects_empty_field(field):
    body = {"chatId": CHAT_ID, "message": "Test"}
    body[field] = ""
    resp = requests.post(url("sendMessage"), json=body, timeout=30)
    assert resp.status_code == 400
    assert resp.json()["message"].startswith("Validation failed")

Install the libraries and run the tests. The environment variables are the same as in step 4:

pip install pytest requests
pytest -v test_green_api.py

How Postman tests map to pytest:

Postmanpytest
pm.test("name", ...)a function whose name starts with test_
pm.response.to.have.status(200)assert resp.status_code == 200
pm.response.responseTimeresp.elapsed.total_seconds()
pm.response.json()resp.json()
pm.expect(a).to.eql(b)assert a == b
a copy of the request for each case@pytest.mark.parametrize, one test for several cases

A good workflow: first get the request working in Postman, then move the test into code.

Step 6. API health check: all tests in one click

Clicking Send in every request gets tedious. Put the checks into one folder and run them together.

Build a Smoke folder

A smoke test is a quick check of whether anything works at all. Create a Smoke folder in your fork and copy the requests with tests from step 5 into it in this order:

  1. getStateInstance: the instance is authorized.
  2. sendMessage: an idMessage came back.
  3. sendMessage with an empty message: the API returned 400.

If the first check fails, the rest are pointless. Add a line to the first request’s tests that stops the run:

if (pm.response.json().stateInstance !== "authorized") {
    pm.execution.setNextRequest(null); // stop here
}

Collection Runner: run the whole folder

  1. Select the Smoke folder in the sidebar and click Run.
  2. Set the delay between requests to 2000 ms. GREEN-API sends messages through a queue, and the pause prevents random failures.
  3. Click Start run.

The Runner sends the requests one by one and shows a summary: how many tests passed and which ones failed.

Data from a file

You can run the same request for each row of a CSV file. Put {{chatId}} and {{message}} in the request body, and on each pass Postman fills them with the values from the next row. For example, this file checks a personal chat and a group:

chatId,message
10000000,Test: personal chat
-10000000000000,Test: group

In the Runner itself, data files are available only on paid Postman plans. Newman, the command-line version of Postman described below, does the same for free: add -d data.csv to the run command. Keep the Developer plan quota in mind: each new chatId in the file takes one of your 3 chats.

Scheduled checks

To learn about a problem before your customers do, run the check on a schedule. There are three options, from simple to advanced:

  • Postman Monitor. A monitor runs a whole collection, so create a small separate collection with one getStateInstance request: it sends nothing to chats. On the collection, select … → More → Create monitor and set a schedule, for example once an hour. If a test fails, Postman sends you an email. The free Postman plan includes 1,000 monitor requests a month, and an hourly check uses about 720.
  • Newman: Postman in the terminal. Export the collection (… → More → Export) and the environment (… → Export) to files, and leave the token empty in the environment file. Then run the command below.
  • CI, for example GitHub Actions. A server runs the same Newman command or pytest every morning and takes the token from the repository secrets.

npx newman@6 run green-api-telegram.postman_collection.json \
  -e green-api-test.postman_environment.json \
  --env-var "apiTokenInstance=$GREEN_API_TOKEN" \
  --folder Smoke --delay-request 2000

Postman no longer updates Newman and recommends the Postman CLI instead. The command is almost the same:

postman collection run green-api-telegram.postman_collection.json \
  -e green-api-test.postman_environment.json \
  --env-var "apiTokenInstance=$GREEN_API_TOKEN" \
  -i Smoke --delay-request 2000

Here is a daily check in GitHub Actions that runs both the Postman tests and the Python tests:

name: API smoke
on:
  schedule:
    - cron: '0 6 * * *' # every morning
  workflow_dispatch: # or manually with a button
jobs:
  smoke:
    runs-on: ubuntu-latest
    env:
      GREEN_API_URL: ${{ secrets.GREEN_API_URL }}
      GREEN_API_ID_INSTANCE: ${{ secrets.GREEN_API_ID_INSTANCE }}
      GREEN_API_TOKEN: ${{ secrets.GREEN_API_TOKEN }}
      CHAT_ID: ${{ secrets.CHAT_ID }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - name: Postman tests
        run: >
          npx newman@6 run postman/green-api-telegram.postman_collection.json
          -e postman/green-api-test.postman_environment.json
          --env-var "apiTokenInstance=$GREEN_API_TOKEN"
          --folder Smoke --delay-request 2000
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - name: Python tests
        run: |
          pip install pytest requests
          pytest -v tests/test_green_api.py

These tests send real messages, so run them on a separate test instance and in a test chat.

Step 7. Incoming messages and webhooks

You can send messages now. The next step is receiving them.

First, turn on notifications. A new instance has them turned off, so the queue stays empty no matter how many messages arrive. Turn them on in the instance settings in the console, or send the setSettings request from the Account folder with this body:

{
    "incomingWebhook": "yes"
}

Now write to your linked Telegram account from another account, and the message lands in the notification queue.

Get notifications from the queue

The queue works like a mailbox: you take a letter out and then throw it away, or you get the same letter next time. The Receiving folder has two requests for this:

  1. receiveNotification waits 5 seconds for a new notification (the receiveTimeout parameter, up to 60) and returns the first one in the queue with its receiptId. If the queue is empty, the response is empty.
  2. deleteNotification removes the notification with this receiptId from the queue.

A receiveNotification response example in Postman

You need receiptId to delete the notification. typeWebhook tells you the event type, and the message text is in body.messageData.

To avoid copying receiptId by hand, add this script to the Post-response tab of the first request:

const text = pm.response.text().trim();
if (!text || text === "null") {
    console.log("No new notifications");
} else {
    const notification = JSON.parse(text);
    pm.collectionVariables.set("receiptId", notification.receiptId);
    console.log("Received:", notification.body.typeWebhook);
}

Now deleteNotification fills in the right ID itself: its URL already contains {{receiptId}}.

The same in Python, a loop that reads and deletes notifications until the queue is empty:

import os

import requests

BASE = f"{os.environ['GREEN_API_URL']}/waInstance{os.environ['GREEN_API_ID_INSTANCE']}"
TOKEN = os.environ["GREEN_API_TOKEN"]

while True:
    resp = requests.get(f"{BASE}/receiveNotification/{TOKEN}", params={"receiveTimeout": 5}, timeout=30)
    resp.raise_for_status()
    if not resp.text.strip() or resp.text.strip() == "null":
        print("Queue is empty")
        break
    notification = resp.json()
    print("Received:", notification["body"]["typeWebhook"])
    requests.delete(f"{BASE}/deleteNotification/{TOKEN}/{notification['receiptId']}", timeout=30)

If you get error 400 with the words custom webhook url is set instead of a notification, a webhook URL is set in the console. The queue and the webhook are two different ways to receive notifications, and they don’t work at the same time. Clear the URL and wait about a minute.

Webhooks: test your bot without Telegram

With a webhook, GREEN-API sends notifications to your bot’s address itself. The Webhooks folder holds 36 sample notifications: text, photo, location, reaction, deleted message, and more.

The Webhooks folder in Postman: sample notifications go to the bot's address

Requests in the Webhooks folder go to {{webhookUrl}}, your bot’s address, not to GREEN-API.

Add a webhookUrl variable with your bot’s address to the environment, for example http://localhost:3000/webhook, and run the folder in the Runner. Within a minute, you know whether your bot handles every message type. You don’t need to ask friends to send you a location or delete a message.

Common beginner mistakes

If something doesn’t work, first send getStateInstance, then look at the Console. The cause is usually in this table:

What you seeWhyHow to fix it
The URL still shows {{apiUrl}}, the request failsno environment is selectedselect the environment instead of No Environment in the top-right corner
A variable is highlighted in reda typo in the name, or the environment has no such variablehover over it and check the name: letter case matters
stateInstance: notAuthorizedTelegram is not linked or got unlinkedcomplete authorization from step 3
Status 200, but authorization failedthe error is in the body: "status": falsecheck data.reason: for example, code_expired means the code expired
Error 400 Validation faileda field in the body is empty or invalidthe text after Details: names the field
Error 466the Developer plan quota ran out, for example you need a 4th chatwait until the limits reset on the 1st of the month, or change the plan
The message is “sent” but never arriveswrong chatIdcheck the format from step 2
A test always passes, even when everything is brokenthe test checks nothingbreak the expected value on purpose and make sure the test turns red
setNextRequest does nothingyou ran the request with Sendthe command works only in a collection run: in the Runner, Newman, or a monitor
The same notification arrives again and againthe notification was not deleted from the queuecall deleteNotification
Requests to localhost failthe browser version of Postman can’t reach your computeruse the Postman desktop app or install the Postman Desktop Agent

When you grow: a paid plan with no rework

The free plan is enough to learn Postman and keep a test setup. When your bot or integration reaches real customers, the 3-chat limit gets in the way. GREEN-API for Telegram plans as of November 2026:

 DeveloperBusiness
Price$0$12 a month
Chats3unlimited
Messagesunlimitedunlimited
Telegram availability checks100 a month30,000 a month
File sizeup to 100 MBup to 100 MB

For integrators with many instances, the Partner plan costs $0.40 a day and is available on request. Check the current prices on the website before you buy.

What do you need to change in Postman? Nothing. You change the plan in the console, and the instance stays the same. So does everything you set up: the environment, the tests, the Smoke folder, Newman, and the Python and Go code.

For a real project, keep two environments:

  • test: a free instance and a test chat for all tests and experiments;
  • prod: an instance on a paid plan that your real bot uses, with only the getStateInstance monitor connected.

You switch environments in the list in the top-right corner, and your tests never reach real customers.

Cheat sheet

The whole tutorial in one list. Check off the items as you go:

  • ☐ Install Postman and fork the GREEN-API Telegram collection
  • ☐ Create a free instance and an environment with five variables
  • ☐ Link Telegram and get authorized
  • ☐ Send your first message and break the request on purpose
  • ☐ Move the request into Python or Go code
  • ☐ Write three tests in Postman and the same tests in pytest
  • ☐ Build the Smoke folder and run it in the Runner
  • ☐ Set up a scheduled check: Monitor or GitHub Actions
  • ☐ Read and delete an incoming notification

The main rule of the whole tutorial: first by hand in Postman, then as a test, then on a schedule.

Useful links

Postman and GREEN-API


GREEN-API for Telegram: create a free instance and send your first request from Postman today.

Table of contents

Scroll to Top