SUB_.123MESUB_API_KEY=SUB_... # Only when Mesub gives you another API address: MESUB_BASE_URL=https://...
@mesub/node reads both variables by itself:123import { Mesub } from '@mesub/node'; const mesub = new Mesub(); // reads MESUB_API_KEY and MESUB_BASE_URL
MESUB_BASE_URL unset, and
the SDK calls https://api.mesub.io; set it, beside the key and from the same
place, only when the dashboard or the Mesub MCP server gives you another API
address. Point it only at Mesub's address or at a proxy you trust: your key is
sent there on every call. A baseUrl passed to new Mesub() wins over the
variable, which @mesub/node reads from 0.1.3.@mesub/node mounts on
your server.12curl "https://api.mesub.io/v1/project" \ -H "Authorization: Bearer $MESUB_API_KEY"
200 with the project's id means the key is good:1{ "id": "cmufsl77w001ag2s6pp1ngf9p" }
| Status | Code | Meaning |
| 401 | missing_api_key | No Authorization: Bearer header was sent |
| 401 | invalid_api_key | Not a key Mesub issued, or one rotated since |
401.