← Back to Sample APIs

Hello World API

Returns a greeting message. Optionally pass a name to personalise the response. No authentication required.

01

Endpoint

GET https://labs.lowcademy.com/apis/hello
PropertyValue
MethodGET
Base URLhttps://labs.lowcademy.com/apis/
Filehello.php
AuthenticationNone
Request BodyNot required
02

Authentication

No authentication required — open endpoint.
03

Query Parameters

ParameterTypeRequiredDescription
name String Optional Name to include in the greeting. Defaults to World if not provided.
04

Sample Requests

Basic call (no name)

curl https://labs.lowcademy.com/apis/hello

With name parameter

curl https://labs.lowcademy.com/apis/hello?name=Ankit

JavaScript (fetch)

const res  = await fetch('https://labs.lowcademy.com/apis/hello?name=Ankit');
const data = await res.json();
console.log(data.message); // "Hello, Ankit!"

OutSystems — URL of the GET method

// In Consume REST API → GET method → URL:
https://labs.lowcademy.com/apis/hello

// Add "name" as an Input Parameter mapped to query string
05

Response — 200 OK

FieldTypeDescription
successBooleanAlways true on success
messageStringThe greeting — e.g. "Hello, World!"
timestampStringServer time when the response was generated. Format: YYYY-MM-DD HH:MM:SS
{
  "success"   : true,
  "message"   : "Hello, Ankit!",
  "timestamp" : "2026-07-12 10:30:01"
}
06

Error Responses

200
OK — Greeting returned successfully.
405
Method Not Allowed — Request was not GET.
{"success":false,"error":"Method Not Allowed. Use GET."}