> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://stelltec.com/rhebok/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://stelltec.com/rhebok/docs/_mcp/server.

# Show what a memory's text retrieves

GET http://127.0.0.1:7331/api/memory/reach

Runs the memory's own text as a hook-tier search and lists the
documents (not other memories) that clear the hook threshold. A
missing id, an unknown id, a disabled or unreadable memory store, or an
embedding failure is a 200 with `error` set.


Reference: https://stelltec.com/rhebok/docs/api/memories/get-memory-reach

## Request

### Query parameters

- `id` (string, required) — The memory's full id. It must match exactly; a prefix is not enough here.

## Response

### 200

The documents the memory reaches, or why it could not be computed.

- `MemoryReach`
  - MemoryReach0
  - Error: Error

## Errors

### 421 Misdirected Request Error

The `Host` header does not name this dashboard (see the rules at the top of this page).

- `error` (string, required) — What went wrong, in plain words.

### 500 Internal Server Error

lbug's `vector` extension could not be loaded. This is a stable state, so `stable` is true and a retry will not help.

- `error` (string, required) — The message, which names the extension directory.
- `stable` (true, required) — Always true. The state will not clear on retry.

### 503 Service Unavailable Error

The index store could not be opened or read right now. A retry can succeed.

- `error` (string, required) — What went wrong, in plain words.

## Types

### MemoryReach0

- `reach` (list of ReachedDocument, required)

### Error

- `error` (string, required) — What went wrong, in plain words.

### ReachedDocument

- `doc_id` (string, required)
- `title` (string, required)
- `uri` (string, required)
- `relevance` (double, required)

## Examples

### reached

**Response**

```json
{
  "reach": [
    {
      "doc_id": "3f9a1c0be47d2a5591c8e0f6a7b3d214",
      "relevance": 0.8125,
      "title": "How we ship",
      "uri": "file:///Users/me/vault/70-engineering/how-we-ship.md"
    }
  ]
}
```

**SDK Code**

```python reached
import requests

url = "http://127.0.0.1:7331/api/memory/reach"

querystring = {"id":"a41c09e2f7b3"}

response = requests.get(url, params=querystring)

print(response.json())
```

```javascript reached
const url = 'http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go reached
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby reached
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java reached
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3")
  .asString();
```

```php reached
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3');

echo $response->getBody();
```

```csharp reached
using RestSharp;

var client = new RestClient("http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift reached
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### unknown

**Response**

```json
{
  "error": "no memory with id `zzz`"
}
```

**SDK Code**

```python unknown
import requests

url = "http://127.0.0.1:7331/api/memory/reach"

querystring = {"id":"a41c09e2f7b3"}

response = requests.get(url, params=querystring)

print(response.json())
```

```javascript unknown
const url = 'http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go unknown
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby unknown
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java unknown
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3")
  .asString();
```

```php unknown
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3');

echo $response->getBody();
```

```csharp unknown
using RestSharp;

var client = new RestClient("http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift unknown
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://127.0.0.1:7331/api/memory/reach?id=a41c09e2f7b3")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```