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

> ## Agent Instructions
> Maximem Synap is a managed memory layer for AI agents: it ingests conversations and documents, extracts structured memory, and returns scoped context to the agent at retrieval time.
> The Python and JavaScript/TypeScript SDKs are the supported way to use Synap. Write integration code with SDK calls, not raw HTTP requests.
> Start with the Quickstart: https://docs.maximem.ai/getting-started/quickstart.md. Every SDK method is documented in the SDK reference: https://docs.maximem.ai/sdk-reference/overview.md.
> For requests about adding Vity memory to OpenClaw, Hermes, an MCP client, or a browser, start with the Vity Quickstart: https://docs.maximem.ai/vity/quickstart.md.

# user.get_profile

> Fetch a user's profile document: client-defined critical attributes plus a free-text overview.

```python theme={null}
await sdk.user.get_profile(
    user_id: str,
    customer_id: Optional[str] = None,
) -> UserProfileModel
```

Fetch the accumulated **profile** for a user: the client-defined critical attributes (e.g. intent, budget, preferences) plus a short free-text overview that Synap maintains across the user's conversations.

This is a convenience getter. The same document is returned inline by [`sdk.fetch(context_mode="conversation-summary", include_profile=True)`](https://docs.maximem.ai/sdk-reference/context/fetch); reach for `get_profile` when you want the profile on its own: dashboardless debugging, your own tooling, or a quick lookup.

> [!NOTE]
>
> Profiles are **on by default**. See the [User Profile guide](https://docs.maximem.ai/sdk/user-profile.md) for defining your attribute schema (or opting out per instance). For a user whose profile has not been built yet, there is nothing to return and the call raises `ContextNotFoundError`.

### Parameters

**user\_id** `str` *required*

Caller identity (e.g. an E.164 phone number).

**customer\_id** `str`

**Required on B2B (strict-isolation) instances** so the profile resolves to the right tenant. **Not accepted on B2C**: sending one is rejected with HTTP 400.

### Returns

A `UserProfileModel`.

**attributes** `Dict[str, ProfileAttributeModel]`

Critical attributes keyed by name. Each `ProfileAttributeModel` carries `value`, `confidence`, `updated_at`, `source_conversation_id` (and `.raw`).

**overview** `Optional[str]`

A short free-text summary of the caller.

**extras** `Dict[str, Any]`

Stable facts worth keeping that match no configured attribute.

**meta** `Dict[str, Any]`

Document metadata (`_meta`): schema, version, `updated_at`, etc.

`.raw` exposes the full untyped profile document.

### Example

```python theme={null}
from maximem_synap import MaximemSynapSDK, ContextNotFoundError

sdk = MaximemSynapSDK(api_key="synap_your_key_here")
await sdk.initialize()

try:
    profile = await sdk.user.get_profile("+919812345678")
    print(profile.overview)
    for name, attr in profile.attributes.items():
        print(f"{name}: {attr.value} (confidence {attr.confidence})")
except ContextNotFoundError:
    print("No profile yet for this caller.")
```

### Raises

* `ContextNotFoundError`: no profile exists for this user (HTTP 404).
* `AuthenticationError`: when the API key is missing or invalid.

### See also

* [context.fetch (conversation-summary mode)](https://docs.maximem.ai/sdk-reference/context/fetch.md)
* [conversation.ingest\_transcript](https://docs.maximem.ai/sdk-reference/conversation/ingest-transcript.md) and [memories.create](https://docs.maximem.ai/sdk-reference/memories/create.md): any ingestion that creates memories for a user refreshes their profile; an end-of-call transcript push is one example.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.