Illustration with a yellow cookie.
We are using cookies

This website uses cookies and other tracking tools to improve the user experience, display customized content and ads, analyze website traffic, and determine the source of traffic.

Start building AI chatbots and email bots with Amio.

Book a 30-minute session where we will find out how AI bot can help you decrease call center costs, increase online conversion, and improve customer experience.

Book a demo
BlogAPI

Setup Postman for Amio API

March 6, 2022
February 12, 2024

This tutorial will guide you through the setup of Postman to help you evaluate Amio API.

Postman is a developer tool which makes it easy to invoke REST API requests and receive their responses. You can even use environment variables and quickly switch between different requests (which is kind of difficult with older tools like cURL).

Prerequisites

  1. Install Postman.
  2. Download Postman collections.
  3. Connect your Facebook Page to Amio.
  4. Get your first contact. Either send a message from your FB account to your FB page or use the send plugin in administration

Hands on the Setup!

First, we will setup some Postman’s environment variables so that you can freely switch between a simple text and a structured message without having to copy all ids and access tokens again and again. Environment variables are introduced to your requests via placeholders, e.g. {{server_url}}.

In Postman, select environment amio and open the environment variables editor. You will get the values from Amio administration:

Image - Setup Postman
  • access_token - Copy your access token from Settings/Api.
  • channel.id and contact.id - Go to channels and select your connected Facebook Page. From there, navigate to Contacts tab and copy channel id and contact id.
Image - FB Channel

Test Requests

Settings is done, let’s test some requests. From the left side pane, open the Messages/Facebook Messenger collection and select the Image request. Hit the Send button on the right side. You will see an HTTP response. If the status code is 200, you should see the messages in your Messenger.

Image - Test requests

You’re done. Now, you can quickly write and test new requests without going down to programming. Cheers!

Table of Contents
1
Quick Link
Article by:
Matous Kucera

Matous is a co-founder of Amio. As a software engineer, he built several profitable businesses. Now, he is helping e-commerce businesses to get most out of chatbots and email bots.

We understand your business on

Book a 30-min consultation session where we will discuss your support cost optimization potential, experience improvements, including our online conversion increase techniques

Start free