Admin Profile API
Returns the admin user profile. Requires HTTP Basic Authentication — used to practise setting up Basic Auth in OutSystems Consume REST API.
| Property | Value |
|---|---|
| Method | GET |
| Base URL | https://labs.lowcademy.com/apis/ |
| File | me.php |
| Authentication | HTTP Basic Auth (username + password) |
| Request Body | Not required |
This API uses HTTP Basic Authentication. The browser/client encodes username:password in Base64 and sends it in the Authorization header automatically when you use the Basic Auth option.
⚠ Lab Credentials — For Training Use Only
cURL (Basic Auth shorthand)
curl -u admin:1234 https://labs.lowcademy.com/apis/mecURL (manual Authorization header)
curl -H "Authorization: Basic YWRtaW46MTIzNA==" \ https://labs.lowcademy.com/apis/me
JavaScript (fetch)
const credentials = btoa('admin:1234'); // Base64 encode const res = await fetch('https://labs.lowcademy.com/apis/me', { headers: { 'Authorization': 'Basic ' + credentials } }); const data = await res.json();
OutSystems — Consume REST API (Basic Auth)
// When adding the REST API in OutSystems: // Authentication → Basic Authentication // Username: admin // Password: 1234 // OutSystems handles the encoding automatically.
| Field | Type | Description |
|---|---|---|
| success | Boolean | Always true on success |
| profile.id | Integer | User ID |
| profile.username | String | Login username |
| profile.name | String | Display name |
| profile.email | String | Email address |
| profile.role | String | User role |
| profile.plan | String | Subscription plan |
| profile.created | String | Account creation date |
{
"success" : true,
"profile" : {
"id" : 1,
"username": "admin",
"name" : "Admin User",
"email" : "admin@labs.lowcademy.com",
"role" : "Administrator",
"plan" : "Pro",
"created" : "2024-01-01"
}
}{"success":false,"error":"Unauthorized. Provide valid Basic Auth credentials."}