TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sistemashm24/pagos_hotspot_api/llms.txt
Use this file to discover all available pages before exploring further.
/api/v1/config/public endpoint is the first call a captive portal frontend should make after loading. It returns the public API keys needed to initialize Conekta.js and the Mercado Pago SDK in the browser, along with human-readable metadata about the company and the router serving the portal. All sensitive private keys remain server-side and are never exposed through this endpoint.
Request
Method:GETPath:
/api/v1/config/public
Headers
Router API Key in the format
jwt_<token>. This key identifies both the company and the specific router. Generated when creating a router in the admin panel.Example: jwt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Request Body
None — this is aGET endpoint with no query parameters or body.
Response
Returns a JSON object with two top-level keys:empresa (company configuration) and router (router metadata).
Public configuration scoped to the company that owns this router.
Metadata about the specific router that issued the API Key.
Example
cURL
Response 200 OK
Error Responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid X-API-Key header. |
403 Forbidden | API Key is revoked or expired. |
500 Internal Server Error | Server-side error fetching configuration. |
conekta_public_key and mercadopago_public_key are safe to expose in the browser. Never use or expose the corresponding private/access token keys on the frontend — those are stored server-side and used internally by the payment endpoints.