GET
/
rest
/
api
/
v1
/
agents
/
{agent_id}
from glean import Glean
import os


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

    res = g_client.client.agents.retrieve(agent_id="<id>")

    # Handle response
    print(res)
{
  "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.

Path Parameters

agent_id
string
required

The ID of the agent.

Query Parameters

timezoneOffset
integer

The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.

Response

200
application/json

Success

The response is of type object.