SpainMCP
Referencia APIAPI Reference

Health check

Comprobar si el servicio está en ejecución

GET /health

Autorizaciones

ParámetroTipoUbicaciónRequeridoDescripción
AuthorizationstringheaderAPI key de SpainMCP como Bearer token

Respuesta

200application/json

El servicio está operativo.

CampoTipoRequeridoDescripción
statusstringEstado del servicio
timestampstringTimestamp de la respuesta
{
  "status": "<string>",
  "timestamp": "<string>"
}

500 — Error interno del servidor

Ejemplo

import SpainMCP from '@spainmcp/api';

const client = new SpainMCP({
  apiKey: process.env['SPAINMCP_API_KEY'],
});

const response = await client.health.check();

console.log(response.status);
¿Te ha sido útil esta página?

En esta página