Read one source, with what was stored
One source and its content, as it was stored: an ingested session’s payload or a remembered fact. A source whose ingest is still queued answers 404 until it has been stored.
GET
/
ai
/
memory
/
namespaces
/
{namespace}
/
profiles
/
{profile_id}
/
sources
/
{source_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 Source = await client.ai.memory.namespaces.profiles.sources.retrieve('namespace', 'profile_id', 'source_id');
console.log(Source.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
)
source = client.ai.memory.namespaces.profiles.sources.retrieve(
"namespace",
"profile_id",
"source_id",
)
print(source.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"),
)
source, err := client.AI.Memory.Namespaces.Profiles.Sources.Get(
context.TODO(),
"namespace",
"profile_id",
"source_id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", source.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().sources().retrieve("namespace", "profile_id", "source_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
source = telnyx.ai.memory.namespaces.profiles.sources.retrieve("namespace", "profile_id", "source_id")
puts(source)<?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 {
$source = $client->ai->memory->namespaces->profiles->sources->retrieve(
'namespace',
'profile_id',
'source_id',
);
var_dump($source);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles:sources retrieve \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_id \
--source-id source_idcurl --request GET \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id}/sources/{source_id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "b1e6c0a2-4f3d-4a2e-9c7b-8e1f2a3b4c5d",
"session_id": "conv_8901",
"memory_count": 3,
"created_at": "2026-08-26T21:14:11Z",
"updated_at": "2026-08-26T21:14:11Z",
"content": {
"messages": [
{
"role": "user",
"content": "invoices go to 220 W Chicago Ave now"
}
]
}
}
}{
"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": "source_not_found",
"detail": "no such source"
}
]
}{
"errors": [
{
"code": "invalid_request",
"detail": "source 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.
Identifies one source within its profile: an ingested session, or one remembered fact. Returned by ingest and remember when the write is accepted. Re-ingesting a session keeps its source id.
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 Source = await client.ai.memory.namespaces.profiles.sources.retrieve('namespace', 'profile_id', 'source_id');
console.log(Source.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
)
source = client.ai.memory.namespaces.profiles.sources.retrieve(
"namespace",
"profile_id",
"source_id",
)
print(source.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"),
)
source, err := client.AI.Memory.Namespaces.Profiles.Sources.Get(
context.TODO(),
"namespace",
"profile_id",
"source_id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", source.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().sources().retrieve("namespace", "profile_id", "source_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
source = telnyx.ai.memory.namespaces.profiles.sources.retrieve("namespace", "profile_id", "source_id")
puts(source)<?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 {
$source = $client->ai->memory->namespaces->profiles->sources->retrieve(
'namespace',
'profile_id',
'source_id',
);
var_dump($source);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles:sources retrieve \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_id \
--source-id source_idcurl --request GET \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id}/sources/{source_id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "b1e6c0a2-4f3d-4a2e-9c7b-8e1f2a3b4c5d",
"session_id": "conv_8901",
"memory_count": 3,
"created_at": "2026-08-26T21:14:11Z",
"updated_at": "2026-08-26T21:14:11Z",
"content": {
"messages": [
{
"role": "user",
"content": "invoices go to 220 W Chicago Ave now"
}
]
}
}
}{
"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": "source_not_found",
"detail": "no such source"
}
]
}{
"errors": [
{
"code": "invalid_request",
"detail": "source id must be a UUID"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}