Authentication
This page details how to get an API Key as well as how to authenticate requests.
API Key
Authenticating Requests
curl -X POST \
"<url>" \
-H "accept: application/json" \
-H "x-api-key: <api_key>" \
-H "Content-Type: application/json" \
-d <json_payload>'import requests
url="https://toto.oz.xyz/api/metadata/get_past_usernames"
headers={
'accept': 'application/json',
'x-api-key': api_key,
'Content-Type': 'application/json',
}
example_payload={
'user': username,
'how': 'username',
'page': 1,
}
response = requests.post(url=url, headers=headers, json=example_payload)Last updated