Addition — With API Key Header
Adds two integers, authenticated by a single api_key header. This is the most common lightweight auth pattern — one key, no secret.
| Property | Value |
|---|---|
| Method | GET |
| File | add-apikey.php |
| Authentication | Single header: api_key |
Lab Credentials — For Training Use Only
| Parameter | Type | Required | Description |
|---|---|---|---|
| input1 | Integer | Required | First integer |
| input2 | Integer | Required | Second integer |
cURL
curl -H "api_key: lc-api-key-2024" \ https://labs.lowcademy.com/apis/add-apikey?input1=5&input2=3
JavaScript (fetch)
const res = await fetch('https://labs.lowcademy.com/apis/add-apikey?input1=5&input2=3', { headers: { 'api_key': 'lc-api-key-2024' } });
OutSystems — Custom Header
// On Before Request handler: // Request.Headers → Add("api_key", "lc-api-key-2024")
{
"success" : true,
"auth_method": "API Key Header",
"operation" : "addition",
"input1" : 5,
"input2" : 3,
"result" : 8
}api_key header.