# Login a user and get a token to use for authentiction **POST /api/v2/login** Login a user and get a token to use for authentiction. ## Servers - https://api.hcgateway.shuchir.dev: https://api.hcgateway.shuchir.dev () ## Parameters ### Body: application/json (object) - **username** (string) - **password** (string) ## Responses ### 200 #### Body: application/json (object) - **token** (string) The bearer token you should use for future requests. - **refresh** (string) The refresh token you should use to get a new token after the current one expires. - **expiry** (string(date-time)) The time the token expires. This is always 12 hours after the token was issued. [Powered by Bump.sh](https://bump.sh)