3.1. Generate a Manager Token
Method | URL |
---|---|
POST | /webserv/managers/token |
Creates a manager token required for API authentication. This token does not have an expiration period.
Request Body
Key | Required? | Data Type | Description |
---|---|---|---|
hashedPassword | Yes | string | The MD5 of the manager’s password. |
login | Yes | integer | The unique ID of the manager. |
Output
Key | Data Type | Description |
---|---|---|
webservToken | string | A long-term token authenticating the manager. |
Request Example
curl -X POST ‘https://HOST:PORT/v2/webserv/managers/token’ -H ‘Accept:application/json’ -H ‘Content-Type: application/json’ -d ‘{"hashedPassword": "0f94e246908667af85916300c57f74b6", "login": 2309}’
Expected Response Status Code
200
Response Example
{
"webservToken": "04d95575-c9af-42fba72e-2f0ce93f01d4"
}
Last update: February 6, 2023