Skip to main content

POST /api/user/safes/register-primary

Registers a user’s primary Safe after Privy authentication. Requires a Privy access token in the Authorization header.
curl -X POST "https://0.finance/api/user/safes/register-primary" \
  -H "Authorization: Bearer <privy_jwt>" \
  -H "Content-Type: application/json" \
  -d '{"safeAddress":"0x..."}'
{
  "message": "Primary safe registered successfully.",
  "data": {
    "id": "uuid",
    "safeAddress": "0x...",
    "safeType": "primary"
  }
}
This endpoint is used during onboarding to link the user’s primary Safe on Base.