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.
You can only call this method when authenticated as a Wix app or Wix user identity.
OAuth app to create.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves an OAuth app by ID.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the OAuth app to retrieve.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of OAuth apps, given the provided paging, filtering, and sorting.
Query OAuth Apps runs with these defaults, which you can override:
id
in descending order.paging.offset
is 0
.PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() |
_createdDate | ascending() ,descending() |
name | ascending() ,descending() |
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates an OAuth app.
Only fields provided in mask
are updated.
You can update the following fields:
name
description
allowedDomain
loginUrl
logoutUrl
technology
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the OAuth app.
Explicit list of fields to update. Only fields listed are updated.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when an OAuth app is created.
handler(event: OAuthAppCreatedEnvelope): void | Promise<void>
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when an OAuth app is deleted.
handler(event: OAuthAppDeletedEnvelope): void | Promise<void>
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when an OAuth app is updated.
handler(event: OAuthAppUpdatedEnvelope): void | Promise<void>
Returns the total number of items that match the query.
totalCount
returns the total number of items that match the query, not just the number of items in the current page. For the number of items in the current page, see length
.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
Retrieves the next page of query results.
The next()
function retrieves the next page of query results.
The page size is defined by the limit()
function and can be retrieved using the pageSize
property. You can use the next()
and prev()
functions returned by oAuthApps
to navigate the pages of a query result.
If items are added or removed between calls to next()
, the values returned by OAuthAppsQueryBuilder
may change.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
Retrieves the previous page of query results.
The prev()
function retrieves the previous page of query results.
The page size is defined by the limit()
function and can be retrieved using the pageSize
property. You can use the next()
and prev()
functions returned by oAuthApps
to navigate the pages of a query result.
If items are added or removed between calls to prev()
, the values returned may change.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.