Skip to main content
GET
/
ai
/
mcp_servers
JavaScript
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 mcpServerListResponse of client.ai.mcpServers.list()) {
  console.log(mcpServerListResponse.id);
}
[
  {
    "id": "<string>",
    "name": "<string>",
    "type": "<string>",
    "url": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "api_key_ref": "<string>",
    "allowed_tools": [
      "<string>"
    ]
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
string
url
string
page[size]
integer
default:20
Required range: 1 <= x <= 100
page[number]
integer
default:1
Required range: x >= 1

Response

Successful Response

id
string
required
name
string
required
type
string
required
url
string
required
created_at
string<date-time>
required
api_key_ref
string | null
allowed_tools
string[] | null