Genkit JS API reference
    Preparing search index...

    Interface ApiKeyContext

    Action side channel data, like auth and other invocation context infromation provided by the invoker.

    interface ApiKeyContext {
        auth: { apiKey: string | undefined };
        secrets?: Record<string, unknown>;
        [additionalContext: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [additionalContext: string]: any
    Index

    Properties

    Properties

    auth: { apiKey: string | undefined }

    Information about the currently authenticated user if provided.

    secrets?: Record<string, unknown>

    Safe place to pass non-auth operational secrets (e.g., custom database passwords or encryption keys). This namespace is actively scrubbed from telemetry traces.