BlnkInit to create a client. It is synchronous — do not await it.
API key
Blnk Core reads theX-Blnk-Key header. The SDK sets it from the first argument to BlnkInit.
| API key argument | X-Blnk-Key header | When to use |
|---|---|---|
| Non-empty string | Sent with the key value | Production, Blnk Cloud, or any secured Core instance |
'' (empty string) | Omitted | Local development when Core runs without auth |
blnk.Hooks and blnk.ApiKeys require the master key (server.secret_key) — a scoped API key returns 403.
Do not set X-Blnk-Key manually in your application code. Pass the key to BlnkInit and the SDK adds the header on every request.