List Site Sections

Returns the libraries the owner chose for each website section of a Panda AI Builder site, in order. This endpoint is public and read-only and is never edge-cached.

GET/v1/site-sections

Authentication

Public key?key=pk_…

Public key in the `key` query parameter. No OAuth, no secret.

Edge cache: no-store (private, no-store)

Query Parameters

keystring
required

The site's public key (pk_…). It selects the account. Safe to ship to the browser.

Responses

200Success
application/json
sectionsobject

Errors

401Missing or invalid public key
403TENANT_INACTIVE: the account has no active subscription (body also carries `code`)

Notes

  • Keys look like `<page>.<section>` (for example `home.areas`) or `identity.<slot>`. The site code asks for a section by key.
  • `libraryIds: null` means the owner made no choice: show the default your design declares. Fetch a library's items with the libraries endpoints.
  • `hidden` is kept only for older clients and is always false. A section with no saved choice is missing from `sections`.
Request
curl --request GET \
--url "https://api.pandaidx.com/v1/site-sections?key={{public_key}}"
Response200 OK
{
"sections": {
"home.areas": {
"libraryIds": [
"66f1a2b3c4d5e6f708192a40",
"66f1a2b3c4d5e6f708192a41"
],
"hidden": false
},
"footer.areas": {
"libraryIds": null,
"hidden": false
}
}
}