For Developers

Agents

List Agents

agents.list(options);

Retrieve a list of Agents.

Arguments

ParameterTypeDescription
optionsobjectThis function supports standard paging options.

Example Usage

for await (const agent of edlink.agents.list()) {
    console.log(agent.relationship);
}

Fetch Agent

agents.fetch(agent_id, options);

Retrieve an individual Agent.

Arguments

ParameterTypeDescription
agent_idstringThe UUID of the agent.
optionsobjectThis function supports standard paging options.

Example Usage

const agent = await edlink.agents.fetch(agent_id);
console.log(agent.relationship);