Welcome to Genhike Sports

GET /api/v1

Source app/api/ApiController.php@44492cfc3aef Parameters and errors scanned from site() Rendered at 2026-11-23 20:58:57
Method
GET
Path
/api/v1
Auth
Token required (Authorization: Bearer, X-Api-Key or ?key=)
Handler
ApiController::site()
Routing
Default endpoint when no version segment is present (/api/v1 and /api are equivalent)
Description
Site information and the endpoint list

Parameters

This endpoint takes no parameters at all.

Response sample

not captured yet Run php cli/build-manual.php --capture; the reconciler reports a missing sample as a failure.

Error codes

Code Meaning Scope
401 Invalid API token
403 This token may not access that model
404 Endpoint not found
404 Unknown content model
405 Read-only API: GET is the only supported method
429 Too many requests, please retry later
500 Internal server error
503 The open API is not enabled on this site

Example call

The URL is built from the registry path plus real parameters from this site; replace the token with your own.

curl -sS \
  -H 'Authorization: Bearer ' \
  -H 'Accept: application/json' \
  'https://www.genhikesports.com/api/v1'
Placeholder Value on this site
{model} news
{slug} heng-air-6-3-launch

Common scenarios

  • Read once when a mini-program boots to get the version, rate limit, site name and endpoint list
    /api/v1
  • Let the client discover capabilities from the endpoints field instead of hard-coding URLs
    /api/v1

/api/v1/models → · All endpoints

Send an Enquiry