From e979daf397adea3823fd716ab162b1970d8c2bf1 Mon Sep 17 00:00:00 2001 From: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:20:59 -0800 Subject: [PATCH] feat: update dynamic api keys docs Clarify where the dynamic API key is during execution --- src/routes/docs/products/functions/develop/+page.markdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/docs/products/functions/develop/+page.markdoc b/src/routes/docs/products/functions/develop/+page.markdoc index 70f5c72a97..e055f09df6 100644 --- a/src/routes/docs/products/functions/develop/+page.markdoc +++ b/src/routes/docs/products/functions/develop/+page.markdoc @@ -1552,6 +1552,8 @@ However, you can only use dynamic API keys inside Appwrite functions. During the build process, dynamic API keys are automatically provided as the environment variable `APPWRITE_FUNCTION_API_KEY`. This environment variable doesn't need to be initialized. +During execution, dynamic API keys are automatically provided in the `x-appwrite-key` [header](#headers). + Dynamic API keys grant access and operate without sessions. They allow your function to act as an admin-type role instead of acting on behalf of a user. Update the function settings to configure the scopes of the function.