POST
health
Verifica que la API esté operativa. No requiere apiKey ni headers de autenticación.
Endpoint
POST
https://magicpay.b4a.io/functions/healthHeaders
| Header | Valor |
|---|---|
| Content-Type | application/json |
| x-parse-application-id | YOUR_APP_ID |
| x-parse-rest-api-key | YOUR_REST_KEY |
Ejemplo de Request
cURL
curl -X POST 'https://magicpay.b4a.io/functions/health' \
-H 'Content-Type: application/json' \
-H 'x-parse-application-id: YOUR_APP_ID' \
-H 'x-parse-rest-api-key: YOUR_REST_KEY'JavaScript
const response = await fetch('https://magicpay.b4a.io/functions/health', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-parse-application-id': 'YOUR_APP_ID',
'x-parse-rest-api-key': 'YOUR_REST_KEY',
},
body: JSON.stringify({}),
});
const data = await response.json();
console.log(data);Ejemplo de Respuesta
JSON
{
"result": {
"status": "ok",
"time": "2024-01-15T12:00:00.000Z",
"timeEpochMs": 1705320000000,
"uptimeSeconds": 86400,
"nodeVersion": "v18.17.0"
}
}