Get
Returns a specific key-value entry by key.
Query Parameters
- key string required
A string reprenting a key in the key-value database.
Key path components are split by a slash (e.g.
a/b/chas the path components["a", "b", "c"]). Slashes can be escaped by using a forward slash (e.g.a/b\/c/dhas the path components["a", "b/c", "d"]).See
rivet.api.kv.common#KeyComponentsfor the structure of arivet.api.kv.common#Keysplit by/. - watch_index string
A query parameter denoting the requests watch index.
- namespace_id string
Possible values: Value must match regular expression
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$A universally unique identifier.
- 200
- 400
- 403
- 404
- 408
- 429
- 500
Get 200 response
Schema
- value
The key's JSON value.
- deleted boolean
Whether or not the entry has been deleted. Only set when watching this endpoint.
watch object required
Provided by watchable endpoints used in blocking loops.
- index string required
Index indicating the version of the data responded.
Pas this to
rivet.common#WatchQueryto block and wait for the next response.
BadRequestError 400 response
Schema
- code string required
- message string required
- metadata
Unstructured metadata relating to an error. Must be manually parsed.
ForbiddenError 403 response
Schema
- code string required
- message string required
- metadata
Unstructured metadata relating to an error. Must be manually parsed.
NotFoundError 404 response
Schema
- code string required
- message string required
- metadata
Unstructured metadata relating to an error. Must be manually parsed.
UnauthorizedError 408 response
Schema
- code string required
- message string required
- metadata
Unstructured metadata relating to an error. Must be manually parsed.
RateLimitError 429 response
Schema
- code string required
- message string required
- metadata
Unstructured metadata relating to an error. Must be manually parsed.
InternalError 500 response
Schema
- code string required
- message string required
- metadata
Unstructured metadata relating to an error. Must be manually parsed.