Skip to main content
Two utility endpoints that cost 0 credits and are available to all plans.

Health check

GET /health - returns the current service status. No authentication required.
status
string
"healthy" when the service is fully operational. Use this for uptime monitoring and load balancer health probes.
service
string
Always "rail-score-engine".

Key verification

POST /verify - verifies that an API key is valid and active. Returns the plan and remaining credits for the key.
valid
boolean
true if the key/token is active and authorized.
auth_type
string
"api_key" or "jwt", depending on how the request authenticated.
plan
string
The plan associated with this credential: "free", "pro", "business", or "enterprise".
balance
number
Credit balance remaining in the current monthly period. null (with a balance_error field) if the credits service was unreachable when this call was made — valid is unaffected.

Error responses

Health check in the SDKs

Both SDKs wrap /health:
Neither SDK currently wraps /verify with a dedicated method — call it directly (as in the curl example above) if you need a pre-flight credential/balance check.

What’s next

Authentication

How to generate and manage API keys.

Credits & Pricing

Credit costs for each endpoint and plan allocations.