---
title: "/v1/scripts"
method: POST
path: "/v1/scripts"
tags: ["Scripts"]
---

# /v1/scripts

`POST /v1/scripts`

## Request

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

Create a new script

## Headers

- `workspace` string

## Request body

- ScriptCreationRequest
  - `name` string, required: The name you want to associated to the script
  - `value` string, required: A javascript snippet (including <script> and </script> HTML tags)

## Response `200`

200

- Script
  - `id` string
  - `name` string
  - `uri` string

---

[API](https://skmtc.dev/rebrandly/apis/rebrandly-legacy.md) - [All operations](https://skmtc.dev/rebrandly/apis/rebrandly-legacy/llms.txt) - [OpenAPI document](https://skmtc.dev/rebrandly/apis/rebrandly-legacy/revisions/edc8d2ea0d88?raw)
