Field
Type
API usage
Description
id
integer
Response only
Database id for the user.
first_name
string
Required on registration; returned
Custom user profile field.
middle_name
string
Optional on registration; returned
Custom user profile field. May be null or blank.
last_name
string
Required on registration; returned
Custom user profile field.
email
string
Required on registration and login; returned
Devise authentication email.
password
string
Required on registration and login; never returned
Plain password accepted only in request payloads.
password_confirmation
string
Required on registration; never returned
Must match password when creating an account.
status
string
Response only
Account access state. Allowed values: active, inactive, banned, suspended.
last_api_sign_in_at
datetime
Response only
Most recent successful API login timestamp.
access_token
JWT string
Returned on registration, login, and refresh
Short-lived bearer token. It expires after 5 minutes.
refresh_token
string
Returned on registration, login, and refresh
Longer-lived token used only to request a new access token.
token_digest
string
Internal only
Stored SHA256 refresh-token digest. It is never returned by the API.
JWT access tokens expire after 5 minutes. Refresh tokens are stored only as SHA256 digests, and each refresh request revokes the old refresh token before returning a replacement.