> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprofile-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Node.js API Client

> A lightweight TypeScript client for the GetProfile API

Quickly integrate dynamic personality profiling into your Node.js and TypeScript applications.

***

## Features

* Submit any raw data (chat logs, bios, activity logs) to update profiles.
* Retrieve structured profiles: interests, personality, mood trends, and more.
* Delete profiles when needed.
* Secure, easy to use, and fully documented.

***

## Installation

```bash theme={null}
npm install getprofile-client
```

***

## Usage

```ts theme={null}
import { GetProfileClient } from "getprofile-client";

// Create a client instance
const client = new GetProfileClient({
  apiKey: process.env.GETPROFILE_API_KEY!, // Your API key
});

async function run() {
  // 1️⃣ Submit data to update the profile
  await client.submitProfileUpdate(
    "user123",
    "Alex is a photographer who loves hiking and indie music.",
    "bio"
  );

  // 2️⃣ Retrieve the structured profile
  const profile = await client.getProfile("user123");
  console.log("Profile:", profile);

  // 3️⃣ Delete the profile if needed
  // await client.deleteProfile("user123");
}

run().catch(console.error);
```

✅ **Pro Tip:** Use environment variables to store your API key for better security!

***

## License

MIT — feel free to use and contribute! Give it a star on [GitHub](https://github.com/getprofile/client) if you find it useful! 🌟

***

Have fun building smarter, more personalized experiences with **GetProfile**! 🚀
