Skip to main content
GET
JavaScript

Authorizations

Authorization
string
header
required

Telnyx API key. Collections and results are automatically scoped to the authenticated user's organization.

Path Parameters

slug
string
required

The collection's slug (unique within your organization).

Example:

"support-transcripts"

Query Parameters

query
string

Natural-language search query. When provided, the text is matched against the collection's document chunks using the collection's retrieval_type (vector or hybrid). When omitted, documents are returned as a plain catalog listing.

Minimum string length: 1
Example:

"customer called about billing issue"

top_k
integer

Maximum number of ranked results to consider. When omitted, the collection's configured top_k setting is used.

Required range: 1 <= x <= 50
Example:

10

sources
string

Comma-separated list of source types to restrict the search to. When omitted, all of the collection's sources are searched.

Example:

"voice,message"

retrieval_type
enum<string>

Override the collection's configured retrieval strategy for this request. Echoed back in meta.retrieval_type.

Available options:
vector,
hybrid,
keyword
Example:

"hybrid"

filter
object

Field filters applied before ranking, using filter[field][operator]=value. Supported operators: eq (default), in, gte, gt, lte, lt, contains. Known fields: record_type, record_id, user_id, record_created_at, ingested_at; any other name resolves to a metadata.<field> filter. Example: filter[record_id][eq]=rec_123.

page[number]
integer
default:1

Page number to return (1-based). Defaults to 1.

Required range: x >= 1
Example:

1

page[size]
integer
default:20

Number of results per page. Defaults to 20.

Required range: 1 <= x <= 100
Example:

20

Response

Ranked (or listed) collection documents.

data
object[]
meta
object