API reference
Ping
Confirms your key works and tells you which environment it belongs to.
GET
https://app.journeystack.co/api/public/v1/pingRequest
cURL
curl "https://app.journeystack.co/api/public/v1/ping" \
-H "Authorization: Bearer $JS_KEY"Response
200 OK
{
"data": {
"ok": true,
"environment": "sandbox",
"partner": "Acme Travel",
"currency": "USD",
"server_time": "2026-01-14T09:30:00.000Z"
}
}Selected response fields
| Field | Type | Description |
|---|---|---|
environment | string | sandbox or live, derived from the key you sent. |
partner | string | Your company name as it appears on your Journey Stack account. |
currency | string | The currency every price in the API is returned in. |
server_time | string | Current server time, ISO 8601 UTC. Useful for clock checks. |
Errors
| Code | HTTP | What to do |
|---|---|---|
| unauthorized | 401 | Check the Authorization header and that the key is still active in your portal. |
| account_inactive | 403 | Nothing to retry. Contact support@journeystack.co. |
| rate_limited | 429 | Honour `Retry-After` (60 seconds) and back off. Ask support for a higher limit. |
Sandbox console
Run this endpoint against the sandbox with your own test key. Nothing is provisioned on the live network and no real money moves.