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

# Organizations and Access

Operate organizations, members, invites, API keys, service accounts, wallets, billing, sessions, and knowledge.

| Method   | Endpoint                                                                                                                                                      | Description                                                                                                                                                                                                                         |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `GET`    | [/v1/api-keys](/api/reference/get-v1-api-keys)                                                                                                                | List all API keys for the current organization                                                                                                                                                                                      |
| `POST`   | [/v1/api-keys](/api/reference/post-v1-api-keys)                                                                                                               | Create a new API key for the current organization                                                                                                                                                                                   |
| `DELETE` | [/v1/api-keys/&#123;id&#125;](/api/reference/delete-v1-api-keys-id-)                                                                                          | Revoke an API key by ID                                                                                                                                                                                                             |
| `GET`    | [/v1/api-keys/&#123;id&#125;](/api/reference/get-v1-api-keys-id-)                                                                                             | Get a single API key by ID                                                                                                                                                                                                          |
| `GET`    | [/v1/api-keys/requests](/api/reference/get-v1-api-keys-requests)                                                                                              | List recent API request audit logs for the current organization                                                                                                                                                                     |
| `GET`    | [/v1/invites](/api/reference/get-v1-invites)                                                                                                                  | List pending invites for the current user                                                                                                                                                                                           |
| `GET`    | [/v1/organizations](/api/reference/get-v1-organizations)                                                                                                      | List all organizations for the current user                                                                                                                                                                                         |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/auto-swap-settings](/api/reference/get-v1-organizations-org-id-auto-swap-settings)                                       | Get automatic token swap settings for an organization. Returns a disabled default if not yet configured.                                                                                                                            |
| `PUT`    | [/v1/organizations/&#123;orgId&#125;/auto-swap-settings](/api/reference/put-v1-organizations-org-id-auto-swap-settings)                                       | Update automatic token swap settings for an organization. Owners only.                                                                                                                                                              |
| `DELETE` | [/v1/organizations/&#123;orgId&#125;/caddie-memory](/api/reference/delete-v1-organizations-org-id-caddie-memory)                                              | Delete ALL memories Caddie holds about the calling user in this organization. The user's enable toggle is preserved.                                                                                                                |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/caddie-memory](/api/reference/get-v1-organizations-org-id-caddie-memory)                                                 | List a page of what Caddie remembers about the calling user in this organization \(newest first\), plus the user's memory enable toggle. Identity is taken from the authenticated session — a user can only see their own memories. |
| `DELETE` | [/v1/organizations/&#123;orgId&#125;/caddie-memory/&#123;scope&#125;/&#123;key&#125;](/api/reference/delete-v1-organizations-org-id-caddie-memory-scope-key-) | Delete one memory Caddie holds about the calling user in this organization.                                                                                                                                                         |
| `PUT`    | [/v1/organizations/&#123;orgId&#125;/caddie-memory/&#123;scope&#125;/&#123;key&#125;](/api/reference/put-v1-organizations-org-id-caddie-memory-scope-key-)    | Edit the text of one memory Caddie holds about the calling user in this organization. Update-only — unknown keys return 404.                                                                                                        |
| `PUT`    | [/v1/organizations/&#123;orgId&#125;/caddie-memory/org-settings](/api/reference/put-v1-organizations-org-id-caddie-memory-org-settings)                       | Enable or disable Caddie's long-term memory for this organization \(admin-only\). Memory is disabled by default; while disabled, Caddie does not recall, learn, or store facts for any member of the org.                           |
| `PUT`    | [/v1/organizations/&#123;orgId&#125;/caddie-memory/settings](/api/reference/put-v1-organizations-org-id-caddie-memory-settings)                               | Enable or disable Caddie's memory of the calling user in this organization. When disabled, Caddie stops recalling, learning, and storing facts about the user.                                                                      |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/cu](/api/reference/get-v1-organizations-org-id-cu)                                                                       | Get CU balance and threshold                                                                                                                                                                                                        |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/cu/runs](/api/reference/get-v1-organizations-org-id-cu-runs)                                                             | Get runs with CU costs                                                                                                                                                                                                              |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/cu/usage](/api/reference/get-v1-organizations-org-id-cu-usage)                                                           | Get CU usage                                                                                                                                                                                                                        |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/cu/usage-by-workflow](/api/reference/get-v1-organizations-org-id-cu-usage-by-workflow)                                   | Get CU usage by workflow                                                                                                                                                                                                            |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/plan-options](/api/reference/get-v1-organizations-org-id-plan-options)                                                   | Returns all possible plan transitions with pre-calculated pricing                                                                                                                                                                   |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/public](/api/reference/get-v1-organizations-org-id-public)                                                               | Get public organization metadata                                                                                                                                                                                                    |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/sessions](/api/reference/get-v1-organizations-org-id-sessions)                                                           | List active wallet sessions with pagination                                                                                                                                                                                         |
| `POST`   | [/v1/organizations/&#123;orgId&#125;/sessions](/api/reference/post-v1-organizations-org-id-sessions)                                                          | Create a new wallet session key                                                                                                                                                                                                     |
| `DELETE` | [/v1/organizations/&#123;orgId&#125;/sessions/&#123;id&#125;](/api/reference/delete-v1-organizations-org-id-sessions-id-)                                     | Revoke a wallet session key                                                                                                                                                                                                         |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/templates/public](/api/reference/get-v1-organizations-org-id-templates-public)                                           | List public templates by organization                                                                                                                                                                                               |
| `GET`    | [/v1/organizations/&#123;orgId&#125;/wallets](/api/reference/get-v1-organizations-org-id-wallets)                                                             | List all wallets for an organization with pagination                                                                                                                                                                                |
| `POST`   | [/v1/organizations/&#123;orgId&#125;/wallets](/api/reference/post-v1-organizations-org-id-wallets)                                                            | Create a new Turnkey wallet for an organization                                                                                                                                                                                     |
| `DELETE` | [/v1/organizations/&#123;orgId&#125;/wallets/&#123;walletId&#125;](/api/reference/delete-v1-organizations-org-id-wallets-wallet-id-)                          | Archive a wallet \(soft delete\). Cannot archive default wallet or only wallet.                                                                                                                                                     |
| `PATCH`  | [/v1/organizations/&#123;orgId&#125;/wallets/&#123;walletId&#125;](/api/reference/patch-v1-organizations-org-id-wallets-wallet-id-)                           | Rename an organization wallet's user-facing label. The wallet's on-chain address and Turnkey identifiers are unchanged.                                                                                                             |
| `PUT`    | [/v1/organizations/&#123;orgId&#125;/wallets/&#123;walletId&#125;/default](/api/reference/put-v1-organizations-org-id-wallets-wallet-id-default)              | Set a wallet as the default wallet for an organization.                                                                                                                                                                             |
| `POST`   | [/v1/organizations/&#123;orgId&#125;/wallets/&#123;walletId&#125;/withdraw](/api/reference/post-v1-organizations-org-id-wallets-wallet-id-withdraw)           | Withdraw tokens from an organization wallet via Turnkey signing                                                                                                                                                                     |
| `POST`   | [/v1/organizations/&#123;orgId&#125;/wallets/polymarket-deposit](/api/reference/post-v1-organizations-org-id-wallets-polymarket-deposit)                      | Create a Polymarket deposit wallet for an organization                                                                                                                                                                              |
| `GET`    | [/v1/orgs/&#123;orgId&#125;/invites](/api/reference/get-v1-orgs-org-id-invites)                                                                               | List pending invites for an organization                                                                                                                                                                                            |
| `GET`    | [/v1/orgs/&#123;orgId&#125;/members](/api/reference/get-v1-orgs-org-id-members)                                                                               | List all members of an organization                                                                                                                                                                                                 |
| `GET`    | [/v1/tiers](/api/reference/get-v1-tiers)                                                                                                                      | List all subscription tiers                                                                                                                                                                                                         |