# Portal Portal API ## Get All Portals - [GET /portals](https://apidev.egain.com/apis/v4/knowledge/portalmgr/api-bundled/portal/getallportals.md): ## Overview The Get All Portals API returns all portals in a partition or department. ## Get All Portals Accessible To User - [GET /myportals](https://apidev.egain.com/apis/v4/knowledge/portalmgr/api-bundled/portal/getmyportals.md): ## Overview The Get All Portals Accessible to User API allows a user to fetch all portals accessible to user across all department. * If no access tags are specified for a portal, then any user can access the portal. * If access tags are specified for a portal, users with a user profile that allows access have access to the portal. For users with multiple user profiles, the user profile that allows access does not need to be the active user profile. * All the global users(partition) cannot be assigned user profiles; their access is limited to portals without access restrictions. * The only articles returned are associated to an Article type when the parameter, “Include in browse on portals” is set to "Yes". * When the "shortUrlTemplate" query parameter is provided, the API filters accessible portals according to the specified language and template name. Portal Short URL specific to to the "shortUrlTemplate" query parameter value is returned in the response. * When there is no short URL available for a specific language, the API returns a portal object with an empty "shortURL" field. ## Get Portal Details By ID - [GET /portals/{portalID}](https://apidev.egain.com/apis/v4/knowledge/portalmgr/api-bundled/portal/getportaldetailsbyid.md): ## Overview The Get Portal Details By ID API allows a user to fetch details of a portal by the ID. ## Get Tag Categories for Interest for a Portal - [GET /portals/{portalID}/tagcategoriesforinterest](https://apidev.egain.com/apis/v4/knowledge/portalmgr/api-bundled/portal/gettagcategoriesforinterestforportal.md): ## Overview The Get Tag Categories for Interest for a Portal API retrieves the Tag Categories for Interest configured for a portal. * Tag Categories are ordered in order of their addition in the "Tag Categories for Interest" in the Portal configuration. * Tags are ordered as per their order defined in their Tag Category. * Tag Groups are sorted by their name, in ascending order.