Skip to main content
GET
/
auth
/
me
SDK (@phosra/sdk)
import { PhosraClient } from "@phosra/sdk";

const phosra = new PhosraClient({
  baseUrl: "https://phosra-api-sandbox-production.up.railway.app/api/v1",
  accessToken: process.env.PHOSRA_API_KEY,
});

const result = await phosra.auth.me();
console.log(result);
{
  "id": "9f8b2a14-6c3d-4e51-8a72-1f0b9c4d2e63",
  "email": "parent@example.com",
  "name": "Ada Rivera",
  "created_at": "2026-06-18T14:32:07Z"
}
Returns the identity behind the current credential — whether you authenticated with a WorkOS session token or a developer API key. Call it first to confirm your token is wired correctly.
curl https://phosra-api-sandbox-production.up.railway.app/api/v1/auth/me \
  -H "Authorization: Bearer $PHOSRA_API_KEY"
See the Authentication guide for how to obtain a token.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Current user

id
string<uuid>

Unique identifier for this resource.

email
string<email>

Email address.

name
string

Human-readable display name.

created_at
string<date-time>

RFC 3339 timestamp of when the resource was created.