# The UpSheGoes API

Canonical: https://upshegoes.com/api · Updated: 2026-11-30 · Language: en

Put your site online from your own script or program with the UpSheGoes REST API. A token, a few curl commands and the full OpenAPI description.

Everything your AI assistant does through UpSheGoes, you can also do from your own script or program: create sites, publish, go back to an earlier version and connect domains. Paying, cancelling and deleting you always approve yourself in your dashboard.

This page is for people who write code themselves. If you use ChatGPT or Claude, you do not need the API: connect your assistant instead, see [get started](https://upshegoes.com/help/get-started).

## What the API is for

The API is the REST API at `https://api.upshegoes.com`. Your assistant uses the same API through the connector. With a token of your own you can do the same from a script, for example to publish your site after every build. Every route, with its fields and answers, is in the OpenAPI description: [https://api.upshegoes.com/v1/openapi.json](https://api.upshegoes.com/v1/openapi.json). A short summary for language models is at [upshegoes.com/llms.txt](https://upshegoes.com/llms.txt).

## Make a token

Make a token in your dashboard at app.upshegoes.com, under **Account**, at **API tokens**, with **New token**. You see the token once: copy it right away and keep it like a password. You choose how long it works; you revoke it in the same place. Send the token with every request:

```text
Authorization: Bearer <your token>
```

A token has rights (scopes):

- `account:read`: see your account and plan.
- `account:write`: manage your account, plan and payments.
- `sites:read`: see your sites and their files.
- `sites:write`: create, publish and change your sites.

## The Idempotency-Key

Every request that changes something (POST, PUT, PATCH and DELETE) needs an `Idempotency-Key` header: any text of 8 to 255 characters, for example a UUID. If a request fails because of a network error, send it again with the same key: that way it never happens twice. Always use a new key for a different request; the same key with a different request is refused.

## Publish a site

First put your token in a variable:

```sh
export UPSHEGOES_TOKEN="<your token>"
```

Check that the token works:

```sh
curl -s https://api.upshegoes.com/v1/me \
  -H "Authorization: Bearer $UPSHEGOES_TOKEN"
```

Create a site. The answer holds the site's `id` and its upshegoes.nl address:

```sh
curl -s -X POST https://api.upshegoes.com/v1/sites \
  -H "Authorization: Bearer $UPSHEGOES_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-site"}'
```

Publish a first version, here with one file in the request. Replace `SITE_ID` with the `id` from the previous answer:

```sh
curl -s -X POST https://api.upshegoes.com/v1/sites/SITE_ID/deployments \
  -H "Authorization: Bearer $UPSHEGOES_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"files": [{"path": "index.html", "content": "<h1>Hello</h1>"}]}'
```

Then look at the site and its versions:

```sh
curl -s https://api.upshegoes.com/v1/sites/SITE_ID \
  -H "Authorization: Bearer $UPSHEGOES_TOKEN"
```

You send a bigger site as a zip: ask for an upload with `POST /v1/uploads`, `PUT` the zip to the address in the answer, and publish with `upload_id`. Without a plan, an account can publish one site as a free preview, while UpSheGoes offers free previews; then you go live in your dashboard. See [pricing](https://upshegoes.com/pricing).

## When something fails

An error comes back as JSON in the `application/problem+json` format (RFC 9457), with these fields:

- `type`: an address that explains this error, under [upshegoes.com/problems](https://upshegoes.com/problems);
- `title` and `status`: the kind of error and the HTTP status;
- `detail`: what exactly went wrong;
- `fix`: what you can do to solve it.

A request that costs money or deletes something, such as buying a domain or deleting a site, first answers with status 428 and a link to approve. The owner of the account approves it in the browser, signed in to the dashboard. Then you send the request again with the `confirmation_id` from the answer.

## Questions?

Questions or need help? Mail hello@upshegoes.com. We answer within one working day, in Dutch or English. We cannot write the code of your own program for you.
