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 only creates API keys from a console session: deploying with an API key fails with ApiTokenCreationForbidden.

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