Skip to main content

Overview

Returns the complete profile for the currently authenticated user, including account details and aggregated activity stats.

Endpoint

GET /api/profile/me
Requires authentication. Requests are made with a Bearer token via the Authorization header.

Request

This endpoint takes no request body or query parameters.

Response

user_id
string
required
Unique identifier for the user.
username
string
required
The user’s display name.
email
string
required
The user’s email address.
bio
string
required
The user’s profile biography.
profile_picture
string
required
URL of the user’s profile picture.
is_verified
boolean
required
Whether the user’s account is verified.
created_at
string
required
ISO 8601 timestamp of when the account was created.
updated_at
string
required
ISO 8601 timestamp of the last profile update.
stats
object
required
Aggregated activity statistics for the user.

Example

TypeScript
import { getProfile } from "./api/Profile";

const profile = await getProfile();

console.log(profile.username);
console.log(profile.stats.spaces_created);