Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Embed Script

Inject a script in an app with an existing embedded script component, with the given parameters

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Embedded Scripts permission scope.

POST

https://www.wixapis.com/apps/v1/scripts

Body Params

NAME
TYPE
DESCRIPTION
properties
Required

object

Parameters to embed

Response Object

NAME
TYPE
DESCRIPTION
properties

object

Script instance on this website

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X POST \
2 https://www.wixapis.com/apps/v1/scripts \
3 -H 'Authorization: <AUTH>' \
4 -d '{
5 "properties": {
6 "parameters": {
7 "MY_DYNAMIC_PARAMETER": "HB-23466-35"
8 }
9 }
10 }'

Response

json

1
2{"properties": {"parameters": {"MY_DYNAMIC_PARAMETER": "HB-23461-35"}}}