Response Payload
Every endpoint returns a message key that bears a summary of the http call. If the status code from the call is a 2XX, a data key bears the data from the call.
- 4XX are errors resulting from bad or missing input from user
- 5XX are server errors from our servers
import requests
url = "https://14mtshnsuf.execute-api.eu-west-1.amazonaws.com/v1/wallet/create_wallet"
headers = {'Content-Type': 'application/json', 'Authorization': 'Token <<YourToken>>'}
data = {"user_id": "123}
response = requests.post(url, json=data, headers=headers)
print(response