h/ namespace holds H’s public ones.
The API is served from https://agp.eu.hcompany.ai, and every route lives under /api/v2.
Get an API key
Create a key at platform.hcompany.ai/settings/api-keys: click Create key and give it a name. The key is shown once, so store it securely and keep it server-side. Never commit it to source control or ship it in client code.Authenticate a request
Send the key in theAuthorization header as Bearer $HAI_API_KEY. Configure the client once and it attaches the key to every call.
Region
H runs isolated EU and US regions. Requests stay in-region, so an EU key only ever reaches EU infrastructure (data residency). The REST API lives under/api/v2 and the MCP server under /mcp on each region’s host:
| Region | Host |
|---|---|
| EU (default) | https://agp.eu.hcompany.ai |
| US | https://agp.hcompany.ai |
Organization scoping
A key acts as its organization. Resources you create are visible only within that org, and you reference them by theid or name you assign. Names under the h/ prefix are reserved: they are H-maintained, read-only, and available to every organization.
A missing or invalid key returns 401, and a valid key without permission for an operation (such as modifying a reserved h/ resource) returns 403. See Errors for the full list.