POST

Generate Site Media Token


Developer Preview

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

Generates a site media token that lets a Ricos editor open Wix media tools, such as Image Studio, for the current Wix user.

Pass the token as siteToken when you open Image Studio from the Ricos image plugin. The token identifies the site and the Wix user, and is valid only in a browser where that user is logged in to Wix. It expires after 14 days, so you can reuse it for the editor session.

Only Wix users can call this method. Calls by site members, site visitors, or anonymous callers fail with a permission error. Wix app calls without a Wix user fail with a WIX_USER_REQUIRED error.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permission Scopes
Manage Ricos Document
Learn more about app permissions.
Method Declaration
Copy
Errors
403Permission Denied

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?