The IDs - whether for a Department or a KB Article - are located in the database. If you have database access, the tables are named in a way that you should be able to find the information you need. If you are a hosted customer, please contact us, either by chat or through a ticket, to obtain the IDs you need.
Andrew Barker
Software Developer
SmarterTools Inc.
www.smartertools.com