LogoRelayDrive

me

Retrieve the authenticated user's profile information.

/api/v1/user/me

Manage the authenticated user's public profile information. Returns metadata such as username, email, avatar, timestamps, and status flags.


Retrieve current user

Returns the authenticated user's profile.

GET/api/v1/user/me
Headers
KeyValueDescription
AuthorizationBearer <token>Required. Clerk session JWT or opaque token.
Errors
StatusDescription
401Missing, malformed, or expired token.
500Unexpected server error.
Example Request
curl -X GET "https://api.rotationracing.eu/api/v1/user/me" \
  -H "Authorization: Bearer <your-token>"
const res = await fetch("https://api.rotationracing.eu/api/v1/user/me", {
  headers: { Authorization: `Bearer ${token}` },
});
if (!res.ok) throw new Error('Unauthorized');
const profile = await res.json();
console.log(profile);
import requests

url = "https://api.rotationracing.eu/api/v1/user/me"
headers = {"Authorization": "Bearer <your-token>"}

response = requests.get(url, headers=headers)
if response.status_code != 200:
    raise Exception("Unauthorized")
profile = response.json()
print(profile)
Response
200 OK
{
  "id": "user_2aBcDeFgHi",
  "username": "janedoe",
  "fullName": "Jane Doe",
  "email": "[email protected]",
  "imageUrl": "https://img.clerk.com/...",
  "createdAt": "2025-01-01T12:34:56.000Z",
  "lastActiveAt": "2025-01-02T08:00:00.000Z",
  "lastSignInAt": null,
  "legalAcceptedAt": "2025-01-01T12:00:00.000Z",
  "locked": false,
  "updatedAt": "2025-01-02T09:00:00.000Z"
}