Scripts

/v1/scripts

Create a new script

post/v1/scripts

Request

  • Base URL
    https://api.rebrandly.com
  • URL
    https://api.rebrandly.com/v1/scripts
  • Auth
    API key in header apikey

Headers

workspacestring

Which workspace id to be used to create scripts. No workspace specified will select main workspace.

Request body

namestring required

The name you want to associated to the script

valuestring required

A javascript snippet (including <script> and </script> HTML tags)

Response

200

idstring
namestring
uristring

Example response

{
  "id": "ftag4cc5b6ee45d6g7897b06ac2d16af",
  "name": "Test alert",
  "uri": "https://custom.rebrandly.com/user/abcdecc5b6ee45d6g7897b06ac2d1xyz"
}

Changes

No recorded changes to this operation across all 1 revision of this API.