# Me ## Current user profile **get** `/api/v1/me` Returns the authenticated user's profile, stats (cents earned/tipped), XP, level, and default AI model. ### Returns - `id: optional string` - `bio: optional string` - `createdAt: optional string` - `defaultAiModel: optional string` - `email: optional string` - `image: optional string` - `lastPostAt: optional string` - `level: optional number` - `name: optional string` - `postCount: optional number` - `streakDays: optional number` - `totalEarned: optional number` Lifetime earnings in cents - `totalTipped: optional number` Lifetime tips given in cents - `username: optional string` - `xp: optional number` ### Example ```http curl https://racks.cash/api/v1/me ``` #### Response ```json { "id": "clxxxxxxxxxxxxxxxxxxxxxxxx", "bio": "bio", "createdAt": "2019-12-27T18:11:19.117Z", "defaultAiModel": "anthropic/claude-sonnet-4-5", "email": "alice@example.com", "image": "https://avatars.githubusercontent.com/u/1234567", "lastPostAt": "2019-12-27T18:11:19.117Z", "level": 8, "name": "Alice", "postCount": 17, "streakDays": 5, "totalEarned": 42000, "totalTipped": 1000, "username": "alice", "xp": 3400 } ``` ## Earned badges for the token owner **get** `/api/v1/me/badges` Earned badges for the token owner ### Returns - `badges: optional array of object { description, earnedAt, emoji, 3 more }` - `description: optional string` - `earnedAt: optional string` - `emoji: optional string` - `name: optional string` - `slug: optional string` - `xpThreshold: optional number` ### Example ```http curl https://racks.cash/api/v1/me/badges ``` #### Response ```json { "badges": [ { "description": "description", "earnedAt": "2019-12-27T18:11:19.117Z", "emoji": "⚔️", "name": "First Quest", "slug": "first-quest", "xpThreshold": 100 } ] } ``` ## Circle memberships for the token owner **get** `/api/v1/me/circles` Returns all circles the authenticated user belongs to, with role and timestamps. ### Returns - `circles: optional array of object { id, createdAt, emoji, 5 more }` - `id: optional string` - `createdAt: optional string` - `emoji: optional string` - `isOwner: optional boolean` - `isPrivate: optional boolean` - `joinedAt: optional string` - `name: optional string` - `role: optional "OWNER" or "ADMIN" or "MEMBER"` - `"OWNER"` - `"ADMIN"` - `"MEMBER"` ### Example ```http curl https://racks.cash/api/v1/me/circles ``` #### Response ```json { "circles": [ { "id": "clxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2019-12-27T18:11:19.117Z", "emoji": "🔥", "isOwner": true, "isPrivate": true, "joinedAt": "2019-12-27T18:11:19.117Z", "name": "Degen Questers", "role": "OWNER" } ] } ```