Snippets and Shortcuts

Before Getting Started

  • Review the Authorization section of the Guides page
  • Make sure you are subscribed to the correct product
  • Configure Postman with a valid Access token using the Authorization Code or Password Grant type

Find All Incident Apparatus using Incident Alarm Date/Time

While you can find all Apparatus tied to an incident by sending a request to Incident Exposures, you can also filter on Alarm Time of the Incident.

  1. Find all Incidents, locate your incident and make note of the incidentDateTime value
            GET https://data.emergencyreporting.com/agencyincidents/incidents
    
            Returns:
    
            {
                "incidentID": "123456xx",
                "stationID": "12345",
                "state": "WA",
                "incidentDateTime": "2030-01-01 12:30:01.000",
                ...
            }
        
  2. Filter all Exposure Apparatus with the same alarmDateTime value
            GET https://data.emergencyreporting.com/agencyincidents/exposures/apparatuses?filter=alarmDateTime eq 2030-01-01 12:30:01.000
    
            Returns:
    
            {
                "exposureApparatuses": [
                    {
                        "apparatusID": "112233xx",
                        "agencyApparatusID": "E123",
                        "departmentApparatusID": "665544",
                        "apparatusTypeID": "40",
                        "apparatusUseID": "0",
                        "wasCancelled": "0",
                        "responseModeToScene": null,
                        "responseModeNemsis3": null,
                        "injuryOrOnsetDateTime": null,
                        "alarmDateTime": "2030-01-01 12:30:01.000",
                        ...
                    },
                    {
                        "apparatusID": "554433xx",
                        "agencyApparatusID": "E543",
                        "departmentApparatusID": "998877",
                        "apparatusTypeID": "40",
                        "apparatusUseID": "0",
                        "wasCancelled": "0",
                        "responseModeToScene": null,
                        "responseModeNemsis3": null,
                        "injuryOrOnsetDateTime": null,
                        "alarmDateTime": "2030-01-01 12:30:01.000",
                        ...
                    }
                ]
            }
            

Find all Occupancies that have Changed Since a Specified Date

Use the changedSince parameter to produce a list of all Occupancies that have changed since a date you specify (ex: January 02, 2050)

GET https://data.emergencyreporting.com/agencyoccupancies/occupancies?changesSince=01/02/2050

Find all Personnel who can be Assigned to an Apparatus

Filter on the archive field to exclude personnel who are archived. Any Personnel with archive = 1 will be excluded.

GET https://data.emergencyreporting.com/agencyusers/v2/users?filter=archive eq 0&limit=1000&offset=0

Back to Top