Query syntax 
To access the Medflex API method, you need to make either a POST or GET request like:
GET https://api.medflex.ru/v1/models/doctor/?page=1&size=50&detailed=false
All API methods respond with a JSON object.
Headlines
You need to use the Authorization header to send the access key with the request.
Authorization: Token <ACCESS KEY>
Path parameters
Specify the name of the API method as part of the request URL.
https://api.medflex.ru/v1/models/doctor/?
Important. The method name is case-sensitive.
Query parameters
PARAMS (optional) — input parameters of the corresponding API method, a sequence of name=value pairs separated by an ampersand. The list of parameters is listed on the method description page.
Example
Calling the categories method for a user with the medical device ID lpu_id=10:
GET https://api.medflex.ru/v1/services/categories/?lpu_id=10&page=2
Response example:
{
⠀⠀"links": {
⠀⠀⠀⠀"next": "https://api.medflex.ru/v1/services/categories/?lpu_id=10&page=2",
⠀⠀⠀⠀"previous": null
⠀⠀},
⠀⠀"count": 7000,
⠀⠀"num_pages": 1,
⠀⠀"data": {
⠀⠀⠀⠀"lpu_id": 10,
⠀⠀⠀⠀"categories": [
⠀⠀⠀⠀⠀⠀{
⠀⠀⠀⠀⠀⠀⠀⠀"id": 1,
,"name": "Medical and diagnostic manipulations of Dermatovenerology"
⠀⠀⠀⠀⠀⠀},
⠀⠀⠀⠀⠀⠀{
⠀⠀⠀⠀⠀⠀⠀⠀"id": 2,
,"name": "X-ray room"
⠀⠀⠀⠀⠀⠀}
⠀⠀⠀⠀]
⠀⠀}
}
Restrictions and recommendations 
Frequency limits 
The limit on the maximum number of requests per second is specified in the current version of the agreement with Medflex.
In addition to restrictions on the frequency of requests, there are also quantitative restrictions on calling the same type of methods.