Internal Nodes API
Use the Node API to:
- Validate node.
HTTP Headers
The HTTP headers are used to access all RTLS APIs are listed below. Before submitting requests to the company API, set the following headers.
| Header Name | Example Value | Description |
|---|---|---|
| X-User-Email | admin@example.com | Email of the user performing HTTP requests to the API. |
| X-User-Token | Drv3yU7PdyqUMtr89erZ | Token allowing user access to the API. |
NOTE: Headers are applying to public routes, routes starts with /api/private/... access from localhost and do not
require headers
Set header X-USER-EMAIL
Send a request to log in using POST api/auth/log_in.json described in the Auth API. Using the email
address returned in the response, set: X-USER-EMAIL = data.email
Set header X-USER-TOKEN
Send a request to log in using POST api/auth/log_in.json described in the Auth API. Using the
authentication token returned in the response, set: X-USER-TOKEN = data.token
Set header X-USER-PROJECT
Send a request to get projects using GET api/projects/ described in the Projects API.
You must send this request with headers X-USER-EMAIL and X-USER-TOKEN already set. Using the project UID returned in
the response, set:
X-USER-PROJECT = projects[i].uid
Companies Endpoints
| Functionality | Method | Endpoint |
|---|---|---|
| validate node | POST | /api/v2/nodes/validate/ |
Endpoints
Validate node
POST /api/v2/nodes/validate/
- Headers:
- Content-Type:application/json
- X-User-Email
- X-User-Token
Request Fields
| Field | Required | Type | Description |
|---|---|---|---|
| data | required | array |
array of node/tag mac addresses to validate |
Response fields
| Field | Description |
|---|---|
| valid | Array of valid mac addresses |
| invalid | Array of invalid mac addresses |
| duplicate | Array of duplicate mac addresses |
Example Request
{
"data": [
"0e9680479fbf",
"1234567g9012",
"123456789012"
]
}
Example Response
{
"valid": [
"123456789012"
],
"invalid": [
"1234567g9012"
],
"duplicate": [
"0e9680479fbf"
]
}