pagehive

get_value

Get one value by key, including read_access.

ValuesRead-onlyAll plans

What it does

Get one value by key, including read_access. This is the only call that returns a secret value's content. read_access: public = pages, page scripts (bp.value) and GET /data/_values can read it. private (default) = pages can print it ({{ values.key }}) when the site owns it or has a share, but scripts and the public JSON can't. secret = for tokens, API keys and passwords: stored encrypted, never on a page, in a script, in the public JSON or in a site template; a page that uses it is refused at save; only get_value returns the content, and list_values shows the key only.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
keyrequiredstringThe value's key.

Example

Call get_value with these arguments:

{
  "key": "opening_hours"
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides

  • ValuesSingle facts, such as a total, a status or a token.