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

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

Permission Scopes
Manage Ricos Document
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ricos/v1/ricos-document/generate-site-media-token

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?