REST API organization on the site.
Technical information about the available methods and their operation can be found on the page "API documentation".
Settings
The following parameters are available on the settings page:
API
Who can use the API. Setting options: disabled - the API is disabled for everyone, all users or users who have permission set in their personal settings.
Token transfer method
Several options: via the GET parameter api-token or via the headers with the name api-token.
Logs
Setting responsible for recording logs
Callback logs
Setting responsible for recording and storing callback logs
Methods available to users
Methods that are available to users.
Creating a token in the admin panel
To add a token from the admin panel, you need to go to the token creation page
and fill in all the fields:
User
User ID. 0 - this means that the key is created for the system. The system has the right to work with all methods selected in the token, regardless of the settings.
Allowed IPs
From which IP addresses are allowed to access the API with this token. You can specify not only the full IP, but also the subnet, for example: 127.0.0 or 127.0
Available methods
Methods that are allowed for this token
Creating a token on the site, in the Personal Account
If the user, according to the settings, is allowed to use the API, the API item will appear in the user menu
On the token addition page, you need to fill in the following data:
Enabled methods
Methods that are allowed for this token and which the user will use
Allowed IP (from a new line)
From which IP addresses are allowed to access the API with this token. You can specify not only the full IP, but also a subnet, for example: 127.0.0 or 127.0
After creation, the user will have a token in the list of tokens. You can create several tokens. They can be deleted or edited.