Get User

Retrieves a specific user by ID

Usage #

// Import the typed helper
import { getUser } from "@hotglue/sdk/notion";
const result = await client.execute({
...getUser({
user_id: string,
}),
userId: "user_123",
});
// result is typed as GetUserOutput
const result = await client.execute({
integration: "notion",
tool: "get_user",
userId: "user_123",
input: {
user_id: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["notion"],
userId: "user_123",
}),
});
await agent.generate("run the Get User tool");

Required Permissions #

read_users

Input Schema #

user_id string required

The ID of the user to retrieve

Output Schema #

id string required
object string required
type string
values: person, bot
name string
avatar_url string

This tool calls: #

GET https://api.notion.com/v1/users/{user_id}