baseFM identity API
Link your Base wallet address to connect your baseFM DJ identity. Once linked, you can retrieve your DJ profile, listener stats, show history, and tip totals from baseFM.Get linked wallet
Response
| Field | Type | Description |
|---|---|---|
wallet | string | null | The linked Base wallet address, or null if no wallet is linked |
Errors
| Code | Description |
|---|---|
| 401 | Unauthorized — no valid session |
Example
Update linked wallet
Request body
| Field | Type | Required | Description |
|---|---|---|---|
wallet | string | null | Yes | A valid Base wallet address (0x-prefixed, 40 hex characters). Pass null or an empty string to unlink the wallet. |
Response
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the update succeeded |
wallet | string | null | The saved wallet address, or null if the wallet was unlinked |
Errors
| Code | Description |
|---|---|
| 400 | Invalid Base wallet address — the value must match 0x followed by 40 hexadecimal characters |
| 401 | Unauthorized — no valid session |
Example
Get DJ stats
Response (wallet linked, baseFM reachable)
Response fields
| Field | Type | Description |
|---|---|---|
linked | boolean | Whether a Base wallet is linked to the account |
wallet | string | The linked Base wallet address |
dj | object | null | DJ profile from baseFM. null if no DJ profile exists for this wallet. |
dj.name | string | null | DJ display name |
dj.slug | string | null | URL slug for the DJ profile on baseFM |
dj.avatar | string | null | Avatar image URL |
dj.followers | number | Follower count |
dj.genres | string[] | List of genres associated with the DJ |
stats | object | null | Aggregated show statistics. null if baseFM is unreachable. |
stats.totalShows | number | Total number of completed and active shows |
stats.totalListeners | number | Cumulative listener count across all shows |
stats.totalTipsUsdc | number | Total tips received in USDC (rounded to 2 decimal places) |
stats.isLive | boolean | Whether the DJ currently has an active live stream |
error | string | Present when baseFM could not be reached. The linked and wallet fields are still returned. |
Response (no wallet linked)
linked: false. Link a wallet using the update linked wallet endpoint first.
Response (baseFM unreachable)
dj and stats fields are null and an error message is included.
Errors
| Code | Description |
|---|---|
| 401 | Unauthorized — no valid session |