Auth
This section describes the authentication process for the API.
Login
Creates a login request.
Request Body
Name
Type
Description
{
"success": true,
"message": "Token sent to the email address (developers should use the token within the /auth/verifylogin path."
}curl --request POST \
--url http://api.shipitor.com/auth/login \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]"
}'import axios from "axios";
const options = {
method: 'POST',
url: 'http://api.shipitor.com/auth/login',
headers: {'Content-Type': 'application/json' },
data: {email: '[email protected]'}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});import requests
url = "http://api.shipitor.com/auth/login"
payload = {"email": "[email protected]"}
headers = {
"Content-Type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)Verify Login
Valid a login request
Request Body
Name
Type
Description
Last updated