---
title: "Create a URL"
method: POST
path: "/accounts/{account_id}/urls"
---

# Create a URL

`POST /accounts/{account_id}/urls`

## Request

- Base URL: `https://api.speedcurve.com/v2`
- URL: `https://api.speedcurve.com/v2/accounts/{account_id}/urls`
- Auth: HTTP basic

## Path parameters

- `account_id` integer, required

## Request body

- object
  - `site_id` integer, required
  - `url` string, required: A valid URL
  - `label` string, required: Page label
  - `script` string: Testing script
  - `auth` object
    - `username` string: HTTP Basic auth username
    - `password` string: HTTP Basic auth password

## Response `200`

200

- object
  - `data` object
    - `url_id` integer
    - `url` string
    - `label` string
    - `script` unknown
    - `auth` object
      - `username` unknown
      - `password` unknown
    - `site` object
      - `site_id` integer
      - `name` string
      - `type` string

## Other responses

- `422`: 422

---

[API](https://skmtc.dev/speedcurve/apis/speedcurve-api-v2-beta.md) - [All operations](https://skmtc.dev/speedcurve/apis/speedcurve-api-v2-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/speedcurve/apis/speedcurve-api-v2-beta/revisions/746c2c6d0ffd?raw)
