Get an API key
Concepts

Request headers

Four headers travel on every call. Three of them describe the machine the SDK is running on, which is how a machine becomes a storage on your account.

sent automatically
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

What is sent

HeaderValue
AuthorizationBearer <jwt> — the session, never the key
X-IaGenify-Versionthe SDK version
X-IaGenify-Machine-Ida hash of hostname, platform, architecture and runtime
X-IaGenify-Resourcesdetected CPU, memory, GPU, disk — omitted when nothing was detected
Content-Typeapplication/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 header
machines = 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 header
Nothing here identifies a person

The machine id is a hash of machine facts. It contains nothing you typed, no key, and no account identifier.