Skip to main content

API Integration

We can sent message through API integrations.

Follow these steps to integrate API:

Step 1. Instance/session ID: Get it from the instance details

After successfully launch the Instance, you can see the details in the instance view page.

instance-id

Step 2. Partner API key:

Go to your profile in bottom top, click on settings >> select security >> Postman API key (scroll down to the bottom).

postman-api-key

When there is no Postman key, click on Generate button. Clicking on Generate button will create new key.

generate

Step 3. Use postman collection.

The v3 folder has our latest and improved version.

Click on this url to get the postman collection.

https://www.postman.com/restless-shadow-412097/workspace/unirsal-apis/collection/26756897-598c0616-7b76-48c3-b9dd-6fb42b255cfc?action=share&creator=21762234&active-environment=21762234-59589319-62ed-4e78-a770-a964b5f0e408

postman-collection

Step 4. Then make sure you have added all the environment variables for making the requests from the variables tab in Postman and use this baseUrl: https://api.prod.unirsal.com/backend-service/v3

env-variables

Step 5. Try sending the request

Eg: /whatsapp-session/message (if you want to send a message)

Enter number session id and phone without the +

send-msg

Add Api key

Auth

Click on sent from the top right cornor. Now you can sent message through the api.