Protected endpoints accept a Bearer token. Create a named key in NWMS or obtain a token through POST /api/login.
API v1 and v2 accept profile keys directly. Keys use the owner's current permissions, and all keys share the user's rate limits. Managing another user's keys requires the role permission and access to manage that account.
GET /api/v2/me
Accept: application/json
Authorization: Bearer YOUR_TOKEN
Send the request to your own NWMS installation. A 200 response confirms access. The key list shows the date and time the API last accepted each key. If you receive 401, check the installation address, key and expiry. A 403 response calls for checking the owner's permissions.
Create a replacement, update your integration and verify a request. Then delete the old key by name and ID. If a key is exposed, delete it immediately.
POST /api/login
Content-Type: application/json
Accept: application/json
{
"email": "user@example.com",
"password": "YOUR_PASSWORD"
}
Read access_token from the response and send it in the same Authorization: Bearer YOUR_TOKEN header. POST /api/logout revokes the token sent with that request.