Create smart account with passkey
Passkeys
Create Smart Account
Create a passkey and Grid smart account in one atomic operation.
Create smart account with passkey
Creates both a passkey account and a Grid smart account in a single atomic transaction. Pass the raw WebAuthn
authenticatorResponse directly—the passkey does not need to exist beforehand.
This endpoint creates the passkey from your WebAuthn response. You do not need to call
/passkeys/submit first.What Gets Created
In one transaction:- Passkey account — derived from your WebAuthn public key
- 1/1 smart account — with the passkey as sole signer (mask=7: full permissions)
- Database records — GridUser, GridSmartAccount, and audit trail
- 1 USDC funding — sandbox only
Implementation Flow (Direct API)
Timing Constraints
TheslotNumber must be within Solana’s SlotHashes window (~3 minutes / 512 slots). If you encounter slot-related errors, fetch a fresh slot and retry.
Related Endpoints
- Create Passkey Session — Hosted UI flow (alternative)
- Integration Guide — Complete implementation examples
Authorizations
Your Grid API key from the Grid Dashboard
Headers
Solana network environment (sandbox, devnet, mainnet)
Body
application/json
Grid v1 API SessionKey type that supports backward-compatible deserialization from both raw bytes array (old format) and base58 string (new format). Always serializes to base58 string format.
Required range:
x >= 0