POST
/
rest
/
api
/
v1
/
agents
/
search
from glean import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as g_client:

    res = g_client.client.agents.list()

    # Handle response
    print(res)
{
  "agents": [
    {
      "agent_id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "metadata": {},
      "capabilities": {
        "ap.io.messages": true,
        "ap.io.streaming": true
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Success

The response is of type object.