Internal Zones API
Use the Zones API to:
- Get custom zone prototypes
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
Zone Endpoints
| Functionality | Method | Endpoint |
|---|---|---|
| get custom zone prototypes | GET | /api/v2/custom_zones_prototypes |
Endpoints
Get custom zone prototypes
GET /api/v2/custom_zones_prototypes
- Headers:
- X-User-Email
- X-User-Token
Get custom zones_prototypes. To install prototypes require to install addons. See Zone prototypes for more details.
Response fields
| Field | Description |
|---|---|
| zone_geometry_restriction | Restriction on zone geometry |
| variables | Information about HTML inputs to handle on Site-wise UI |
| project_uid | |
| company_uid | |
| created_at | ISO 8601 string date when prototype were added |
| updated_at | ISO 8601 string date when prototype were updated |
| removed_at | |
| zone_type_id | Zone type id to interact with CORE system |
| zone_type | |
| zone_type.name | System zone name |
| zone_type.display_name | Zone name to display |
| zone_type.id | Zone type id |
Example Response
{
"custom_zones_prototypes": [
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:35.302Z",
"updated_at": "2024-01-18T12:08:35.302Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 22,
"zone_type": {
"name": "stop_no_alert",
"display_name": "Stop zone – no audio alert",
"id": 22
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:35.302Z",
"updated_at": "2024-01-18T12:08:35.302Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 23,
"zone_type": {
"name": "slow_zone",
"display_name": "Slow zone",
"id": 23
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.914Z",
"updated_at": "2024-01-18T12:08:34.914Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 25,
"zone_type": {
"name": "mute_zone",
"display_name": "PIT to PED mute zone",
"id": 25
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.940Z",
"updated_at": "2024-01-18T12:08:34.940Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 26,
"zone_type": {
"name": "wire_required",
"display_name": "Wire guidance required zone",
"id": 26
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.940Z",
"updated_at": "2024-01-18T12:08:34.940Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 27,
"zone_type": {
"name": "height_restriction",
"display_name": "Height restriction zone",
"id": 27
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.940Z",
"updated_at": "2024-01-18T12:08:34.940Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 28,
"zone_type": {
"name": "exit_restriction",
"display_name": "Exit restriction zone",
"id": 28
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.940Z",
"updated_at": "2024-01-18T12:08:34.940Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 29,
"zone_type": {
"name": "speed_restriction",
"display_name": "Speed restriction zone",
"id": 29
}
},
{
"zone_geometry_restriction": [],
"variables": [
{
"htmlType": "number",
"name": "max_occupancy",
"label": "Maximum occupancy zone",
"required": true,
"type": "number",
"min": 0,
"step": 1
}
],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.890Z",
"updated_at": "2024-01-18T12:08:34.890Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 30,
"zone_type": {
"name": "maximum_occupancy",
"display_name": "Maximum occupancy zone",
"id": 30
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.953Z",
"updated_at": "2024-01-18T12:08:34.953Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 31,
"zone_type": {
"name": "action_required_zone",
"display_name": "Action required zone",
"id": 31
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.857Z",
"updated_at": "2024-01-18T12:08:34.857Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 32,
"zone_type": {
"name": "custom_zone_a",
"display_name": "Custom zone A",
"id": 32
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.857Z",
"updated_at": "2024-01-18T12:08:34.857Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 33,
"zone_type": {
"name": "custom_zone_b",
"display_name": "Custom zone B",
"id": 33
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.857Z",
"updated_at": "2024-01-18T12:08:34.857Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 34,
"zone_type": {
"name": "custom_zone_c",
"display_name": "Custom zone C",
"id": 34
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.857Z",
"updated_at": "2024-01-18T12:08:34.857Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 35,
"zone_type": {
"name": "custom_zone_d",
"display_name": "Custom zone D",
"id": 35
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.857Z",
"updated_at": "2024-01-18T12:08:34.857Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 36,
"zone_type": {
"name": "custom_zone_e",
"display_name": "Custom zone E",
"id": 36
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.857Z",
"updated_at": "2024-01-18T12:08:34.857Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 37,
"zone_type": {
"name": "custom_zone_f",
"display_name": "Custom zone F",
"id": 37
}
},
{
"zone_geometry_restriction": [],
"variables": [],
"project_uid": null,
"company_uid": null,
"created_at": "2024-01-18T12:08:34.857Z",
"updated_at": "2024-01-18T12:08:34.857Z",
"removed_at": "9999-12-31T21:59:59.000Z",
"zone_type_id": 38,
"zone_type": {
"name": "custom_zone_g",
"display_name": "Custom zone G",
"id": 38
}
}
]
}
Zone prototypes
List of prototypes depend on addon lists:
| Display name | Zone type name | Module | id | zone_type_id | Description in documentation |
|---|---|---|---|---|---|
| Boundary In | boundary_in | rtls-addon-boundary-zones | 5 | 20 | Zone that works exclusively with the presence of a "boundary_out" zone, in order to trigger an event that defines whether a trackable is inside/outside a proposed coverage area |
| Boundary Out | boundary_out | rtls-addon-boundary-zones | 6 | 21 | Zone that works exclusively with the presence of a "boundary_in" zone, in order to trigger an event that defines whether a trackable is inside/outside a proposed coverage area |
| Slow zone | slow_zone | rtls-addon-vehicle-restriction-zones | 8 | 23 | Vehicles that enter this zone type will be slowed down. There will be an audio alert for the vehicle operator |
| PIT to PED mute zone | mute_zone | rtls-addon-mute-zone | 10 | 25 | Used to mute PWS alarms (proximity event) between a badge inside the zone and any devices outside of it |
| Wire guidance required zone | wire_required | rtls-addon-raymond-special-zones | 11 | 26 | Special zone type to require that a truck be placed "on wire" by imposing a crawl speed limit |
| Height restriction zone | height_restriction | rtls-addon-raymond-special-zones | 12 | 27 | A zone is placed in an area with overhead hazards to impose operational restrictions on a truck operating with elevated forklift |
| Exit restriction zone | exit_restriction | rtls-addon-raymond-special-zones | 13 | 28 | A zone is placed within x meter of an aisle ending |
| Speed restriction zone | speed_restriction | rtls-addon-raymond-special-zones | 14 | 29 | Special zone type to instruct trucks to travel at a constant slow speed |
| Maximum occupancy zone | maximum_occupancy | rtls-addon-max-occupancy-zone | 15 | 30 | Special zone type to slow down all trucks in area when total number of tracks in area more than allowed capacity |
| Action required zone | action_required_zone | rtls-addon-raymond-special-zones | 16 | 31 | Raymond would use the special zone type to instruct trucks to take a specific action that Redpoint is not privy to |
| Custom zone A | custom_zone_a | rtls-addon-custom-zones | 17 | 32 | Specific custom zone type for Raymond |
| Custom zone B | custom_zone_b | rtls-addon-custom-zones | 18 | 33 | Specific custom zone type for Raymond |
| Custom zone C | custom_zone_c | rtls-addon-custom-zones | 19 | 34 | Specific custom zone type for Raymond |
| Custom zone D | custom_zone_d | rtls-addon-custom-zones | 20 | 35 | Specific custom zone type for Raymond |
| Custom zone E | custom_zone_e | rtls-addon-custom-zones | 21 | 36 | Specific custom zone type for Raymond |
| Custom zone F | custom_zone_f | rtls-addon-custom-zones | 22 | 37 | Specific custom zone type for Raymond |
| Custom zone G | custom_zone_g | rtls-addon-custom-zones | 23 | 38 | Specific custom zone type for Raymond |