İçeriğe geç

Kullanıcı Girişi

POST /v1/auth/sign-in
POST /v1/auth/sign-in

E-posta veya kullanıcı adı ile parola doğrulayarak sisteme entegrasyon erişimi / JWT sağlar.

{
"email":"",
"username":"example",
"password":"example"
}
fetch('https://api.kargomucuz.com/v1/auth/sign-in', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_TOKEN>'
},
body: JSON.stringify({
"email":"",
"username":"example",
"password":"example"
})
})
.then(response => response.json())
.then(data => console.log(data));
200: Başarılı
{
"status": false,
"message": "Kullanıcı bulunamadı.",
"code": 500
}