List connected agents
const url = 'https://api.deploybase.eu/api/v1/api/v1/agent-connections';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/agent-connections \ --header 'Authorization: <Authorization>'Lists the active team’s live agent connections (AI agents signed in through OAuth): the client’s name, id and host, the person who connected it, when, and when it was last used. No tokens or secrets. A viewer sees only their own connections’ email addresses. Requires a signed-in person with any team role: API keys and agent tokens are refused with HUMAN_SESSION_REQUIRED.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”OK
object
object
object
ClientHost is the host of client_id (a CIMD URL); empty for a pre-registered id.
Revoked is always false in the list (it holds live connections only); kept so the shape does not change when revoked history is shown later.
UserEmail is the person’s current team address, falling back to the address at approval.
UserID is the Zitadel subject who approved the connection; the agent acts as them.
UserName is the person’s display name in the team, when they have one.
Example generated
{ "data": [ { "client_host": "example", "client_id": "example", "client_name": "example", "created_at": "example", "id": "example", "last_used_at": "example", "revoked": true, "user_email": "example", "user_id": "example", "user_name": "example" } ], "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}HUMAN_SESSION_REQUIRED or FORBIDDEN
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live a8b7eb1d built