Skip to content

Archil.API Key reference

Source: packages/archil/src/ApiToken.ts

An Archil API key. It can call the whole control plane of your account: Archil has no scoped keys, so give each app or host its own key and revoke it on its own. To mount one disk, use a DiskUser, whose token works only for that disk.

Archil only shows the key once, when it’s created, so Alchemy stores it in state as a Redacted value. Changing a prop creates a new key, and destroying it revokes the key.

Archil refuses API keys on its API key operations: deploying with one fails with Unauthorized, the same error a bad key gets.

const key = yield* Archil.ApiToken("Ci", { description: "GitHub Actions" });