Moonbase Documentation

User profile examples

Fetch the authenticated user profile in multiple languages.

Self-hosted base URL

Use the API base URL

Use your public API key and the JWT from authentication.

fetch('https://your-moonbase-host/api/user/info', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': '<PUBLIC_API_KEY>',
'Token': '<jwt_token>'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));