/v1/meAuthRead the caller's account profile.
Response · 200
id*string · uuidId of your account.
email*stringYour primary email, when you have one.
username*stringYour username.
display_name*stringYour display name, when set.
status*stringAccount status (e.g. `active`, `suspended`).
email_verified_at*string · date-timeTimestamp when this account verified its primary email, or null if unverified.
avatar_url*stringShort-lived (15 min) presigned GET URL for the avatar object in private object storage. NULL when no avatar has been set; the frontend then renders initials. The API mints a fresh URL on every response, so a stable bookmark of this value is not meaningful.
Example
Request
GET https://api.platform-auth.productcraft.co/v1/me
Authorization: Bearer YOUR_TOKENimport { PlatformAuth } from "@productcraft/platform-auth";
// Reads PRODUCTCRAFT_API_KEY from the environment; administration
// calls take a person's session: { auth: { type: "bearer", token } }
const platform = new PlatformAuth();
const meProfile = await platform.me.retrieve();platform.me.retrieve(options?): PlatformAuth.MeProfile
Response
{
"id": "00000000-0000-0000-0000-000000000000",
"email": "string",
"username": "string",
"display_name": "string",
"status": "string",
"email_verified_at": "2026-01-01T00:00:00.000Z",
"avatar_url": "string"
}