Skip to main content

Widget embed code

Endpoint GET /widgets/:id/embed-code

Retrieve a widget's embed code.

Path Parameters

  • id - The widget's id.

Example Request:

curl -H "Authorization: Bearer ACCESS_TOKEN" ""

Example Response:

"html": "<div class=\"commonninja_component pid-894f5aed-29f5-46c5-9f26-022bfccc5292\"></div>",
"script": "<script src=\"\" defer></script>"

You can use the returned HTML to embed the widget on your platform or website. The script tag should be added to the head of your page, and you only need to add it once.