Read one memory, and what it came from
One memory by its id, as recall and the listing return it, together with what it came from. A fact names its source_id: read it with GET .../sources/{source_id} to see what was stored. A memory derived from other memories names them in derived_from instead; read each of those to reach its source.
GET
/
ai
/
memory
/
namespaces
/
{namespace}
/
profiles
/
{profile_id}
/
memories
/
{memory_id}
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const Memory = await client.ai.memory.namespaces.profiles.memories.retrieve('namespace', 'profile_id', 'memory_id');
console.log(Memory.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
memory = client.ai.memory.namespaces.profiles.memories.retrieve(
"namespace",
"profile_id",
"memory_id",
)
print(memory.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
memory, err := client.AI.Memory.Namespaces.Profiles.Memories.Get(
context.TODO(),
"namespace",
"profile_id",
"memory_id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", memory.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var response = client.ai().memory().namespaces().profiles().memories().retrieve("namespace", "profile_id", "memory_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
memory = telnyx.ai.memory.namespaces.profiles.memories.retrieve("namespace", "profile_id", "memory_id")
puts(memory)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$memory = $client->ai->memory->namespaces->profiles->memories->retrieve(
'namespace',
'profile_id',
'memory_id',
);
var_dump($memory);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles:memories retrieve \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_id \
--memory-id memory_idcurl --request GET \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id}/memories/{memory_id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "mem_01HZY4",
"text": "Invoices go to 220 W Chicago Ave.",
"recorded_at": "2026-08-26T21:14:11Z",
"source_id": "b1e6c0a2-4f3d-4a2e-9c7b-8e1f2a3b4c5d",
"derived_from": null
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request.",
"source": {
"pointer": "/"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}{
"errors": [
{
"code": "memory_not_found",
"detail": "no such memory"
}
]
}{
"errors": [
{
"code": "invalid_request",
"detail": "memory id must be a UUID"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}Authorizations
Telnyx API key
Path Parameters
The namespace. default exists for every organization.
The profile: your identifier for the user, caller or agent this memory is about.
A memory's id, as recall and the listing return it.
Response
Successful Response
Show child attributes
Show child attributes
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const Memory = await client.ai.memory.namespaces.profiles.memories.retrieve('namespace', 'profile_id', 'memory_id');
console.log(Memory.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
memory = client.ai.memory.namespaces.profiles.memories.retrieve(
"namespace",
"profile_id",
"memory_id",
)
print(memory.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
memory, err := client.AI.Memory.Namespaces.Profiles.Memories.Get(
context.TODO(),
"namespace",
"profile_id",
"memory_id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", memory.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var response = client.ai().memory().namespaces().profiles().memories().retrieve("namespace", "profile_id", "memory_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
memory = telnyx.ai.memory.namespaces.profiles.memories.retrieve("namespace", "profile_id", "memory_id")
puts(memory)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$memory = $client->ai->memory->namespaces->profiles->memories->retrieve(
'namespace',
'profile_id',
'memory_id',
);
var_dump($memory);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles:memories retrieve \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_id \
--memory-id memory_idcurl --request GET \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id}/memories/{memory_id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "mem_01HZY4",
"text": "Invoices go to 220 W Chicago Ave.",
"recorded_at": "2026-08-26T21:14:11Z",
"source_id": "b1e6c0a2-4f3d-4a2e-9c7b-8e1f2a3b4c5d",
"derived_from": null
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request.",
"source": {
"pointer": "/"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}{
"errors": [
{
"code": "memory_not_found",
"detail": "no such memory"
}
]
}{
"errors": [
{
"code": "invalid_request",
"detail": "memory id must be a UUID"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}