What is sent
| Header | Value |
|---|---|
| Authorization | Bearer <jwt> — the session, never the key |
| X-IaGenify-Version | the SDK version |
| X-IaGenify-Machine-Id | a hash of hostname, platform, architecture and runtime |
| X-IaGenify-Resources | detected CPU, memory, GPU, disk — omitted when nothing was detected |
| Content-Type | application/json, unless the body is FormData |
The resources header
Recomputed at most every 30 seconds and shared across calls, so a burst of requests does not probe the disk a hundred times. Every probe is wrapped: a field that cannot be read is left out rather than failing the call, and when nothing at all could be read the header is not sent.
Why it is sent at all
It is what lets the machine running the SDK appear on your account as a storage, with its own disk and capabilities, instead of being an anonymous caller. That is the same record an agent works against when it reads or writes files on that machine.
const machines = await api.storage.list();
// a computer appears with its hostname and the disk it reported
const pc = await api.storage.get();
pc.hostname; // from the exchange
pc.machineId; // the same value as the headermachines = api.storage.list()
# a computer appears with the machine id it reported
pc = api.storage.get()
pc.machine_id # the same value as the X-IaGenify-Machine-Id headerThe machine id is a hash of machine facts. It contains nothing you typed, no key, and no account identifier.