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 userId = "u_1eRoyubdUqWifFiTREaLcvh6";
const user = await proficient.users.get(userId);
{
"id": "<string>",
"object": "user",
"created_at": 123,
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"live_mode": true,
"updated_at": 123
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>"
}
}Users
Retrieve a user
Retrieves the user with the given ID.
GET
/
users
/
{user_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 userId = "u_1eRoyubdUqWifFiTREaLcvh6";
const user = await proficient.users.get(userId);
{
"id": "<string>",
"object": "user",
"created_at": 123,
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"live_mode": true,
"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 userId = "u_1eRoyubdUqWifFiTREaLcvh6";
const user = await proficient.users.get(userId);
Response
Represents a user of your project.

