Introduction
Automate your WhatsApp with Periskope APIs
Welcome to the Periskope API documentation. Periskope APIs lets you extend the capabilities of WhatsApp and automate actions on your WhatsApp account and the Periskope platform.
The Periskope API is designed based on REST principles has predictable, responsibly named URLs and returns simple JSON objects. Our APIs ensure straightforward and effective communication with your Periskope account, offering capabilities such as sending messages, raising tickets, creating groups etc.
We encourage responsible usage of the APIs. Follow these best practices and recommendations for safe actions on WhatsApp - https://docs.periskope.app/get-started/best-practices
Prerequisites
- Sign up for a free account on Periskope: To use the Periskope API, you need to have an active Periskope account. If you don’t have one, you can sign up for a 7-day free trial here.
- Scan the QR code from WhatsApp to connect your phone: A connected phone is required to use the APIs
- Generate an API Key: An API key is required for authentication and can be generated from your Periskope settings here.
Setting up APIs on Postman 🔗
Search for Periskope API Collection (Postman)
To begin, search for the Periskope Platform API
collection on Postman or
click here to
open.
This collection contains all the requests you need to work with our API.
Search Periskope Platform API
Create a fork
- To fork the collection, right click on the collection.
- Click on the
Create a Fork
button in the menu. - Now you can choose
name
of the collection and theworkspace
you want to add it to. - This will fork the collection into
your workspace
Create a fork
Add headers
For Postman
users, we’ve made setting up testing for Periskope APIs on Postman
easy for you.
You don’t need to pass x-phone
or authorization
header with each request.
Just need to update orgPhone
and apiKey
in the collection variables in order to automatically pass the headers into each request.
In case, you’re using any other tools for testing APIs, you’ll need to pass the headers manually for each request.
If you’re using Postman, follow the steps given below -
Update collection variables
- You need to add
apiKey
andorgPhone
variables in the collection. You can do this by clicking on the collection and then clicking on theVariables
tab. - In the
Variables
tab, update the value of theapiKey
you generated in the previous step. - You also need to update the value of
orgPhone
with your phone number (with country code and without any special characters) to validate an API request. For e.g.919876512340
.
Done ✅
That’s it! Now you can start testing the Periskope APIs from your Postman collection.
Update collection variables
Was this page helpful?