Get Cms Keys
GET
/api/superadmin/cms/{page_id}/keys
const url = 'https://example.com/api/superadmin/cms/example/keys';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/superadmin/cms/example/keys \ --header 'Authorization: Bearer <token>'Return the key registry with defaults, field types, sections, and labels.
No DB query needed — reads directly from the in-memory registry.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” page_id
required
Page Id
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
CMSKeysResponse
Response model for GET /api/superadmin/cms/{page_id}/keys.
object
page_id
required
Page Id
string
keys
required
Keys
Array<object>
CMSKeyEntrySingle key definition for the registry endpoint.
object
key
required
Key
string
default_value
required
Default Value
string
field_type
required
Field Type
string
section
required
Section
string
label
required
Label
string
Example generated
{ "page_id": "example", "keys": [ { "key": "example", "default_value": "example", "field_type": "example", "section": "example", "label": "example" } ]}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}