Auth Quick Reference

This page is a lookup for the auth decisions you make while building, once you already understand the core concepts. It doesn't explain how auth works. Instead, it collects the answers in one place so you can find them fast.

Read it in whichever direction matches your question:

  • By development path: For the kind of project you're building, what you set up, and which identities it can use.
  • By scenario: For a specific situation, what identity the call runs as and how you authenticate it.

For the concepts behind these tables, see Auth on the Wix Platform, Identities, and Authentication Methods.

By development path

Use this table when you know what kind of project you're building. It shows what you're responsible for setting up and which identities calls can run as on that path.

Development pathAuthenticationAvailable identities
SitesHost auth, automaticVisitor, member, Wix user
Wix-managed headlessOAuth, automatic with the Astro integrationVisitor, member, Wix user, Wix app
Self-managed headlessOAuth and API keys, you configureVisitor, member, Wix app, API key admin
Wix-managed appsHost auth and OAuth, automaticVisitor, member, Wix user, Wix app
Self-managed appsHost auth and OAuth, you configureVisitor, member, Wix user, Wix app
Blocks appsHost auth, automaticVisitor, member, Wix user, Wix app

On every development path, backend code can elevate a call (elevated() in the SDK) to perform an operation the caller isn't authorized for.

Note: In Wix-managed headless, Wix hosts your frontend, but authentication is automatic only with Wix's Astro integration. A Wix-managed project that brings its own frontend handles authentication itself, like self-managed headless.

By scenario

Use this table when you know the situation your code is in and need to know what the call runs as and how to authenticate it. Rows run roughly from code inside a Wix host to code running fully outside it. The REST auth and SDK auth columns are two ways to do the same thing, so use the one that matches your stack.

ScenarioIdentityREST authSDK auth
On a Wix site (frontend or web method)Visitor or memberAutomaticAutomatic
In a dashboard or editorWix userNot supportedAutomatic
External visitor sessionVisitorOAuth anonymousOAuthStrategy
External member sessionMemberOAuth authorization_codeOAuthStrategy
Backend runs as the app (API calls, event handlers, scheduled jobs)Wix appOAuth client_credentialsAppStrategy
External admin automation, no sessionAPI key adminAPI keyApiKeyStrategy

Note: Inside a Wix host, authentication is automatic and you don't create a Wix client. Self-managed apps that run on a site authenticate a client with the host module. Acting as a Wix user is SDK-only.

See also

Last updated: 2 August 2026

Did this help?