POST

Create OAuth App


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.

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.
Endpoint
POST
https://www.wixapis.com/oauth-app/v1/oauth-apps

Body Params
oAuthAppOAuthAppRequired

OAuth app to create.

Response Object
oAuthAppOAuthApp

Created OAuth app info.

Create an OAuth app
Request
cURL
curl -X POST \ 'https://www.wixapis.com/oauth-app/v1/oauth-apps' \ -H 'Authorization: <AUTH> \ -H 'Content-Type: application/json' \ -d '{ "oAuthApp": { "name": "Test app", "description": "Some test app", "applicationType": "WEB_APP", } }'
Response
JSON
{ "oAuthApp": { "id": "adddb436-aa2c-474a-8f0e-af719f3acd5b", "createdDate": "2023-03-28T13:43:48.959Z", "name": "Test app", "description": "Some test app", "secret": "8e2e6c5c-2351-4c47-8c29-63d52b24424c", "allowedRedirectDomains": [], "loginUrl": "", "logoutUrl": "", "allowedRedirectUris": [], "applicationType": "WEB_APP", "technology": "OAUTH_TECHNOLOGY_UNSPECIFIED" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?