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

# Company Wallets integration guide

> Server-side patterns for policies, consensus, custodial send, webhooks, and attestation.

This guide covers the production patterns for Company Wallets after you finish the [quickstart](/company-wallets/quickstart).

## Recommended org layout

| Resource        | Recommendation                                                                |
| :-------------- | :---------------------------------------------------------------------------- |
| Parent org      | One root org for your company treasury / ops                                  |
| API-only users  | One per automation role (`sweeper`, `deployer`, `agent`)                      |
| Human operators | Passkey users in the same org for approvals                                   |
| Tags            | Attach users to tags referenced by policies                                   |
| Sub-orgs        | Optional isolation for customers / business units (parent read-only patterns) |

Create API-only users with `createApiOnlyUsers`, then stamp all server calls with that keypair via `@0xkey-io/sdk-server`.

## Policy + consensus

1. Prefer **narrow allow** policies (recipient / selector / chain / value).
2. Add `consensus` for high-value paths (`approvers.count() >= 2`).
3. Use [Policy simulate](/concepts/policies/overview) in the Dashboard before enabling automation.
4. Root quorum (`updateRootQuorum`) gates org-level sensitive changes — separate from per-activity consensus.

Templates: [Policy templates](/company-wallets/policy-templates).

## Custodial send matrix

| API                        | Chains                                   | Notes                                    |
| :------------------------- | :--------------------------------------- | :--------------------------------------- |
| `ethSendTransaction`       | EVM (see [Networks](/networks/overview)) | `sponsor: true` = Enterprise Gas Station |
| `solSendTransaction`       | Solana mainnet / devnet                  | Fee-payer sponsorship = Enterprise       |
| `tronSendTransaction`      | Tron TRX / TRC-20                        | No platform fee sponsorship              |
| `getSendTransactionStatus` | All of the above                         | Poll until confirmed / failed            |

Always fail closed when RPC providers are unavailable — do not treat empty statuses as success.

## Webhooks

Subscribe to activity and send-transaction status updates for ops automation. Verify signatures via the public JWKS endpoint. See [Webhooks](/developer-reference/webhooks).

## Import / export

HPKE-protected import/export is available on all plans (`key_export` is not a paid-tier gate). Use Dashboard import or server SDK export flows; never log plaintext mnemonics. Protocol: see technical design B3 / frames export UIs.

## Attestation checklist

Before production:

1. Call `getAttestationDocument` (or boot/app proof APIs) against your target environment.
2. Verify with `@0xkey-io/crypto` helpers (`verifyAttestationDocument` / boot proof verify).
3. Pin expected PCR / manifest values from your ceremony release notes.

Details: [Remote attestation](/products/company-wallets/features/security/remote-attestation).

## Hybrid end-user + backend co-sign

If you need end-user passkey **and** backend API key (2/2), that is a **hybrid / Embedded-adjacent** pattern — not the default Company Wallets path. See [Hybrid co-signing](/company-wallets/hybrid-cosign).

## Language SDKs

| SDK                    | Company path                                         |
| :--------------------- | :--------------------------------------------------- |
| `@0xkey-io/sdk-server` | Primary                                              |
| sdk-go                 | Examples for wallets / signing / tx management       |
| sdk-rust               | Available; docs may lag                              |
| CLI                    | Tracked separately — use SDK examples until released |

## Migration from Turnkey

Public docs do **not** ship a one-click Turnkey migration funnel. Enterprise customers can request private migration assistance via [hello@0xkey.io](mailto:hello@0xkey.io). Policy DSL is not 1:1 with CEL — expect conversion and review.
