Login a user and get a token to use for authentiction
Login a user and get a token to use for authentiction.
POST
/api/v2/login
curl \
--request POST https://api.hcgateway.shuchir.dev/api/v2/login \
--header "Content-Type: application/json" \
--data '{"username":"string","password":"string"}'
Request examples
{
"username": "string",
"password": "string"
}
Response examples (200)
{
"token": "string",
"refresh": "string",
"expiry": "2025-05-04T09:42:00+00:00"
}