Introduction
The Larmbox API can be used to create, retrieve, update, and delete resources within a team. The API is organized around REST. If you have any questions regarding the use of the API, please contact us.
The API is available to all teams. To use the API, you need to authenticate your requests by including your API key. You can create and manage your API keys in your team's settings, under the integrations tab.
The documentation for each endpoint includes a description of the endpoint, the parameters and request body it accepts, and examples of requests and responses. You may choose which programming language you prefer to view the examples in.
Please refer to the API Terms of Service for terms of use.
Authentication
To authenticate your requests, you need to include your API key as a bearer token in the Authorization
header. If the API key is missing or invalid, you will receive a 401 Unauthorized
response.
API keys can be created and managed in your team's settings, under the integrations tab. You can have multiple API keys active at the same time.
Access to resources is determined by the permissions granted to the API key being used. If the API key does not have the required scope for the endpoint being accessed, you will receive a 403 Forbidden
response.
curl --request GET \
--url https://api.larmbox.com/ \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
Error Handling
The Larmbox API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted), and codes in the 5xx range indicate an error with Larmbox's servers.
Pagination
Endpoints that return a list of resources support pagination. Cursor based pagination is used, and the response includes a cursor
field that can be used to fetch the next or previous page of results.
Add the before
or after
query parameter to the request to specify the cursor to use.
Rate Limiting
The Larmbox API uses a number of safeguards against bursts of incoming traffic to help maximize its stability. Users who send many requests in quick succession might see error responses that show up as status code 429. In general, normal use of the API shouldnât generate these errors. As a rule of thumb, an average of more than 120 requests per minute for an extended period of time will trigger rate limiting.
Alarm
This is an object representing an alarm.
Attributes
{
"id": "alr_01jehaxsthfzasqb0cs1x19hgb00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"sequence": 418,
"title": "Title",
"description": "Heavy smoke and flames are observed emanating from the second and third floors of the building.",
"concluded": false,
"concludedAt": "2021-01-01T00:00:00.000Z",
"address": {
"line1": "1 rue de la Paix",
"line2": "Appartement 1",
"postalCode": "75000",
"city": "Paris",
"province": "Ãle-de-France",
"country": "FR"
},
"location": {
"latitude": 60.1699,
"longitude": 24.9384
},
"members": [
{
"id": "mem_01jehaxstgf8s8cg8zhp4x835x00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John",
"user": "John",
"role": null,
"response": {
"id": "res_01jehaxstee7ba6ap2wg4zrf0a00",
"eta": "2021-01-01T00:00:00.000Z"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 24.9384,
"speed": 80.4,
"heading": 90
}
}
],
"vehicles": [
{
"id": "veh_01jehaxstgf8s8cg8zhg946g4v00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"assignment": {
"id": "asg_01jehaxstee7ba6ap2wnxejfva00",
"status": "at_station"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 7.3327,
"speed": 80.4,
"heading": 90
}
}
],
"creator": {
"type": "key",
"key": {
"id": "key_01jehaxstgf8s8cg8zh7q688re00",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxstgf8s8cg8zh80v1zzz00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"user": "usr_01jehaxstgf8s8cg8zhf9sa55m00"
}
},
"tags": [
{
"id": "tag_01jehaxstffmasd13gr1rpk62500",
"name": "Tag 1",
"color": "#000000",
"translations": [
{
"name": "Tagg 1",
"locale": "sv"
}
]
}
],
"media": [
{
"id": "med_01jehaxstgf8s8cg8zgxqre00500",
"description": "Building on fire. Picture taken from the south side.",
"creator": "mem_01jehaxstgf8s8cg8zh3fhawz400",
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733.webp"
}
]
}
Create an alarm
Creates a new alarm.
The following scopes are required to access this endpoint: alarms:create
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "alr_01jehaxsthfzasqb0cs1x19hgb00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"sequence": 418,
"title": "Title",
"description": "Heavy smoke and flames are observed emanating from the second and third floors of the building.",
"concluded": false,
"concludedAt": "2021-01-01T00:00:00.000Z",
"address": {
"line1": "1 rue de la Paix",
"line2": "Appartement 1",
"postalCode": "75000",
"city": "Paris",
"province": "Ãle-de-France",
"country": "FR"
},
"location": {
"latitude": 60.1699,
"longitude": 24.9384
},
"members": [
{
"id": "mem_01jehaxstgf8s8cg8zhp4x835x00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John",
"user": "John",
"role": null,
"response": {
"id": "res_01jehaxstee7ba6ap2wg4zrf0a00",
"eta": "2021-01-01T00:00:00.000Z"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 24.9384,
"speed": 80.4,
"heading": 90
}
}
],
"vehicles": [
{
"id": "veh_01jehaxstgf8s8cg8zhg946g4v00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"assignment": {
"id": "asg_01jehaxstee7ba6ap2wnxejfva00",
"status": "at_station"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 7.3327,
"speed": 80.4,
"heading": 90
}
}
],
"creator": {
"type": "key",
"key": {
"id": "key_01jehaxstgf8s8cg8zh7q688re00",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxstgf8s8cg8zh80v1zzz00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"user": "usr_01jehaxstgf8s8cg8zhf9sa55m00"
}
},
"tags": [
{
"id": "tag_01jehaxstffmasd13gr1rpk62500",
"name": "Tag 1",
"color": "#000000",
"translations": [
{
"name": "Tagg 1",
"locale": "sv"
}
]
}
],
"media": [
{
"id": "med_01jehaxstgf8s8cg8zgxqre00500",
"description": "Building on fire. Picture taken from the south side.",
"creator": "mem_01jehaxstgf8s8cg8zh3fhawz400",
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733.webp"
}
]
}
}
List all alarms
Retrieves a list of alarms.
The following scopes are required to access this endpoint: alarms:read
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "alr_01jehaxsthfzasqb0cs1x19hgb00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"sequence": 418,
"title": "Title",
"description": "Heavy smoke and flames are observed emanating from the second and third floors of the building.",
"concluded": false,
"concludedAt": "2021-01-01T00:00:00.000Z",
"address": {
"line1": "1 rue de la Paix",
"line2": "Appartement 1",
"postalCode": "75000",
"city": "Paris",
"province": "Ãle-de-France",
"country": "FR"
},
"location": {
"latitude": 60.1699,
"longitude": 24.9384
},
"members": [
{
"id": "mem_01jehaxstgf8s8cg8zhp4x835x00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John",
"user": "John",
"role": null,
"response": {
"id": "res_01jehaxstee7ba6ap2wg4zrf0a00",
"eta": "2021-01-01T00:00:00.000Z"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 24.9384,
"speed": 80.4,
"heading": 90
}
}
],
"vehicles": [
{
"id": "veh_01jehaxstgf8s8cg8zhg946g4v00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"assignment": {
"id": "asg_01jehaxstee7ba6ap2wnxejfva00",
"status": "at_station"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 7.3327,
"speed": 80.4,
"heading": 90
}
}
],
"creator": {
"type": "key",
"key": {
"id": "key_01jehaxstgf8s8cg8zh7q688re00",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxstgf8s8cg8zh80v1zzz00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"user": "usr_01jehaxstgf8s8cg8zhf9sa55m00"
}
},
"tags": [
{
"id": "tag_01jehaxstffmasd13gr1rpk62500",
"name": "Tag 1",
"color": "#000000",
"translations": [
{
"name": "Tagg 1",
"locale": "sv"
}
]
}
],
"media": [
{
"id": "med_01jehaxstgf8s8cg8zgxqre00500",
"description": "Building on fire. Picture taken from the south side.",
"creator": "mem_01jehaxstgf8s8cg8zh3fhawz400",
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733.webp"
}
]
}
]
}
Retrieve an alarm
Retrieves an alarm by ID.
The following scopes are required to access this endpoint: alarms:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "alr_01jehaxsthfzasqb0cs1x19hgb00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"sequence": 418,
"title": "Title",
"description": "Heavy smoke and flames are observed emanating from the second and third floors of the building.",
"concluded": false,
"concludedAt": "2021-01-01T00:00:00.000Z",
"address": {
"line1": "1 rue de la Paix",
"line2": "Appartement 1",
"postalCode": "75000",
"city": "Paris",
"province": "Ãle-de-France",
"country": "FR"
},
"location": {
"latitude": 60.1699,
"longitude": 24.9384
},
"members": [
{
"id": "mem_01jehaxstgf8s8cg8zhp4x835x00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John",
"user": "John",
"role": null,
"response": {
"id": "res_01jehaxstee7ba6ap2wg4zrf0a00",
"eta": "2021-01-01T00:00:00.000Z"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 24.9384,
"speed": 80.4,
"heading": 90
}
}
],
"vehicles": [
{
"id": "veh_01jehaxstgf8s8cg8zhg946g4v00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"assignment": {
"id": "asg_01jehaxstee7ba6ap2wnxejfva00",
"status": "at_station"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 7.3327,
"speed": 80.4,
"heading": 90
}
}
],
"creator": {
"type": "key",
"key": {
"id": "key_01jehaxstgf8s8cg8zh7q688re00",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxstgf8s8cg8zh80v1zzz00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"user": "usr_01jehaxstgf8s8cg8zhf9sa55m00"
}
},
"tags": [
{
"id": "tag_01jehaxstffmasd13gr1rpk62500",
"name": "Tag 1",
"color": "#000000",
"translations": [
{
"name": "Tagg 1",
"locale": "sv"
}
]
}
],
"media": [
{
"id": "med_01jehaxstgf8s8cg8zgxqre00500",
"description": "Building on fire. Picture taken from the south side.",
"creator": "mem_01jehaxstgf8s8cg8zh3fhawz400",
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733.webp"
}
]
}
}
Update an alarm
Updates an alarm by ID.
The following scopes are required to access this endpoint: alarms:update
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "alr_01jehaxsthfzasqb0cs1x19hgb00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"sequence": 418,
"title": "Title",
"description": "Heavy smoke and flames are observed emanating from the second and third floors of the building.",
"concluded": false,
"concludedAt": "2021-01-01T00:00:00.000Z",
"address": {
"line1": "1 rue de la Paix",
"line2": "Appartement 1",
"postalCode": "75000",
"city": "Paris",
"province": "Ãle-de-France",
"country": "FR"
},
"location": {
"latitude": 60.1699,
"longitude": 24.9384
},
"members": [
{
"id": "mem_01jehaxstgf8s8cg8zhp4x835x00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John",
"user": "John",
"role": null,
"response": {
"id": "res_01jehaxstee7ba6ap2wg4zrf0a00",
"eta": "2021-01-01T00:00:00.000Z"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 24.9384,
"speed": 80.4,
"heading": 90
}
}
],
"vehicles": [
{
"id": "veh_01jehaxstgf8s8cg8zhg946g4v00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"assignment": {
"id": "asg_01jehaxstee7ba6ap2wnxejfva00",
"status": "at_station"
},
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 7.3327,
"speed": 80.4,
"heading": 90
}
}
],
"creator": {
"type": "key",
"key": {
"id": "key_01jehaxstgf8s8cg8zh7q688re00",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxstgf8s8cg8zh80v1zzz00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"user": "usr_01jehaxstgf8s8cg8zhf9sa55m00"
}
},
"tags": [
{
"id": "tag_01jehaxstffmasd13gr1rpk62500",
"name": "Tag 1",
"color": "#000000",
"translations": [
{
"name": "Tagg 1",
"locale": "sv"
}
]
}
],
"media": [
{
"id": "med_01jehaxstgf8s8cg8zgxqre00500",
"description": "Building on fire. Picture taken from the south side.",
"creator": "mem_01jehaxstgf8s8cg8zh3fhawz400",
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733.webp"
}
]
}
}
Log
The log object represents a log entry. Logs are used to keep track of changes to team settings, roles, tags and vehicles.
Attributes
{
"id": "log_01jehaxsn0fqk8dfbmvyw7s7x500",
"createdAt": "2021-01-01T00:00:00.000Z",
"action": "ROLE_CREATE",
"objectId": "",
"changes": [
{
"key": "name",
"from": "name",
"to": "name"
}
],
"actor": {
"type": "member",
"key": {
"id": "key_01jehaxsmzemm9c3z4mhtp7e9100",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxsmzemm9c3z4mp45egat00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "Doe",
"user": "usr_01jehaxsn0fqk8dfbmvrc21qm600"
}
},
"descriptor": "My Role"
}
List all logs
Retrieves a list of logs.
The following scopes are required to access this endpoint: logs:read
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "log_01jehaxsn0fqk8dfbmvyw7s7x500",
"createdAt": "2021-01-01T00:00:00.000Z",
"action": "ROLE_CREATE",
"objectId": "",
"changes": [
{
"key": "name",
"from": "name",
"to": "name"
}
],
"actor": {
"type": "member",
"key": {
"id": "key_01jehaxsmzemm9c3z4mhtp7e9100",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxsmzemm9c3z4mp45egat00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "Doe",
"user": "usr_01jehaxsn0fqk8dfbmvrc21qm600"
}
},
"descriptor": "My Role"
}
]
}
Retrieve a log
Retrieves a log entry by ID.
The following scopes are required to access this endpoint: logs:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "log_01jehaxsn0fqk8dfbmvyw7s7x500",
"createdAt": "2021-01-01T00:00:00.000Z",
"action": "ROLE_CREATE",
"objectId": "",
"changes": [
{
"key": "name",
"from": "name",
"to": "name"
}
],
"actor": {
"type": "member",
"key": {
"id": "key_01jehaxsmzemm9c3z4mhtp7e9100",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxsmzemm9c3z4mp45egat00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "Doe",
"user": "usr_01jehaxsn0fqk8dfbmvrc21qm600"
}
},
"descriptor": "My Role"
}
}
Stream
The stream object represents a stream entry, similar to a log entry. Streams are used to keep track of changes within a specific alarm.
Attributes
List alarm stream
Retrieves a list of alarm stream objects.
The following scopes are required to access this endpoint: alarms.stream:read
Parameters
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "str_01jehaxsn0fqk8dfbmw189f7my00",
"createdAt": "2021-01-01T00:00:00.000Z",
"action": "ROLE_CREATE",
"objectId": "",
"changes": [
{
"key": "name",
"from": "name",
"to": "name"
}
],
"actor": {
"type": "member",
"key": {
"id": "key_01jehaxsmzemm9c3z4mhtp7e9100",
"name": "My Integration"
},
"member": {
"id": "mem_01jehaxsmzemm9c3z4mp45egat00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "Doe",
"user": "usr_01jehaxsn0fqk8dfbmvrc21qm600"
}
},
"descriptor": "My Role",
"alarm": "alr_01jehaxsn0fqk8dfbmw5qg8s7300"
}
]
}
Response
The response object represents a member response, usually created by a team member. It contains information about the response, such as the estimated time of arrival and the status of the response.
Attributes
{
"id": "res_01jehaxsrverf9w7756ms51qaz00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"eta": "2021-01-01T00:00:00.000Z",
"status": "2021-01-01T00:00:00.000Z",
"member": {
"id": "mem_01jehaxsrverf9w7756g6sg4dr00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John"
}
}
Create a response
Creates a new response.
The following scopes are required to access this endpoint: alarms.responses:create
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "res_01jehaxsrverf9w7756ms51qaz00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"eta": "2021-01-01T00:00:00.000Z",
"status": "2021-01-01T00:00:00.000Z",
"member": {
"id": "mem_01jehaxsrverf9w7756g6sg4dr00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John"
}
}
}
List all responses
Retrieves a list of responses.
The following scopes are required to access this endpoint: alarms.responses:read
Parameters
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "res_01jehaxsrverf9w7756ms51qaz00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"eta": "2021-01-01T00:00:00.000Z",
"status": "2021-01-01T00:00:00.000Z",
"member": {
"id": "mem_01jehaxsrverf9w7756g6sg4dr00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John"
}
}
]
}
Retrieve a response
Retrieves a response by ID.
The following scopes are required to access this endpoint: alarms.responses:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "res_01jehaxsrverf9w7756ms51qaz00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"eta": "2021-01-01T00:00:00.000Z",
"status": "2021-01-01T00:00:00.000Z",
"member": {
"id": "mem_01jehaxsrverf9w7756g6sg4dr00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John"
}
}
}
Update a response
Updates a response by ID.
The following scopes are required to access this endpoint: alarms.responses:update
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "res_01jehaxsrverf9w7756ms51qaz00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"eta": "2021-01-01T00:00:00.000Z",
"status": "2021-01-01T00:00:00.000Z",
"member": {
"id": "mem_01jehaxsrverf9w7756g6sg4dr00",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "John"
}
}
}
Delete a response
Deletes a response by ID.
The following scopes are required to access this endpoint: alarms.responses:delete
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "res_01jehaxss4fvgvnqphq027seq900"
}
}
Assignment
The assignment object represents a vehicle response. Assignments are created when a vehicle is assigned to an alarm.
Attributes
{
"id": "asg_01jehaxstyfxx845as6tse5q4r00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"status": "2021-05-01T00:00:00.000Z",
"vehicle": {
"id": "veh_01jehaxstyfxx845as6p5k7c9k00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"speed": 0,
"heading": 90
}
}
}
Create an assignment
Creates a new vehicle assignment.
The following scopes are required to access this endpoint: alarms.assignments:create
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "asg_01jehaxstyfxx845as6tse5q4r00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"status": "2021-05-01T00:00:00.000Z",
"vehicle": {
"id": "veh_01jehaxstyfxx845as6p5k7c9k00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"speed": 0,
"heading": 90
}
}
}
}
List all assignments
Retrieve a list of vehicle assignments.
The following scopes are required to access this endpoint: alarms.assignments:read
Parameters
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "asg_01jehaxstyfxx845as6tse5q4r00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"status": "2021-05-01T00:00:00.000Z",
"vehicle": {
"id": "veh_01jehaxstyfxx845as6p5k7c9k00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"speed": 0,
"heading": 90
}
}
}
]
}
Retrieve an assignment
Retrieves a vehicle assignment by ID.
The following scopes are required to access this endpoint: alarms.assignments:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "asg_01jehaxstyfxx845as6tse5q4r00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"status": "2021-05-01T00:00:00.000Z",
"vehicle": {
"id": "veh_01jehaxstyfxx845as6p5k7c9k00",
"name": "Vehicle 1",
"type": "firetruck",
"active": true,
"position": {
"createdAt": "2021-01-01T00:00:00.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"speed": 0,
"heading": 90
}
}
}
}
Delete an assignment
Deletes a vehicle assignment by ID.
The following scopes are required to access this endpoint: alarms.assignments:delete
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "asg_01jehaxstzf71t1tj6zpwfth6q00"
}
}
Media
The media object represents a media file, such as an image or video. A media object can be attached to an alarm.
Attributes
{
"id": "med_01jehaxsv8frea36nh4zzqjdvc00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"description": "Building on fire. Picture taken from the south side.",
"alarm": "alr_01jehaxsv8frea36nh50pvkw4d00",
"creator": null,
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
Create a media object
Creates a new media object.
The following scopes are required to access this endpoint: alarms.media:create
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "med_01jehaxsv8frea36nh4zzqjdvc00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"description": "Building on fire. Picture taken from the south side.",
"alarm": "alr_01jehaxsv8frea36nh50pvkw4d00",
"creator": null,
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
}
List all media objects
Retrieves a list of media objects.
The following scopes are required to access this endpoint: alarms.media:read
Parameters
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "med_01jehaxsv8frea36nh4zzqjdvc00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"description": "Building on fire. Picture taken from the south side.",
"alarm": "alr_01jehaxsv8frea36nh50pvkw4d00",
"creator": null,
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
]
}
Retrieve a media object
Retrieves a media object by ID.
The following scopes are required to access this endpoint: alarms.media:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "med_01jehaxsv8frea36nh4zzqjdvc00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"description": "Building on fire. Picture taken from the south side.",
"alarm": "alr_01jehaxsv8frea36nh50pvkw4d00",
"creator": null,
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
}
Update a media object
Updates a media object by ID.
The following scopes are required to access this endpoint: alarms.media:update
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "med_01jehaxsv8frea36nh4zzqjdvc00",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"description": "Building on fire. Picture taken from the south side.",
"alarm": "alr_01jehaxsv8frea36nh50pvkw4d00",
"creator": null,
"url": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
}
Delete a media object
Deletes a media object by ID.
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "med_01jehaxsvcfq0rz5nf6k8py4qv00"
}
}
Team
The team object a team. A team is the overall organization.
Attributes
{
"id": "tea_01jehaxv53e4c8p8sxy2bbwjb600",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "My Team",
"invite": "ABCDEF",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"locale": "en",
"locales": [
"sv",
"fi"
],
"targetResponseTime": 10,
"plan": 3.99,
"scope": [
"team:read",
"tags:read",
"tags:create",
"tags:update",
"tags:delete"
]
}
Update a team
Updates a team by ID.
The following scopes are required to access this endpoint: team:update
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "tea_01jehaxv53e4c8p8sxy2bbwjb600",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "My Team",
"invite": "ABCDEF",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"locale": "en",
"locales": [
"sv",
"fi"
],
"targetResponseTime": 10,
"plan": 3.99,
"scope": [
"team:read",
"tags:read",
"tags:create",
"tags:update",
"tags:delete"
]
}
}
Retrieve a team
Retrieves a team by ID.
The following scopes are required to access this endpoint: team:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "tea_01jehaxv53e4c8p8sxy2bbwjb600",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "My Team",
"invite": "ABCDEF",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733",
"locale": "en",
"locales": [
"sv",
"fi"
],
"targetResponseTime": 10,
"plan": 3.99,
"scope": [
"team:read",
"tags:read",
"tags:create",
"tags:update",
"tags:delete"
]
}
}
Role
The role object represents a role that can be assigned to a team member. Roles are used to categorize team members.
Attributes
{
"id": "rol_01jehaxstdfexagz72123wz39a00",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "Water Rescue",
"color": "#ff0000",
"members": [
{
"id": "mem_01jehaxstcfdwr0h44z5rc0sr400",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
],
"translations": [
{
"name": "Dykare",
"locale": "sv"
}
]
}
Create a role
Creates a new role.
The following scopes are required to access this endpoint: roles:create
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "rol_01jehaxstdfexagz72123wz39a00",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "Water Rescue",
"color": "#ff0000",
"members": [
{
"id": "mem_01jehaxstcfdwr0h44z5rc0sr400",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
],
"translations": [
{
"name": "Dykare",
"locale": "sv"
}
]
}
}
List all roles
Retrieve a list of roles.
The following scopes are required to access this endpoint: roles:read
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "rol_01jehaxstdfexagz72123wz39a00",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "Water Rescue",
"color": "#ff0000",
"members": [
{
"id": "mem_01jehaxstcfdwr0h44z5rc0sr400",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
],
"translations": [
{
"name": "Dykare",
"locale": "sv"
}
]
}
]
}
Retrieve a role
Retrieves a role by ID.
The following scopes are required to access this endpoint: roles:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "rol_01jehaxstdfexagz72123wz39a00",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "Water Rescue",
"color": "#ff0000",
"members": [
{
"id": "mem_01jehaxstcfdwr0h44z5rc0sr400",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
],
"translations": [
{
"name": "Dykare",
"locale": "sv"
}
]
}
}
Update a role
Updates a role by ID.
The following scopes are required to access this endpoint: roles:update
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "rol_01jehaxstdfexagz72123wz39a00",
"createdAt": "2021-01-01T00:00:00.000Z",
"name": "Water Rescue",
"color": "#ff0000",
"members": [
{
"id": "mem_01jehaxstcfdwr0h44z5rc0sr400",
"name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://cdn.larmbox.com/production/user-content/3b147142d911dd80b97ae55e48f215e7dffee604caa93c4d9b72ccdd3ac0fe9b6b502c0f0c1dc145844d67f3fb6a5bd56ddd910856f5534cd4d174ce6d5b9733"
}
],
"translations": [
{
"name": "Dykare",
"locale": "sv"
}
]
}
}
Delete a role
Deletes a role by ID.
The following scopes are required to access this endpoint: roles:delete
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "rol_01jehaxv4cf899se73yhwf00a200"
}
}
Vehicle
The vehicle object represents a vehicle that can be used to respond to alarms. It contains information about the vehicle, such as the type of vehicle, status and location.
Attributes
{
"id": "veh_01jehaxv86fkz9xgxz7pwgsrr900",
"createdAt": "2021-05-01T00:00:00.000Z",
"name": "ABC-123",
"type": "ambulance",
"active": true,
"position": {
"createdAt": "2021-05-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 104.12,
"speed": 80.4,
"heading": 90
}
}
Create a vehicle
Creates a new vehicle.
The following scopes are required to access this endpoint: vehicles:create
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "veh_01jehaxv86fkz9xgxz7pwgsrr900",
"createdAt": "2021-05-01T00:00:00.000Z",
"name": "ABC-123",
"type": "ambulance",
"active": true,
"position": {
"createdAt": "2021-05-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 104.12,
"speed": 80.4,
"heading": 90
}
}
}
List all vehicles
Retrieve a list of vehicles.
The following scopes are required to access this endpoint: vehicles:read
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "veh_01jehaxv86fkz9xgxz7pwgsrr900",
"createdAt": "2021-05-01T00:00:00.000Z",
"name": "ABC-123",
"type": "ambulance",
"active": true,
"position": {
"createdAt": "2021-05-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 104.12,
"speed": 80.4,
"heading": 90
}
}
]
}
Retrieve a vehicle
Retrieve avehicle by ID.
The following scopes are required to access this endpoint: vehicles:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "veh_01jehaxv86fkz9xgxz7pwgsrr900",
"createdAt": "2021-05-01T00:00:00.000Z",
"name": "ABC-123",
"type": "ambulance",
"active": true,
"position": {
"createdAt": "2021-05-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 104.12,
"speed": 80.4,
"heading": 90
}
}
}
Update a vehicle
Updates a vehicle by ID.
The following scopes are required to access this endpoint: vehicles:update
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "veh_01jehaxv86fkz9xgxz7pwgsrr900",
"createdAt": "2021-05-01T00:00:00.000Z",
"name": "ABC-123",
"type": "ambulance",
"active": true,
"position": {
"createdAt": "2021-05-01T00:00:00.000Z",
"latitude": 60.1699,
"longitude": 24.9384,
"altitude": 104.12,
"speed": 80.4,
"heading": 90
}
}
}
Delete a vehicle
Deletes a vehicle by ID.
The following scopes are required to access this endpoint: vehicles:delete
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "veh_01jehaxv8re2r8w5vdny312fwc00"
}
}
Create a vehicle position
Creates a new position.
Parameters
Attributes
{
"timestamp": 1733601192
}
Tag
The tag object represents a tag that can be attached to an alarm. Tags are used to categorize alarms.
Attributes
{
"id": "tag_01jehaxv4ve9wvchqz1g73rtk600",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"name": "Tag",
"color": "#000000",
"translations": [
{
"name": "Tag",
"locale": "sv"
}
]
}
Create a tag
Creates a new tag.
The following scopes are required to access this endpoint: tags:create
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "tag_01jehaxv4ve9wvchqz1g73rtk600",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"name": "Tag",
"color": "#000000",
"translations": [
{
"name": "Tag",
"locale": "sv"
}
]
}
}
List all tags
Retrieve a list of tags.
The following scopes are required to access this endpoint: tags:read
Query
{
"count": 10,
"cursor": {
"before": "dmVoXzAxaDU0bm10OGRyczM5Yzdka3F6ajhrenk3MDA=",
"after": "dmVoXzAxaDU0bm55c3pnNGFnYmd3YTR4YzF4bnpqMDA="
},
"timestamp": 1733601192,
"data": [
{
"id": "tag_01jehaxv4ve9wvchqz1g73rtk600",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"name": "Tag",
"color": "#000000",
"translations": [
{
"name": "Tag",
"locale": "sv"
}
]
}
]
}
Retrieve a tag
Retrieve a tag by ID.
The following scopes are required to access this endpoint: tags:read
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "tag_01jehaxv4ve9wvchqz1g73rtk600",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"name": "Tag",
"color": "#000000",
"translations": [
{
"name": "Tag",
"locale": "sv"
}
]
}
}
Update a tag
Updates a tag by ID.
The following scopes are required to access this endpoint: tags:update
Parameters
Attributes
{
"timestamp": 1733601192,
"data": {
"id": "tag_01jehaxv4ve9wvchqz1g73rtk600",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"name": "Tag",
"color": "#000000",
"translations": [
{
"name": "Tag",
"locale": "sv"
}
]
}
}
Delete a tag
Deletes a tag by ID.
The following scopes are required to access this endpoint: tags:delete
Parameters
{
"timestamp": 1733601192,
"data": {
"id": "tag_01jehaxv4yfc7bch1wk9r8vxj000"
}
}