Skip to main content

Login

API dùng để login và lấy thông tin theo tài khoản và mật khẩu người được cung cấp.

curl -L -X POST 'https://{base_url}/v1/auth' \
-H 'Content-Type: application/json' \
--data-raw '{
"username" : "foo@test.tel4vn.com",
"password" : "foo123"
}'

Response trả về:

{
"data": {
"user_uuid": "aaaaaaaa-1111-2222-3333-eeeeeeee",
"domain_uuid": "dddddddd-1111-2222-3333-eeeeeeee",
"username": "foo",
"api_key": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeee",
"user_enabled": "true",
"level": "admin"
}
}

Login thành công sẽ trả về thông tin account.

HTTP Request

POST https://{base_url}/v1/auth

Body

ParameterDescription
usernameAccount's username
passwordAccount's password