import { ProficientClient } from "@proficient/client";
const proficient = new ProficientClient({
apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY,
userExternalId: "...", // The user's unique ID in your system
});
const agentId = "ag_Lad8YCGGiDLiqIZPWRXmc2ix";
const agent = await proficient.agents.get(agentId);
{
"id": "<string>",
"object": "agent",
"active": true,
"description": "<string>",
"display_description": "<string>",
"display_name": "<string>",
"name": "<string>",
"created_at": 123,
"updated_at": 123
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}Agents
Retrieve an agent
Retrieves the agent with the given ID.
GET
/
agents
/
{agent_id}
import { ProficientClient } from "@proficient/client";
const proficient = new ProficientClient({
apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY,
userExternalId: "...", // The user's unique ID in your system
});
const agentId = "ag_Lad8YCGGiDLiqIZPWRXmc2ix";
const agent = await proficient.agents.get(agentId);
{
"id": "<string>",
"object": "agent",
"active": true,
"description": "<string>",
"display_description": "<string>",
"display_name": "<string>",
"name": "<string>",
"created_at": 123,
"updated_at": 123
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}import { ProficientClient } from "@proficient/client";
const proficient = new ProficientClient({
apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY,
userExternalId: "...", // The user's unique ID in your system
});
const agentId = "ag_Lad8YCGGiDLiqIZPWRXmc2ix";
const agent = await proficient.agents.get(agentId);
Response
An _agent_ is an AI entity that exists to serve your project's users. Agents are intelligent, configurable and context-aware and can interact with your users via a messaging system enabled by the Proficient API.

