Skip to main content
GET
/
env
JavaScript
import Client from 'agentlin_client';

const client = new Client({
  apiKey: process.env['AGENTLIN_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const envInfo of client.env.list()) {
  console.log(envInfo.name);
}
{
  "environments": [
    {
      "name": "<string>",
      "source": "<string>",
      "module": "<string>",
      "importable": "<string>",
      "default_params_summary": "<string>",
      "origin": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

starting_after
string | null

Cursor for pagination

ending_before
string | null

Cursor for pagination

limit
integer | null
default:100

Maximum number of environments to return

Response

Successful Response

列出环境响应

environments
EnvInfo · object[]
required