Getting Started
Getting Started
This guide walks you through setting up your environment and making your first API call.
Prerequisites
- A valid NMS user account with assigned facility access
- A tool for making HTTP requests (e.g.,
curl, Postman, or any HTTP client)
Step 1: Authenticate
All API requests (except health checks) require a valid JWT token. Obtain one by calling the login endpoint:
Login Request
Response:
Save the token value — you’ll include it in all subsequent requests.
Step 2: Make an Authenticated Request
Include the token in the Authorization header to call any protected endpoint. For example, to search for a facility:
Search Facilities
Step 3: Explore the API
Here are useful starting points depending on your use case:
Collection Variables
These variables are used throughout the API and should be set based on your context:
Tokens expire after the duration specified in expiresIn (in seconds). If you receive a 401 Unauthorized response, re-authenticate by calling the login endpoint again. See the Authentication Guide for more details.
