aft.page API API

Deploy HTML or a built site to a live HTTPS URL. Cloud for small software — no account, no cloud setup.

Operations 14

POST /v1/deploy Deploy HTML or files to a live URL
PATCH /v1/deploy Redeploy to an existing slug
POST /v1/claim/start Claim an anonymous deploy by email
POST /v1/auth/start Send a magic sign-in link
GET /v1/auth/verify Exchange a magic link token for a session
GET /v1/me Current user
POST /v1/repo/check Detect build plan for a public GitHub repo
POST /v1/repo/deploy Deploy a public GitHub repo to a live URL
GET /v1/jobs/{id} Job status
GET /v1/sites/{slug}/deploys Deploy history for a slug
POST /v1/sites/{slug}/rollback Point a live slug at a prior deploy
GET /health Health check
GET /llms.txt llms.txt agent index
GET /openapi.json This OpenAPI document

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aft-page:aft-page-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aft-page-api-openapi.json Raw ↑
{
  "openapi": "3.1.0",
  "info": {
    "title": "aft.page API",
    "version": "1.0.0",
    "description": "Deploy HTML or a built site to a live HTTPS URL. Cloud for small software — no account, no cloud setup.",
    "termsOfService": "https://aft.page/",
    "contact": {
      "name": "aft.page",
      "url": "https://aft.page"
    }
  },
  "servers": [
    {
      "url": "https://api.aft.page"
    }
  ],
  "tags": [
    {
      "name": "deploy",
      "description": "Publish and update sites"
    },
    {
      "name": "claim",
      "description": "Claim an anonymous deploy"
    },
    {
      "name": "auth",
      "description": "Session and ownership"
    },
    {
      "name": "repo",
      "description": "Deploy a public GitHub repo"
    },
    {
      "name": "sites",
      "description": "Deploys, files, logs, rollback"
    },
    {
      "name": "domains",
      "description": "Custom domains"
    },
    {
      "name": "meta",
      "description": "Health, changelog, discovery"
    }
  ],
  "paths": {
    "/v1/deploy": {
      "post": {
        "tags": [
          "deploy"
        ],
        "summary": "Deploy HTML or files to a live URL",
        "description": "multipart field 'files', application/json {files:[{path,content,encoding}]}, or a raw text/html body. Optional ?slug= to target an existing site.",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$"
            },
            "description": "Target an existing slug (PATCH only)"
          },
          {
            "name": "expires",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^\\d+(s|m|h|d)?$"
            },
            "description": "Anon quick-view self-destruct, e.g. 1h, 24h"
          }
        ],
        "responses": {
          "200": {
            "description": "Live URL",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "deployId": {
                      "type": "string"
                    },
                    "editToken": {
                      "type": "string"
                    },
                    "files": {
                      "type": "number"
                    },
                    "claimUrl": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No files / invalid body"
          }
        }
      },
      "patch": {
        "tags": [
          "deploy"
        ],
        "summary": "Redeploy to an existing slug",
        "description": "Requires x-aft-edit-token header or an owning session.",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Updated deploy"
          },
          "404": {
            "description": "Unknown slug"
          }
        }
      }
    },
    "/v1/claim/start": {
      "post": {
        "tags": [
          "claim"
        ],
        "summary": "Claim an anonymous deploy by email",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "slug",
                  "email",
                  "editToken"
                ],
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "editToken": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Claim started"
          }
        }
      }
    },
    "/v1/auth/start": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Send a magic sign-in link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Email sent"
          }
        }
      }
    },
    "/v1/auth/verify": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Exchange a magic link token for a session",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Session set"
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Current user",
        "responses": {
          "200": {
            "description": "User"
          },
          "401": {
            "description": "No session"
          }
        }
      }
    },
    "/v1/repo/check": {
      "post": {
        "tags": [
          "repo"
        ],
        "summary": "Detect build plan for a public GitHub repo",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Detected plan"
          }
        }
      }
    },
    "/v1/repo/deploy": {
      "post": {
        "tags": [
          "repo"
        ],
        "summary": "Deploy a public GitHub repo to a live URL",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Job started"
          }
        }
      }
    },
    "/v1/jobs/{id}": {
      "get": {
        "tags": [
          "repo"
        ],
        "summary": "Job status",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job snapshot"
          }
        }
      }
    },
    "/v1/sites/{slug}/deploys": {
      "get": {
        "tags": [
          "sites"
        ],
        "summary": "Deploy history for a slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deploy list"
          }
        }
      }
    },
    "/v1/sites/{slug}/rollback": {
      "post": {
        "tags": [
          "sites"
        ],
        "summary": "Point a live slug at a prior deploy",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "deployId"
                ],
                "properties": {
                  "deployId": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Rolled back"
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "Health check",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "llms.txt agent index",
        "responses": {
          "200": {
            "description": "text/plain"
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "This OpenAPI document",
        "responses": {
          "200": {
            "description": "application/json"
          }
        }
      }
    }
  }
}