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

# Register primary Safe

> Attach a Safe to a user after onboarding

## POST `/api/user/safes/register-primary`

Registers a user’s primary Safe after Privy authentication. Requires a Privy access token in the `Authorization` header.

```bash cURL theme={null}
curl -X POST "https://0.finance/api/user/safes/register-primary" \
  -H "Authorization: Bearer <privy_jwt>" \
  -H "Content-Type: application/json" \
  -d '{"safeAddress":"0x..."}'
```

```json Success theme={null}
{
  "message": "Primary safe registered successfully.",
  "data": {
    "id": "uuid",
    "safeAddress": "0x...",
    "safeType": "primary"
  }
}
```

> [!NOTE]
>
> This endpoint is used during onboarding to link the user’s primary Safe on
> Base.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.