API login
curl --request POST \
--url https://api.mannco.store/user/login \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "YOUR_API_KEY"
}
'import requests
url = "https://api.mannco.store/user/login"
payload = { "apiKey": "YOUR_API_KEY" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({apiKey: 'YOUR_API_KEY'})
};
fetch('https://api.mannco.store/user/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"success": true,
"content": {
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}{
"err": true,
"success": false,
"content": "Error message"
}{
"err": true,
"success": false,
"content": "forbidden"
}{
"err": true,
"success": false,
"content": "Internal server error"
}Authentication
API login
Authenticates and returns a JWT used as Authorization: Bearer <jwt> for Connected + API endpoints.
POST
/
user
/
login
API login
curl --request POST \
--url https://api.mannco.store/user/login \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "YOUR_API_KEY"
}
'import requests
url = "https://api.mannco.store/user/login"
payload = { "apiKey": "YOUR_API_KEY" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({apiKey: 'YOUR_API_KEY'})
};
fetch('https://api.mannco.store/user/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"success": true,
"content": {
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}{
"err": true,
"success": false,
"content": "Error message"
}{
"err": true,
"success": false,
"content": "forbidden"
}{
"err": true,
"success": false,
"content": "Internal server error"
}Body
application/json
Your Mannco.store API key
Response
Authenticated
Standard Mannco.store response envelope. err and success flag the outcome; the payload (or error message) is always under content.