API features with the browser session authorization#
Beta version
The functionality is in beta. Features may change and may also work unstably.
The functionality of an instance depends on its way of authorization:
- After the authorization with the login and the password (by the
Loginmethod) all API methods are available, - After the authorization through a browser session (by the
green-api-connectorextension) some methods are unavailable or limited.
Limited methods#
| Method | HTTP code | Response text | Explanation |
|---|---|---|---|
| ForwardMessages | 400 | audioMessage forwarding not supported if instance authorized using extension | The type of the message that is not forwarded is given at the beginning of the text, for example audioMessage or stickerMessage. Text, links, images, videos, shares of posts and Reels and profile cards are forwarded. The other types of messages - voice messages, stickers, GIF animations, stories, locations and polls - are not forwarded |
| GetGroupData | 200 | "allowParticipantsAddMembers": false | The group setting is not read: the value is always false |
| UpdateGroupSettings | 200 | {"updateGroupSettings": false} | The group setting is not changed |
Unavailable methods#
An unavailable method responds with the 422 code.
| Method | HTTP code | Response text | Explanation |
|---|---|---|---|
| SendReelByUrl | 422 | SendReelByUrl: not available for a web session | Reels are not published via the web |
| SendFileByUrl with an audio file | 422 | SendFileByUrl: not available for a web session | A voice message is not sent via the web. An image and a video are sent as usual |
| 422 | SendFileByUpload: not available for a web session | A voice message is not sent via the web. An image and a video are sent as usual | |
| EditComment | 422 | EditComment: not available for a web session | A comment is not edited via the web |
Unavailable notifications#
When the instance is authorized through a browser session, comment notifications do not arrive:
How to get access to all methods#
- End the current session by the Logout method,
- Authorize the instance with the login and the password by the Login method.
The other API methods are available with any way of authorization.