Skip to main content
The official JavaScript/TypeScript SDK provides complete programmatic control over GetProfile, including OpenAI-compatible chat completions plus full profile, trait, and memory management.

Installation

Quick Start

Chat Completions (OpenAI Compatible)

GetProfile’s primary feature is OpenAI-compatible chat completions with automatic user context injection. Just pass a user parameter and GetProfile handles the rest.

Non-Streaming

Streaming

Controlling Extraction and Injection

You can control what gets extracted and injected on a per-request basis:

Supported Parameters

All standard OpenAI chat completion parameters are supported:
  • model - Model to use (e.g., ‘gpt-5-mini’, ‘gpt-5’, ‘gpt-4-turbo’)
  • messages - Array of chat messages
  • user - User identifier for automatic profile context injection
  • temperature, top_p, frequency_penalty, presence_penalty
  • max_tokens, stop
  • stream - Enable streaming responses
  • getprofile - GetProfile-specific options (skipInjection, skipExtraction, traits)

Models

List Available Models

Profiles

Get or Create Profile

This call hits POST /api/profiles, which is idempotent—if the profile already exists the current record is returned. Call it whenever a user signs in to guarantee they have a profile before you store traits or memories.

Get Profile with Details

List Profiles

Delete Profile

Export Profile Data

Ingest Data

Extract traits and memories from arbitrary text data:
Common use cases:

Traits

Get All Traits

Update Trait

Delete Trait

Memories

List Memories

Add Memory

Delete Memory

TypeScript Support

The SDK is fully typed. Import types as needed:

Error Handling

Configuration Options

Using with Core Package

For more control, you can use the core package directly:

Next Steps

API Reference

Complete API documentation

Trait Schemas

Configure what to extract