---
title: "Deploy HTML or files to a live URL"
method: POST
path: "/v1/deploy"
tags: ["deploy"]
---

# Deploy HTML or files to a live URL

`POST /v1/deploy`

## Request

- Base URL: `https://api.aft.page`
- URL: `https://api.aft.page/v1/deploy`
- Auth: none declared

multipart field 'files', application/json {files:[{path,content,encoding}]}, or a raw text/html body. Optional ?slug= to target an existing site.

## Query parameters

- `slug` string
- `expires` string

## Response `200`

Live URL

- object
  - `slug` string
  - `url` string
  - `deployId` string
  - `editToken` string
  - `files` number
  - `claimUrl` string
  - `expiresAt` string

## Other responses

- `400`: No files / invalid body

---

[API](https://skmtc.dev/aft/apis/aft-page-api.md) · [All operations](https://skmtc.dev/aft/apis/aft-page-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aft/apis/aft-page-api/revisions/123e35ec771b?raw)
