List a profile's sources, most recently written first
Everything a profile has stored and extracts memories from: each ingested session, and each remembered fact, which has no session. Content is not listed; read one source for it. A source whose ingest is still queued is not here yet. Re-ingesting a session moves it to the front, so a listing paged while sessions are written can repeat or miss one at a page boundary. A session_id narrows the listing to the source that session was stored as: one source or none, and none — an empty page, not a 404 — for a session never ingested, still queued, or another profile’s.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const response of client.ai.memory.namespaces.profiles.sources.list()) {
console.log(response);
}import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.ai.memory.namespaces.profiles.sources.list(
"namespace",
"profile_id",
)
print(page.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"),
)
sources, err := client.AI.Memory.Namespaces.Profiles.Sources.List(
context.TODO(),
"namespace",
"profile_id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", sources.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 page = client.ai().memory().namespaces().profiles().sources().list("namespace", "profile_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.ai.memory.namespaces.profiles.sources.list("namespace", "profile_id")
puts(page)<?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 {
$page = $client->ai->memory->namespaces->profiles->sources->list(
'namespace',
'profile_id',
);
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles:sources list \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_idcurl --request GET \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id}/sources \
--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"
},
{
"id": "9af23d17-2b6c-4d8e-a1f0-3c4b5d6e7f80",
"session_id": null,
"memory_count": 1,
"created_at": "2026-08-25T09:02:44Z",
"updated_at": "2026-08-25T09:02:44Z"
}
],
"meta": {
"page_number": 1,
"page_size": 20,
"total_pages": 1,
"total_results": 2
}
}{
"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": "namespace_not_found",
"detail": "no such namespace"
}
]
}{
"errors": [
{
"code": "invalid_request",
"detail": "limit is no longer supported: page with page[number] and page[size] instead"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}Authorizations
Telnyx API key
Query Parameters
An ingested session, by the session_id it was ingested with. Narrows the request to the source that session was stored as.
128The page to return, counting from 1. Bounded in depth: (page[number] - 1) * page[size] may be at most 10000.
1 <= x <= 10001How many results a page holds.
1 <= x <= 100Response
Successful Response
Show child attributes
Show child attributes
Where a listing's page sits in the whole.
A page is a snapshot: the counts it reports and the order it is drawn in both move as writes land, so paging through a busy namespace can repeat or miss an entry at a page boundary.
Show child attributes
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const response of client.ai.memory.namespaces.profiles.sources.list()) {
console.log(response);
}import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.ai.memory.namespaces.profiles.sources.list(
"namespace",
"profile_id",
)
print(page.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"),
)
sources, err := client.AI.Memory.Namespaces.Profiles.Sources.List(
context.TODO(),
"namespace",
"profile_id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", sources.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 page = client.ai().memory().namespaces().profiles().sources().list("namespace", "profile_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.ai.memory.namespaces.profiles.sources.list("namespace", "profile_id")
puts(page)<?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 {
$page = $client->ai->memory->namespaces->profiles->sources->list(
'namespace',
'profile_id',
);
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles:sources list \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_idcurl --request GET \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id}/sources \
--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"
},
{
"id": "9af23d17-2b6c-4d8e-a1f0-3c4b5d6e7f80",
"session_id": null,
"memory_count": 1,
"created_at": "2026-08-25T09:02:44Z",
"updated_at": "2026-08-25T09:02:44Z"
}
],
"meta": {
"page_number": 1,
"page_size": 20,
"total_pages": 1,
"total_results": 2
}
}{
"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": "namespace_not_found",
"detail": "no such namespace"
}
]
}{
"errors": [
{
"code": "invalid_request",
"detail": "limit is no longer supported: page with page[number] and page[size] instead"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}