import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const gatewayConfigView of client.gatewayConfigs.list()) {
console.log(gatewayConfigView.id);
}{
"gateway_configs": [
{
"id": "<string>",
"name": "<string>",
"endpoint": "<string>",
"auth_mechanism": {
"type": "<string>",
"key": "<string>"
},
"create_time_ms": 123,
"account_id": "<string>",
"description": "<string>"
}
],
"has_more": true,
"total_count": 123
}List all GatewayConfigs for the authenticated account, including system-provided configs like ‘anthropic’ and ‘openai’.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const gatewayConfigView of client.gatewayConfigs.list()) {
console.log(gatewayConfigView.id);
}{
"gateway_configs": [
{
"id": "<string>",
"name": "<string>",
"endpoint": "<string>",
"auth_mechanism": {
"type": "<string>",
"key": "<string>"
},
"create_time_ms": 123,
"account_id": "<string>",
"description": "<string>"
}
],
"has_more": true,
"total_count": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter by name (partial match supported).
Filter by ID.
The limit of items to return. Default is 20. Max is 5000.
Load the next page of data starting after the item with the given ID.
Successfully retrieved list of GatewayConfigs.
A paginated list of GatewayConfigs.
The list of GatewayConfigs.
Show child attributes
Whether there are more results available beyond this page.
Total count of GatewayConfigs that match the query. Deprecated: will be removed in a future breaking change.
Was this page helpful?