Execute requests#
Beta version
The functionality is in beta. Features may change and may also work unstably.
To execute a request to the Instagram API, you have to execute a GET, POST or DELETE request at
{{apiUrl}}/waInstance{{idInstance}}/sendMessage/{{apiTokenInstance}}
The request address is generated from:
- the API host
apiUrl/mediaUrl, - the instance number
idInstance, - the method
method, - the access key
apiTokenInstance.
These parameters must be obtained in advance in the console in accordance with the Before you start section.
Example of a request to send a message by the SendMessage method:
https://5100.api.green-api.com/waInstance5100000000/sendMessage/bde035edae3fc00bc116bd112297908d8145e5ba8decc5d884
Request headers#
Most requests should contain standard headers:
Content-Type-application/json
The exception is the methods that accept a file (SendFileByUpload and SetProfilePicture): their body is passed as multipart/form-data.
Debug requests#
To debug requests to the GREEN-API it is recommended to use the Postman collections.