Get Key

Gets the value of a key in a collection. The wildcard * in the path is replaced with the key name.

Authentication

Requires internal authentication. Pass credentials via X-Glue-Authentication header, or apikey and secret headers.

Path Parameters

Parameter Type Description
col string The name of the collection

Example Request

1curl "https://api.hola.cloud/v1/collections/users/keys/user:1001" \
2  -H "X-Glue-Authentication: YOUR_AUTH_TOKEN"

Example Response

1HTTP/1.1 200 OK
2Content-Type: application/json
 1{
 2  "key": "user:1001",
 3  "collection": "users",
 4  "value": {
 5    "name": "Alice",
 6    "email": "alice@example.com",
 7    "role": "admin"
 8  },
 9  "created_at": "2025-06-21T10:00:00Z",
10  "updated_at": "2025-06-21T10:00:00Z"
11}

Error Codes

Status Code Description
403 forbidden Missing authentication headers
404 not_found Collection or key not found
500 internal_error Internal server error

Comments

Leave a comment