import requests
import json
data = {
"phone_number": "+77777777777"
}
headers = {'Content-Type': 'application/json'}
response = requests.post("https://eda.yandex.ru/api/v1/user/request_authentication_code", data=json.dumps(data), headers=headers)
print(response.text)