Endpoints

GET /ping

Lightweight credential and connectivity check.

GET/pingany key

Lightweight health check that confirms your key, environment, and pinned API version. No side effects.

Request
curl https://sandbox-api.key2pays.com/v1/ping \
  -H "Authorization: Bearer sk_test_51N8mP...exampleK3Y"
Response
{
  "ok": true,
  "environment": "sandbox",
  "keyKind": "secret",
  "keyId": "sk_test_…ax8d",
  "apiVersion": "2026-05-01",
  "merchant": { "id": "MCH-001", "name": "Acme Inc" },
  "timestamp": "2026-05-02T07:32:11.428Z"
}
Try itGET/pingsandbox
Live snippet
curl -X GET "https://sandbox-api.key2pays.com/v1/ping" \
  -H "Authorization: Bearer sk_test_…YOUR_KEY"
Snippet updates as you edit the form. Sandbox responses are deterministic.