Several APIs (generally all collection APIs) need the
siteId parameter to to
execute requests. The
siteId is the internal identifier of the Site where
that content was created.
In all the APIs available from 7.2 GA2+, the
siteKey is also accepted as
a valid parameter. The
siteKey is the external name of the Site (for example
In the REST APIs, you can use
siteKey in all the places that expect a
in GraphQL APIs, there are two different parameters:
siteKey is recommended over
siteId in all situations because it’s
more recognizable, doesn’t expose an internal parameter, and doesn’t change in
There are several ways to retrieve the
Use the Site API to query it by name, friendly URL or in the list of a User’s Sites.
From Liferay DXP’s UI in the Site Administration menu (not recommended).
Grouptable in the database (not recommended).