User profile
Fetch profile data for the authenticated user.
Requires JWT
This endpoint requires your public API key and the user's JWT.
Request flow
Copy your public API key from the console output on first startup.
Authenticate with
POST /api/auth/user to get a JWT.Call
GET /api/user/info with Authorization and Token headers.Headers
Prop
Type
GET /api/user/info
Authorization: <PUBLIC_API_KEY>
Token: <jwt_token>{
"status_message": "USER_INFO_RETRIEVED",
"status_overview": "success",
"status_code": 200,
"status_data": {
"user": { "id": "user_123", "name": "your_username" }
}
}Example request
curl -X GET "https://your-moonbase-host/api/user/info" \
-H "Authorization: <PUBLIC_API_KEY>" \
-H "Token: <jwt_token>"