|I am preparing the JSON for a request to a BT API endpoint, where can I find my site identifier or site prefix?|
The easiest way to find the proper site identifier (also referred to as the “site prefix” in some places) is to open the Sites page under the Settings modal and get the value in the “Tag Prefix” column for the desired “Site Name”.
If you do not have access to the Sites page, then you can also get the site prefix through the “View JSON for API” popup while you are viewing data for the desired site. Once you see the View JSON for API popup, you can copy the site identifier from the value in the “site” or “prefix” parameter. See the related FAQ about how to View JSON for API.
Alternatively, if you want the site prefix for the site that is assigned to your user profile by default (or the only site you have access to), then you can click the Profile icon in the upper right corner of the page, select View Profile, and then see the site identifier in the “Default Site” row of the table.
*Please note that the site identifier / prefix will be the same across all API endpoints. You do not need to find the site identifier separately for the performance, resource, error, event-markers, etc. endpoints. You may need to check the documentation page to know if the site identifier needs to go into a parameter called “site” or one called “prefix”, but the value will be the same.
Please sign in to leave a comment.