Skip to main content
GET
/
auth
/
fetch_user
Get Current User
curl --request GET \
  --url https://api.example.com/auth/fetch_user

Get Current User

Retrieve profile information for the currently authenticated user.

Endpoint

GET /auth/fetch_user

Authentication

Requires JWT token authentication.
Authorization: Bearer <jwt_token>

Example Request

curl -X GET https://api.app.shinzo.ai/auth/fetch_user \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."

Response

{
  "uuid": "usr_abc123def456",
  "email": "[email protected]",
  "email_verified": true,
  "created_at": "2025-01-15T10:30:00Z",
  "updated_at": "2025-01-20T14:45:00Z"
}

Response Fields

FieldTypeDescription
uuidstringUnique user identifier
emailstringUser’s email address
email_verifiedbooleanWhether the email has been verified
created_atstringAccount creation timestamp (ISO 8601)
updated_atstringLast update timestamp (ISO 8601)

Status Codes

CodeDescription
200Success
401Invalid or missing token