Skip to content
Get started

Current user profile

client.v1.me.retrieve(RequestOptionsoptions?): MeRetrieveResponse { id, bio, createdAt, 12 more }
GET/api/v1/me

Returns the authenticated user's profile, stats (cents earned/tipped), XP, level, and default AI model.

ReturnsExpand Collapse
MeRetrieveResponse { id, bio, createdAt, 12 more }
id?: string
bio?: string | null
createdAt?: string
formatdate-time
defaultAiModel?: string | null
email?: string | null
image?: string | null
lastPostAt?: string | null
formatdate-time
level?: number
name?: string | null
postCount?: number
streakDays?: number
totalEarned?: number

Lifetime earnings in cents

totalTipped?: number

Lifetime tips given in cents

username?: string | null
xp?: number

Current user profile

import Racks from 'racks.cash';

const client = new Racks();

const me = await client.v1.me.retrieve();

console.log(me.id);
{
  "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
}
Returns Examples
{
  "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
}