Skip to content
Back to Changelog

Appwrite Sites get ephemeral API keys

Appwrite Sites now generates a ephemeral API key for every site build and every server-side rendering (SSR) request. The key carries only the scopes granted to the site and expires shortly after the request's timeout, so server-rendered sites can send OTPs, provision resources, or accept anonymous submissions without an APPWRITE_API_KEY variable.

Appwrite provides the key as the APPWRITE_SITE_API_KEY environment variable during the build and on the x-appwrite-key request header at run time. Grant scopes to a site from the Scopes card under Settings > Build in the Console, or with the scopes parameter on the create and update site endpoints.

Ready to build?_