# Read a stored document

Source: https://docs.vlayers.ai/reference/hosting/get-store-document

`GET /v1/agents/{id}/store/{collection}/docs/{docId}` · scope `workspace:read`

Reads one document of a collection the manifest declares. Your own key reads the values as saved. A handler running a request or a schedule reads them through the platform action `store.get`: fields marked personal come back as placeholders unless the endpoint declared the real-values capability.

Requires an API key with the `workspace:read` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The agent id. Example: `"0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78"` |
| `collection` | path | string | yes | The collection id. Example: `"orders"` |
| `docId` | path | string | yes | The document id. Example: `"order-1001"` |

## Request

cURL:

```bash
curl "https://api.vlayers.ai/v1/agents/$AGENT_ID/store/$COLLECTION/docs/$DOC_ID" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { document } = await voicelayer.hosting.getStoreDocument('<agent-id>', '<collection>', '<doc-id>', {

});
console.log(document);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.get_store_document("<agent-id>", "<collection>", "<doc-id>")
print(result.document)
```

## Response `200`

```json
{
  "document": {
    "collection": "orders",
    "id": "order-1001",
    "value": {
      "status": "open",
      "total": 42
    },
    "updatedAt": "2026-10-20T15:04:05.000Z"
  }
}
```
