Skip to main content

Hello

Test endpoint to verify API availability and get basic system information.

Endpoints

MethodEndpointDescription
GET/api/helloGet API status and version info

Get API status

Returns basic information about the API.

Request

GET /api/hello

Example request

curl -X GET https://your-domain.com/api/hello \
-H "Accept: application/json"

Response

{
"success": true,
"data": {
"message": "Hello from TorrentPier API",
"version": "3.0.0",
"php_version": "8.4.0",
"timestamp": 1701432000
}
}

Response fields

FieldTypeDescription
successbooleanRequest status
data.messagestringWelcome message
data.versionstringTorrentPier version
data.php_versionstringPHP version
data.timestampintegerCurrent Unix timestamp

Status codes

CodeDescription
200Success
500Server error

Notes

  • This endpoint does not require authentication
  • Useful for health checks and monitoring
  • Response time can be used as a basic latency test