Getting started

Starting making requests

Once you’ve got your token, you can start making requests to our API.

The API endpoint is: https://api.masterpoll.xyz

We accept only GET and POST HTTP Methods.

All the requests to our endpoint must be served over HTTPS and need to be presented in this form: https://api.masterpoll.xyz/user<token>/<method>.
e.g. https://api.masterpoll.xyz/user123456789:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe

Using UTF-8 for encoding is strongly recommended!

How the response payload is structured?

The response contains a JSON object, which always has a Boolean field ok.

If ok equals true, the request was successful, and the result of the query can be found in the result field.

In case of an unsuccessful request, ok will be false, and the error will be explained in the description field (e.g. ID_REQUIRED).