Ping
GET /v1/ping checks the whole path: your request reaches the Black API, and the API reaches the billing engine, the part of Black that calculates billing. Call it first when you set up a client, or when you want to know whether Black is working.
The ping needs no credentials. Other addresses will need an access token. See Authentication.
Send a ping
Send a GET request to /v1/ping:
GET /v1/ping
The same request with cURL:
curl https://api.black.example/v1/ping
The Black-Version header is optional. See Versions.
Read the answer
A working path answers 200 OK:
HTTP/1.1 200 OK
Black-Version: 2026-11-12
Request-Id: req_01m774tr4qc8q7s4atp9j53q90
{"object":"ping","api_version":"2026-11-12","engine_version":"v0.0.0-20261112041415-c52d7355014f","engine_response_time_ms":6}
The body has four fields:
object: alwaysping.api_version: the version of the API that answered. It is the same as theBlack-Versionheader of the response.engine_version: the version of the billing engine that answered.engine_response_time_ms: how long the billing engine took to answer, in milliseconds.
The Request-Id header holds the ID of the request. See Request IDs.
Fix a 503 answer
When the API cannot reach the billing engine, the answer is 503 Service Unavailable with the code billing_engine_unavailable.
The billing engine cannot be reached for the moment. Wait, then send the request again. If it keeps failing, contact support with the request_id. See Errors.
Stay within the rate limit
The endpoint accepts 30 calls a minute from one client address. A call beyond that answers 429 with the code rate_limited and a Retry-After header with the number of seconds to wait. See Errors.