Skip to content

Execute requests#

To execute a request to the Green API, you have to execute GET or POST request at{{idInstance}}/{{method}}/{{apiTokenInstance}}

The request address is generated from the account number idInstance and the access keyapiTokenInstance, which must be obtained in advance in Your profile in accordance with Before you start section.

The required API method, described in API documents is used as method parameter.

Example of a request to send a message by SendMessage method:

Request titles#

Most requests should contain standard titles:

  • Content-Type - application/json

In some cases titles may differ, for example, for SendFileByUpload file sending method

Debug requests#

To debug requests to the Green API it is recommended to use Postman collection