Skip to main content

Hi,

Is there any way that I can get the Department list using the API?

@HLicea 51023bd misd Thank you for submitting your question to our community! 😄

What are you trying to accomplish? There are a few threads around “departments”. 


Thank you,

I’m using API for a local dev, and I need the department list, I have been browsing on Incident IQ API v1.0 (stoplight.io) and https://apihub.incidentiq.com/  there is a big list, but I can’t find any way to get department list


@HLicea 51023bd misd Are you trying to map via API to the departments? If so, you can find those listed under your Department Mappings tab of your SSO: 

 


Thank you.

Actually, what I need is only a list that includes the ID and name for each department.

 


@HLicea 51023bd misd I just wanted to let you know that I escalated this request, and I am just waiting on them to get back to us on what we can do for this! 


Thank you for your response.


Good Afternoon @HLicea 51023bd misd 

I hope you are doing well! 

After following up with my Team, my Team let me know that since this API call is not currently available in the API documentation that the call may not be fully supported at this time, but I was able to locate an API call that you may be able to use to return a list of departments for your district. If your district were to make a POST call using the following call below, it should return a list of department values that are added to users. With that said, in the call you may notice {} brackets. For each of these brackets you will want to replace the {} brackets with the information inside the brackets that is specific for your district: 

curl --location 'https://{SITE}.incidentiq.com/api/v1.0/filters' \
--header 'accept: application/json, text/plain, */*' \
--header 'accept-language: en-US,en;q=0.9' \
--header 'client: WebBrowser v1723875687587' \
--header 'content-type: application/json' \
--header 'priority: u=1, i' \
--header 'productid: 88df910c-91aa-e711-80c2-0004ffa00010' \
--header 'siteid: {SITEID}' \
--header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
--data '{"Facets":s"department"],"Query":"","ResultsFilter":{"EntityName":"users","ShowAll":false,"ShowDeleted":false}}' 

Best Regards,
Drew


Reply