Authenticate
curl --request POST \
--url https://auth.replace-me.example.com/authenticate \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "********"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com', password: '********'})
};
fetch('https://auth.replace-me.example.com/authenticate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://auth.replace-me.example.com/authenticate"
payload = {
"email": "user@example.com",
"password": "********"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"token": "********",
"status": "ok"
}Authentication
Authenticate
`POST` request to obtain token, use your WW API Username / PW as basic auth parameters.
*Request Body Structure*
| Path | Type | Description |
| --- | --- | --- |
| `email` | `String` | User account email |
| `password` | `String` | User account password |
*Response Body Structure*
| Path | Type | Description |
| --- | --- | --- |
| `token` | `String` | Auth token used in the auth header of every subsequent request as a Bearer Token. <br> <br>**Note**: Expires after 60 minutes of inactivity |
| `status` | `String` | `ok` or `bad` |
POST
/
authenticate
Authenticate
curl --request POST \
--url https://auth.replace-me.example.com/authenticate \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "********"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com', password: '********'})
};
fetch('https://auth.replace-me.example.com/authenticate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://auth.replace-me.example.com/authenticate"
payload = {
"email": "user@example.com",
"password": "********"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"token": "********",
"status": "ok"
}
