Authentication and base URL
Every request goes tohttps://api.matrices.com with an API key as a bearer
token. Keys are workspace-scoped: only the workspace owner can create them, in
the console under Workspace → API keys, and one key authenticates both
planes. A key can carry an expiry, after which it stops working.
To see what a key is, call GET /v1/auth. It returns the principal the key
acts as and the workspace it belongs to. The playground on each endpoint page
sends real requests.
A principal.type of api_key with no agentId reaches every agent in the
workspace. The owner can also mint a key from one agent’s Configuration page:
it still authenticates as api_key, but carries that agentId and can only
operate that one agent. So if you have to put a key somewhere you wouldn’t
trust with the whole workspace, scope it to an agent. Disabling the agent’s
identity stops its scoped keys too.
A principal.type of agent is something else: the short-lived lease an
agent’s own sandbox uses to call the API, checked against that agent’s live
permissions. You never create one.