Skip to main content
GET
/
agents
/
{agentId}
/
connections
JavaScript
import Cerca from '@cerca-dev/sdk';

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

const response = await client.connections.listForAgent('agent_abc123');

console.log(response.connections);
{
  "connections": [
    {
      "accountLabel": "<string>",
      "createdAt": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "owner": {},
      "scopes": [
        "<string>"
      ],
      "updatedAt": "<string>",
      "attachedAt": "<string>",
      "metadata": {}
    }
  ],
  "cursor": "<string>",
  "hasMore": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.cerca.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required
Minimum string length: 1
Example:

"agent_abc123"

Response

Attached connections.

connections
object[]
required
cursor
string | null
required
hasMore
boolean
required