Login

View as Markdown
> **Start Here** — This is the **entry point** of the NMS API Platform Platform API and the **default landing page** of the published documentation at [https://apidocs.nms.go.ug](https://apidocs.nms.go.ug). Run this request first to obtain your JWT token before calling any other endpoint. Authenticates a user against the NMS API Platform and returns a JWT Bearer token. **Request Body (JSON):** ```json { "username": "your_username", "password": "your_password" } ``` **Success Response (200 OK):** ```json { "token": "eyJhbGciOiJIUzM4NCJ9...", "expiresIn": 3600 } ``` **Post-Response Script:** The returned token is automatically saved to the `jwt_token` collection variable, so all subsequent requests will use it via `Authorization: Bearer {{jwt_token}}`. **Notes:** - Run this request first before calling any other endpoint. - If you receive `401 Unauthorized` on other requests, re-run this to refresh the token.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
usernamestringRequired
passwordstringRequired

Response

Successful response