Skip to main content
GET
/
health
Verificar saúde da API
curl --request GET \
  --url https://api.troqpay.com/health \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "service": "troqpay-api",
  "requestId": "req_0123456789abcdef01234567"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Request-Id
string

Identificador opcional fornecido pelo cliente para correlação. A API aceita também X-Request-Id. O valor é ecoado de volta no header de resposta Request-Id. Se nenhum dos dois é enviado, a API gera req_<24 hex>.

Example:

"req_4a8b3c1d5e6f2a9b0c1d2e3f"

Response

200 - application/json

API disponível.

ok
boolean
required
Example:

true

service
string
required
Example:

"troqpay-api"

requestId
string
required
Example:

"req_0123456789abcdef01234567"