Sign-in with username and password
Signing in using the username and password
HTTP Request
POST/api/users/auth/pwd/signin
Authorization
Authorization
- Required: No
- Permission: None
- Authentication: None
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| username | String | Yes | User provided username |
| password | String | Yes | User provided password |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3api = requests.Session()
4response = api.post(
5 'http://www.example.com/api/users/auth/pwd/signin/',
6 json={
7 "username": "johndoe",
8 "password": "password123"
9 }
10)1curl "http://www.example.com/api/users/auth/pwd/signin/" -X POST -H "Content-Type: application/json" -d '{
2 "username": "johndoe",
3 "password": "password123"
4}'Response Fields
| Field | Type | Description |
|---|---|---|
| token | String | Authentication token for the user |
Example Response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
Notes
- The
usernameandpasswordfields must be provided. - The response will contain a
token(authentication token) for the user. - The token can be used for subsequent authenticated requests by including it in the
Authorizationheader.