supermemory/apps/docs/v5/api-reference/organization.mdx
MaheshtheDev 672defc08b docs: move SDK snippets to the shipped v5 call shape and finish the namespace rename (#1772)
Rewrites 339 TypeScript calls across 50 pages from the rc.5 `method({ namespace, body })` form to the shipped `method(namespace, { ... })` form, and aligns field names with the live v5 spec: `attach` to `include`, `authUrl` to `authorization`, `lastSync` to `latestRun`, `deletedCount` to `count`, and the paginated `namespaces.list()`.

Renames container tags to namespaces across concepts, connectors, integrations and snippets. The namespace pages keep container tag in the description, search keywords and a rename note so old searches still land, and the v3 reference page points at v5.

The migration guide's SDK table now covers both 5.0.0 SDKs, and the SDK integration page uses the real client options (`baseUrl`, `timeoutInSeconds`, `maxRetries`) and error classes.
2026-10-06 17:06:38 +00:00

35 lines
1.1 KiB
Text

---
title: "Organization"
sidebarTitle: "Overview"
description: "Give every namespace a shared understanding of your organization"
icon: "/icons/hugeicons/book-open-01.svg"
---
| Operation | Purpose |
| --- | --- |
| `GET /organization` | See shared context and your namespace footprint |
| `PATCH /organization` | Improve the context guiding memory across the organization |
<CodeGroup>
```ts TypeScript
const { organizationalContext, namespaceCount } = await supermemory.organization.get()
await supermemory.organization.update({
organizationalContext: "Acme builds security tools for enterprises",
})
```
```bash curl
curl "https://api.supermemory.ai/organization" \
-H "Authorization: Bearer $SUPERMEMORY_API_KEY"
curl -X PATCH "https://api.supermemory.ai/organization" \
-H "Authorization: Bearer $SUPERMEMORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"organizationalContext":"Acme builds security tools for enterprises"}'
```
</CodeGroup>
The public v5 shape intentionally excludes profile buckets, bucket suggestions, reset controls, and internal settings.
See [namespace and settings migration](/migration/api-v5-settings).