Auth API reference

Auth API · End-Users

get/v1/apps/{app_id}/end-users/{user_id}Auth

Get one end-user.

Path parameters

app_id*string

Id of the app.

user_id*string

Id of the user.

Response · 200

id*string

Unique identifier of the end user.

username*string

The end user's username, unique within the app.

display_name*string

Human-readable name of the end user.

status*object

Account status: `active`, `suspended` or `deactivated`.

role*string

App-level role name of the user, or `null` for none.

joined_at*string · date-time

When the member joined the tenant (ISO 8601).

created_at*string · date-time

When the end user was created (ISO 8601).

email*string

Email address.

email_verified_at*string · date-time

When the primary email was verified, or `null` until it is.

active_session_count*number

Sessions of the user that are currently active.

last_used_at*string · date-time

When the end user was last used (ISO 8601), or `null` if never.

last_activity_at*string · date-time

Most recent audit-log entry with this user as the actor. Null means we have never recorded them doing anything — which is a different fact from "no session", and the one that tells you whether they ever got in.

failed_signins*number

Failed sign-ins in the last 30 days. Flagged at 3.

mfa_factor_count*number

Enabled auth factors (TOTP, email OTP).

verified_email_count*number

Verified email contacts, primary or not. Distinct from `emailVerifiedAt`, which is the primary contact only — the `unverified` filter accepts any verified email, so a renderer branching on `emailVerifiedAt` would disagree with it.

auth_providers*array

How this person can sign in: `password` when a credential exists, plus each linked OAuth provider (`google`, `apple`, …). Empty means neither — an admin-created account that has not been sent a password reset cannot get in at all, and that is a real state rather than missing data.

Example: ["password","google"]

step_up_locked_until*string · date-time

Set while a live session is locked out of step-up verification.

Example

Request

GET https://api.auth.productcraft.co/v1/apps/{app_id}/end-users/{user_id}
Authorization: Bearer YOUR_TOKEN

Response

{
  "id": "string",
  "username": "string",
  "display_name": "string",
  "status": {},
  "role": "string",
  "joined_at": "2026-01-01T00:00:00.000Z",
  "created_at": "2026-01-01T00:00:00.000Z",
  "email": "string",
  "email_verified_at": "2026-01-01T00:00:00.000Z",
  "active_session_count": 0,
  "last_used_at": "2026-01-01T00:00:00.000Z",
  "last_activity_at": "2026-01-01T00:00:00.000Z",
  "failed_signins": 0,
  "mfa_factor_count": 0,
  "verified_email_count": 0,
  "auth_providers": [
    "password",
    "google"
  ],
  "step_up_locked_until": "2026-01-01T00:00:00.000Z"
}