createOAuthApp( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a new OAuth app for a Wix Headless client.

An OAuth app authorizes an external client app or site, on any platform, to authenticate with a Wix site or project and manage its data.

Note: The OAuth app secret is returned only when creating the OAuth app, and can't be retrieved later. Store the secret in a secure location.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Headless Manage
Manage OAuth Apps
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
oAuthAppOAuthAppRequired

OAuth app to create.

Returns
Return Type:Promise<OAuthApp>
Did this help?