{"openapi":"3.1.0","info":{"title":"UpSheGoes API","version":"0.1.0","description":"Agent-first hosting for sites an AI assistant builds. Host anything your AI builds. Errors use application/problem+json and include a fix field. OAuth 2.1 lives under /oauth. Mutating routes require Idempotency-Key; only a request that was carried out is stored under its key, so a refusal can be sent again with the same key once its cause is fixed. camelCase keys on Operation and Deployment are deprecated: use the snake_case keys.\n\n## Quickstart\n\n- Base URL: https://api.upshegoes.com. Every path starts with /v1 (OAuth is under /oauth).\n- Authentication: Authorization: Bearer <aih_pat_ token or OAuth access token>. Each operation in /v1/openapi.json lists the scope it needs (account:read, account:write, sites:read, sites:write).\n- Every POST, PUT, PATCH and DELETE needs an Idempotency-Key header (8 to 255 characters, a new one per request). Send the same key to retry the same request: a request that was carried out is answered again with the header idempotent-replayed: true. A refusal (any 4xx or 5xx) is not stored, so after you fix the cause you can send the same call again with the same key.\n- Errors are application/problem+json with type, title, status, detail, instance and fix. The fix is the next step. A 428 holds approve_url: the owner approves in the dashboard, then you retry the same request with confirmation_id.\n- Lists take limit (1 to 100, default 50) and cursor, are newest first, and answer next_cursor.\n- The full contract is GET /v1/openapi.json. OAuth discovery is /.well-known/oauth-authorization-server.\n\nFive calls take you from nothing to a site online:\n\n```sh\n# 1. Ask for a sign-in link. UpSheGoes mails a link. Open it in your browser to sign in.\ncurl -s -X POST https://api.upshegoes.com/v1/auth/magic-link \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -d '{\"email\":\"you@example.com\"}'\n\n# 2. Create an API token. Signed in, create the token in the dashboard under Account, or with this call from your session. The answer holds the aih_pat_ token once. Keep it.\ncurl -s -X POST https://api.upshegoes.com/v1/tokens \\\n  -H \"Authorization: Bearer $TOKEN_OR_SESSION\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -d '{\"name\":\"my laptop\",\"scopes\":[\"sites:read\",\"sites:write\"]}'\n\n# 3. Create a site. The answer has the site id and its preview hostname.\ncurl -s -X POST https://api.upshegoes.com/v1/sites \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -d '{\"name\":\"Harbor Bakery\"}'\n\n# 4. Deploy files. A new account first has a free preview of 14 days; going live needs the owner to pay in the dashboard (an assistant cannot). The answer is an operation: poll GET /v1/operations/{operation_id} until it has succeeded, then open the preview hostname.\ncurl -s -X POST https://api.upshegoes.com/v1/sites/$SITE_ID/deployments \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -d '{\"files\":[{\"path\":\"index.html\",\"content\":\"<!doctype html><title>Harbor Bakery</title><h1>Hello</h1>\"}]}'\n\n# 5. Check a domain name. Whether the name is free and can be registered here. A registration needs the owner's approval in the dashboard.\ncurl -s -X POST https://api.upshegoes.com/v1/domain-checks \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -d '{\"domains\":[{\"name\":\"harborbakery\",\"extension\":\"nl\"}]}'\n```"},"servers":[{"url":"/","description":"This environment."}],"paths":{"/v1/apps/{app_id}/restore-final":{"post":{"operationId":"restoreFinalApp","summary":"Bring back an app that ended with its plan, from its final backup (kept 30 days after the end). Needs sites:write. The account must be active, or the answer is a 428 that names the restart. On a cancelled account the first call answers 428 confirmation-required with the amounts of the order (the app, its extra storage, and the Site plan when the account had it); the owner approves in the dashboard, then retry with confirmation_id. include_site_plan (cancelled account only) says whether the Site plan restarts with the app (default: when the account had it): send the same value with confirmation_id. After the final backup expired the answer is 410 app-final-backup-expired.","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreFinal"}}}},"responses":{"202":{"description":"The restore started: a new server is built and the final backup is restored into it. Follow it with GET /v1/operations/{operation_id}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. payment-required: an open amount of the account is paid first.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. not-found: no ended app with that id on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"410":{"description":"application/problem+json with fix. app-final-backup-expired: the final backup is gone.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required: the order of the restore needs the owner's approval (approve_url).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps":{"get":{"operationId":"listApps","summary":"Apps on this account with status, hostnames, machine health, live release, and open upgrades. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"Apps","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"createApp","summary":"Create an app (a site with kind app) in draft. Deploy it with POST /v1/apps/{app_id}/deployments. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApp"}}}},"responses":{"201":{"description":"The app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App"}}}},"400":{"description":"application/problem+json with fix. invalid-body: the name or size is not valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. app-limit-reached: the account holds the most apps it may.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. site-is-static: the name belongs to a static site.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. The account has no active Site plan yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}":{"get":{"operationId":"getApp","summary":"One app: status, hostnames, machine health, live release, database, last backups, open upgrades, and site_id (for connect_domain and delete_site). Delete an app with POST /v1/sites/{site_id}/delete (owner approval required). A deleted app answers 404 with when it was deleted and until when the owner can undo it. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/App"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/uploads":{"post":{"operationId":"createAppUpload","summary":"Presigned PUT URL (15 minutes) for a source tar.gz or zip. size_bytes is the exact size of the file: the URL is signed for that Content-Length, so the PUT must send exactly that many bytes with the headers from the answer. Not cached. Then POST deployments with the upload_id. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppUpload"}}}},"responses":{"201":{"description":"Upload target","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppUpload"}}}},"400":{"description":"application/problem+json with fix. invalid-body.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"413":{"description":"application/problem+json with fix. app-source-too-large: the exact size_bytes is over max_bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/deployments":{"post":{"operationId":"deployApp","summary":"Deploy a release from a manifest plus inline files, an upload_id, or an image (at most one). Returns 202 with an operation_id; poll GET /v1/operations/{operation_id}. Optional notes say, for example, that the database or runtime stays on the newer major an upgrade moved it to although the manifest names an older one. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployApp"}}}},"responses":{"202":{"description":"The deploy operation was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"400":{"description":"application/problem+json with fix. manifest-invalid or manifest-unsupported: the detail names the path or the catalog entry. app-secret-invalid: a secret the manifest needs is missing.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-operation-in-progress, or app-upload-missing: the upload_id has no uploaded file. site-is-static: the site is not an app.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"application/problem+json with fix. app-source-too-large.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. Build and run failures are reported on the operation as app-build-failed, app-image-pull-failed, app-image-unsupported-arch, app-release-command-failed, app-health-check-failed, app-port-not-listening, or app-database-unavailable.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. The account has no active Site plan yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. app-capacity-unavailable, app-machine-unavailable or app-database-unavailable: try again later; the detail has the fix.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/apps/{app_id}/releases":{"get":{"operationId":"listAppReleases","summary":"Releases of the app, newest first. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Releases","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/rollback":{"post":{"operationId":"rollbackApp","summary":"Roll the app back to an earlier release. Returns an operation. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackApp"}}}},"responses":{"202":{"description":"The rollback operation was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"400":{"description":"application/problem+json with fix. invalid-body: release_id is not a release of this app.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-operation-in-progress: another operation runs on this app; poll it first.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. The account has no active Site plan yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. app-capacity-unavailable, app-machine-unavailable or app-database-unavailable: try again later; the detail has the fix.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/apps/{app_id}/restart":{"post":{"operationId":"restartApp","summary":"Restart the app containers. Returns an operation. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestartApp"}}}},"responses":{"202":{"description":"The restart operation was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-operation-in-progress: another operation runs on this app; poll it first.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. The account has no active Site plan yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. app-capacity-unavailable, app-machine-unavailable or app-database-unavailable: try again later; the detail has the fix.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/apps/{app_id}/advice/dismiss":{"post":{"operationId":"dismissAppAdvice","summary":"Hide the app's advice to move to a smaller size for 14 days. Scope sites:write.","description":"Only downsizing advice can be dismissed (advice.dismissible in GET /v1/apps/{app_id}). Advice about memory or storage the app needs (size_up, storage_up) stays until the app no longer needs it: 409 app-advice-not-dismissible. The advice is computed hourly from the app's usage and daily for every app; it never changes anything by itself.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissAdvice"}}}},"responses":{"200":{"description":"Dismissed until the time given","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissAdviceResult"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. Not an app of this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-advice-not-dismissible: no downsizing advice to dismiss.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/limit":{"get":{"operationId":"getAppCeiling","summary":"The account's app ceiling: the limit in force, the stored value, the default (5 for billed apps, 3 in the free beta), the apps that count, the range the owner may choose, and whether the owner can change it. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The app ceiling","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppCeiling"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"setAppCeiling","summary":"The owner raises or lowers the app ceiling, signed in in the dashboard. No token can: API tokens, Bearer sessions and the assistant get 403.","description":"Only for an account whose apps are billed, from the apps it has (at least 1) to 500, and not while UpSheGoes locked the ceiling. The ceiling protects the owner against an assistant creating apps by mistake; an assistant asks the owner to change it in the dashboard. Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAppCeiling"}}}},"responses":{"200":{"description":"The new app ceiling","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppCeiling"}}}},"400":{"description":"application/problem+json with fix. invalid-body: max_apps is not a whole number from 0 to 500.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. app-ceiling-unavailable (the apps are not billed) or app-ceiling-locked (UpSheGoes set and locked it).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. app-ceiling-out-of-range: below the apps the account has or above 500.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}]}},"/v1/apps/{app_id}/size":{"get":{"operationId":"getAppSizeOptions","summary":"The sizes (small, medium, large) with processors, memory, included storage, what each is good for and the price a month excluding VAT, the current size, the storage, and the sizing advice. Scope sites:read.","description":"billing_started says whether these prices are charged (true in production); price_note says how. A smaller size that the app's usage does not fit carries a note with the numbers; within 7 days of the last size change a smaller size is not allowed (downsize_not_before).","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The size table","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSizeOptions"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"resizeApp","summary":"Change the app's size. 428 first with the summary (the new price and the difference, the expected interruption), then, after the owner approved it in the dashboard, the same request with confirmation_id answers 202 with the operation. Scope sites:write.","description":"The owner approves with their own browser session (POST /v1/confirmations/{id}); no token can. The operation (kind resize) stops the app (its database gets 60 seconds), stops the server, changes its type, starts it and waits until the app is healthy; a server created at a bigger size moves to a new server of the smaller type instead (same volume, address and domains). When the new size includes more storage, the volume grows too. Expect the app offline for about 1 to 2 minutes (a few minutes (usually about 2 to 3) when it moves to a new server). No capacity for the new type: rolled back with app-capacity-unavailable. Not healthy within 15 minutes: moved back, app-size-change-failed. get_operation shows each step in plain words (step_text, phases). A smaller size is refused with app-size-too-small when the app's usage over 14 days does not fit it or it ran out of memory (accept_risk true accepts that), and always within 7 days of the last change. An app that was never deployed takes the size at once.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeApp"}}}},"responses":{"202":{"description":"The size change was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-size-unchanged, app-operation-in-progress (the detail names the open operation; retry when it ended), or confirmation-mismatch.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. app-size-too-small (the detail has the numbers), app-size-change-too-soon (a smaller size within 7 days of the last change; the detail has the time from which it is possible; accept_risk does not lift it) or app-storage-limit (the bigger size's storage with the extra storage would pass 200 GB).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. Confirmation required: send the owner approve_url. price is what is charged now; recurring_price ({ excl_vat_cents, incl_vat_cents, interval }) the regular price after it, or null.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix. app-change-limit: at most 3 size changes per app in 24 hours, failed ones included.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. app-machine-unavailable: the app is suspended or stopped.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/apps/{app_id}/storage":{"post":{"operationId":"addAppStorage","summary":"Add storage to the app in steps of 10 GB, up to 200 GB in total. 428 first with the summary, then 202 with the operation after the owner approved it. Scope sites:write.","description":"Extra storage can't be removed while the app exists; it ends when the app is deleted. The operation (kind grow_storage) grows the volume and the filesystem while the app keeps running; a machine from before online growth moves to a new server once instead (offline for a few minutes (usually about 2 to 3); the approval says so). A filesystem that does not grow within 10 minutes fails with app-storage-grow-failed: the bigger volume stays, nothing is recorded or charged, and UpSheGoes is told.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAppStorage"}}}},"responses":{"202":{"description":"Adding storage was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-operation-in-progress (retry when the open operation ended) or confirmation-mismatch.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. app-storage-limit (not a step of 10 GB, or above 200 GB in total) or app-storage-cannot-shrink.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. Confirmation required: send the owner approve_url. price is what is charged now; recurring_price ({ excl_vat_cents, incl_vat_cents, interval }) the regular price after it, or null.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix. app-change-limit: at most 3 storage adds per app in 24 hours, failed ones included.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/apps/{app_id}/secrets":{"get":{"operationId":"listAppSecrets","summary":"Secret names only (values are write-only), the names the manifest needs that have no value yet (missing), and the names with a value that the manifest does not list, which the app does not get (undeclared). Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Secret names","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSecretList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/secrets/{name}":{"put":{"operationId":"putAppSecret","summary":"Set a secret. It takes effect on the next deploy or restart; the response says so. Only names listed under secrets in the manifest reach the app: for another name the response has declared false and a warning. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutAppSecret"}}}},"responses":{"200":{"description":"The secret was set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSecretChange"}}}},"400":{"description":"application/problem+json with fix. app-secret-invalid: the name or value is not valid (value up to 32768 characters).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"operationId":"deleteAppSecret","summary":"Remove a secret. It takes effect on the next deploy or restart. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The secret was removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSecretChange"}}}},"400":{"description":"application/problem+json with fix. app-secret-invalid: the name is not valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}}}}}},"/v1/apps/{app_id}/logs":{"get":{"operationId":"getAppLogs","summary":"Runtime logs of the running app (stdout, stderr, agent), or with build=1 the build log and release command output of a release. Kept 7 days. Not cached. Scope sites:read. Returns the newest lines (lines, default 200, at most 2000); when older lines exist, truncated is true and next_cursor pages back.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"ISO time or a duration such as 15m, 2h, 1d. Default for runtime logs: the last hour, and at least everything since the release that serves (or the release_id asked for) was created, so its start-up lines stay visible.","schema":{"type":"string","maxLength":40}},{"name":"lines","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":2000,"default":200}},{"name":"release_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"build","in":"query","required":false,"description":"1 for the build log of the release.","schema":{"type":"string","enum":["0","1"]}},{"name":"cursor","in":"query","required":false,"description":"next_cursor of a previous answer: returns the lines just before those, with the same other options. Repeat until next_cursor is null to read a whole build log.","schema":{"type":"string","maxLength":64,"pattern":"^[a-z0-9.-]+$"}}],"responses":{"200":{"description":"Log lines","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppLogs"}}}},"400":{"description":"application/problem+json with fix. invalid-query: a query value is not valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/backups":{"get":{"operationId":"listAppBackups","summary":"Backups of the app and the retention rules. A backup holds the database and the files of the app's volumes (parts, each with its size; the files are read while the app runs). A backup made before files were included lists one database part (contents database_only). storage_bytes is what all stored backups take, against storage_allowance_bytes, the storage included with the app. Also for a deleted app until it is purged (read only): then deletion says where the delete stands (from its operation) and holds the final backup. An expired backup (its objects deleted by the retention or the manual backup cap) stays listed with status expired and cannot be restored or downloaded; the dashboard and the assistant leave such backups out. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Backups","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"createAppBackup","summary":"Start a manual backup of the database and the files. Returns an operation. An app keeps 5 manual backups: when a sixth is complete the oldest goes and the operation result says so in backup_notes. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBackup"}}}},"responses":{"202":{"description":"The backup operation was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-operation-in-progress: another operation runs on this app; poll it first. app-backup-storage-full: the backups would pass the storage included with the app (nightly backups go on).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"application/problem+json with fix. app-backup-too-large.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. The account has no active Site plan yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix. app-backup-failed (reported on the operation).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. app-capacity-unavailable, app-machine-unavailable or app-database-unavailable: try again later; the detail has the fix.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/sites/{site_id}/deleted-app":{"get":{"operationId":"getDeletedApp","summary":"A deleted app by its site, until it is purged: app_id, state (taking_final_backup, removing_server or server_removed, from its delete operation), final_backup with its parts and sizes, and final_backup_failed. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Where the delete stands.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. not-found: the site is not a deleted app.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/backups/{backup_id}/restore":{"post":{"operationId":"restoreAppBackup","summary":"Restore a backup over the live data. Needs confirm_name, the exact app name. parts: all (default) puts back the database and the files the backup holds, database or files only that part. A safety backup of what is replaced is made first. Returns an operation. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreBackup"}}}},"responses":{"202":{"description":"The restore operation was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"400":{"description":"application/problem+json with fix. app-confirm-name-mismatch: confirm_name is not the app name.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The backup, or the part asked for, is not there (for example files from a backup made before files were included).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-operation-in-progress: another operation runs on this app. app-restore-no-space: the server lacks the free disk space for the files next to the current ones. app-agent-outdated: the server still runs an older agent that cannot restore files; restore the database only or try again in a few minutes. Nothing was changed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. The account has no active Site plan yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix. app-restore-failed (reported on the operation).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. app-capacity-unavailable, app-machine-unavailable or app-database-unavailable: try again later; the detail has the fix.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/apps/{app_id}/backups/{backup_id}/download":{"get":{"operationId":"downloadAppBackup","summary":"Presigned GET URL for a backup, for data portability: the database part, or with ?part=files the files part (a tar.zst of the volumes). Not cached. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"part","in":"query","required":false,"description":"database (default; the only part of an older backup) or files.","schema":{"type":"string","enum":["database","files"]}}],"responses":{"200":{"description":"Download URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupDownload"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. The backup is not complete yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/upgrades":{"get":{"operationId":"listAppUpgrades","summary":"Open and past upgrade offers. For customer images they are hints only. Scope sites:read.","security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Upgrades","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/apps/{app_id}/upgrades/{upgrade_id}/apply":{"post":{"operationId":"applyAppUpgrade","summary":"Apply a one-click upgrade. Returns an operation. Scope sites:write.","security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"upgrade_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyUpgrade"}}}},"responses":{"202":{"description":"The upgrade operation was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppOperationAccepted"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. The app does not exist on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. app-operation-in-progress, or app-upgrade-not-available: not a one-click upgrade, or already applied.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. The account has no active Site plan yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix. app-upgrade-failed (reported on the operation; the detail says it was rolled back).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. app-capacity-unavailable, app-machine-unavailable or app-database-unavailable: try again later; the detail has the fix.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/health":{"get":{"operationId":"getHealth","summary":"Liveness of the API process","description":"Does not check D1, Mollie, or Openprovider.","responses":{"200":{"description":"The API process is up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}},"security":[]}},"/v1/me":{"get":{"operationId":"getMe","summary":"The signed-in account, plan, and quota","description":"The account carries an optional locale (nl or en): the language of its mails, approval summaries and pages.","responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]}},"/v1/account/locale":{"put":{"operationId":"setAccountLocale","summary":"Set the account language (nl or en). Sessions only.","description":"Changes the language of the account's mails, approval summaries and server pages. The caller must be signed in with a browser session from an UpSheGoes origin. Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["nl","en"]}},"required":["locale"],"additionalProperties":false}}}},"responses":{"200":{"description":"The locale was saved.","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string"}},"required":["locale"],"additionalProperties":true}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}]}},"/v1/tokens":{"get":{"operationId":"listTokens","summary":"API tokens for this account. Raw secrets are not returned.","responses":{"200":{"description":"Tokens","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/IncludeRevoked"}],"description":"Newest first, 50 a page: send limit (1 to 100) and cursor, read next_cursor."},"post":{"operationId":"createToken","summary":"Create an aih_pat_ token. The raw token is returned once. Sessions only. expires_in_days (1 to 365) makes it stop working after that many days (the dashboard sends 90); without it the token does not expire.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateToken"},"example":{"name":"my laptop","scopes":["sites:read","sites:write"],"expires_in_days":90}}}},"responses":{"201":{"description":"Created token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreated"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/sites":{"get":{"operationId":"listSites","summary":"Sites on this account","responses":{"200":{"description":"Sites","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"description":"Newest first, 50 a page: send limit (1 to 100) and cursor, read next_cursor."},"post":{"operationId":"createSite","summary":"Create a site and a preview hostname","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSite"},"example":{"name":"Harbor Bakery"}}}},"responses":{"201":{"description":"Site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"},"example":{"id":"8c1f6c1e-4a0a-4d7e-9a43-0a3d2f7e1b11","name":"Harbor Bakery","slug":"harbor-bakery","status":"active"}}}},"400":{"description":"application/problem+json with fix. invalid-body: the name slugs to a UUID, or to a reserved label (www, api, app, admin, login, mail, status, support, docs, and others UpSheGoes keeps for itself). Choose a more specific name.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. go-live-required: a free preview account (no plan, PREVIEW_MODE on) already has its one site or used its preview. The body adds reason, needs, prices { month, year }, go_live_url, and preview_limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"description":"application/problem+json with fix. Too many free preview sites from this network today (per IPv4 address or IPv6 /64).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}]}},"/v1/sites/{site_id}":{"get":{"operationId":"getSite","summary":"One site on this account. Another account's site is 404. A free preview site also has preview true, preview_state (not_started, online, offline, traffic_cap), preview_expires_at, and go_live_url. A deleted site (status pending_delete) also has deleted_at and restore_until.","responses":{"200":{"description":"Site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/sites/{site_id}/delete":{"post":{"operationId":"deleteSite","summary":"Delete a site or an app (an app's site_id). Body: confirm_name (the exact name) and, on the retry, confirmation_id. The first call answers 428 confirmation-required with approve_url and deletes nothing: only the owner, signed in to the dashboard in a browser, can approve it (API tokens, OAuth tokens and Bearer sessions cannot). Then retry the same call with confirmation_id. The site goes offline at once (its domains too). An app's server is removed now, after a final backup when it has a live version (kept 30 days); its data is kept 7 days. Until restore_until, POST /v1/sites/{site_id}/restore undoes the delete. The 200 answer has status pending_delete, deleted_at, restore_until, kind, and for an app app_id and operation_id (the teardown to follow with GET /v1/operations/{operation_id}; null when there is no server, or while another operation of the app ends first: the delete then starts right after it). An operation that is running is canceled; it never blocks the delete.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted: status pending_delete, recoverable_days 7, deleted_at, restore_until, kind, and for an app app_id and operation_id.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body: confirm_name is missing.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. not-found: no such site on this account, confirm_name does not match, or the site is already deleted (the fix says until when it can be undone). Checked before an approval is asked for.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. confirmation-mismatch: the approval was for another site or name.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required: send the owner approve_url, then retry with confirmation_id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm_name":{"type":"string","minLength":1,"maxLength":80},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}}}}}},"/v1/sites/{site_id}/restore":{"post":{"operationId":"restoreSite","summary":"Undo a delete within 7 days (until restore_until). No approval needed. A static site is published again. An app gets a new server on its kept data: follow operation_id (a replace) with GET /v1/operations/{operation_id}; its address and domains serve again once it is running. The answer has id, status, kind, and for an app app_id and operation_id.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Restored: id, status, kind, and for an app app_id and operation_id.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. not-found: no such site, the site is not deleted, or the 7 days are over (the detail says which).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":true}}}}}},"/v1/auth/magic-link":{"post":{"operationId":"sendMagicLink","summary":"Email a sign-in link. An account is created only when the link is used.","description":"The optional locale (nl or en) sets the language of the mail and, for a new account, the account language. Without it the language follows Accept-Language, default nl. The answer is the same for a known and an unknown address. One address gets at most 3 links an hour and 10 a day (429 with Retry-After). Asked from an UpSheGoes page in a browser, the answer sets the __Host-signin-bind cookie: a session signed in with the link in that same browser may approve paid actions; one signed in elsewhere gets 403 approval-needs-this-browser on them.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLink"},"example":{"email":"you@example.com","locale":"en"}}}},"responses":{"200":{"description":"The link was sent.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":true},"example":{"ok":true}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[]}},"/v1/auth/magic":{"get":{"operationId":"showMagicLink","summary":"Sign-in page for a magic link. GET never consumes the link; it shows a button that posts to the same path.","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}},{"name":"next","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"HTML sign-in form","content":{"text/html":{"schema":{"type":"string"}}}},"400":{"description":"HTML page: the link is invalid, expired, or used"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[]},"post":{"operationId":"consumeMagicLink","summary":"Consume the magic link once and set the session cookie. Browser form post from the sign-in page (no Idempotency-Key). Origin must be UpSheGoes.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"token":{"type":"string"},"next":{"type":"string"}},"required":["token"]}}}},"responses":{"200":{"description":"Signed in (HTML)","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"303":{"description":"Signed in, redirect to next"},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[]}},"/v1/auth/logout":{"post":{"operationId":"logout","summary":"Revoke the current session and clear the cookie. Sessions only; a cookie session must come from an UpSheGoes origin.","responses":{"200":{"description":"Signed out","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/v1/tokens/{token_id}":{"delete":{"operationId":"revokeToken","summary":"Revoke an API token on this account. Sessions only.","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Revoked","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"revoked":{"type":"boolean"}},"required":["id","revoked"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/connections":{"get":{"operationId":"listConnections","summary":"Connected assistants (one per OAuth grant): client name, scopes, created, last_used_at (the last token refresh, not every call). Owner only: the cookie session in the dashboard (tokens and Bearer sessions get 403).","responses":{"200":{"description":"Connections","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/connections/{family_id}":{"delete":{"operationId":"revokeConnection","summary":"Disconnect an assistant: every access and refresh token of the connection stops working at once. Owner only: the cookie session in the dashboard (tokens and Bearer sessions get 403).","parameters":[{"name":"family_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Disconnected","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"revoked":{"type":"boolean"}},"required":["id","revoked"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/sessions":{"get":{"operationId":"listSessions","summary":"Signed-in browsers and devices: created, last_seen_at (at most hourly), user_agent, expires_at, current. Owner only: the cookie session in the dashboard (tokens and Bearer sessions get 403).","responses":{"200":{"description":"Sessions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/sessions/{session_id}":{"delete":{"operationId":"revokeSession","summary":"Sign one browser or device out. Owner only: the cookie session in the dashboard (tokens and Bearer sessions get 403).","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Signed out","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"revoked":{"type":"boolean"}},"required":["id","revoked"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/sessions/revoke-others":{"post":{"operationId":"revokeOtherSessions","summary":"Sign out everywhere except this browser. Answers revoked (how many). Owner only: the cookie session in the dashboard (tokens and Bearer sessions get 403).","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Signed out elsewhere","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"integer"}},"required":["revoked"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/v1/account/email-change":{"post":{"operationId":"requestEmailChange","summary":"Change the sign-in address. A confirm link (24 hours) goes to the new address and a notice to the old one; the change applies when the link is confirmed, and signs out every other session. Owner only: the cookie session in the dashboard (tokens and Bearer sessions get 403).","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChange"}}}},"responses":{"202":{"description":"Pending: new_email, expires_at.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body: not an address, or the current one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. email-taken: another account uses that address.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. mail-undeliverable: earlier mail to the new address bounced.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/account/email-change/confirm":{"post":{"operationId":"confirmEmailChange","summary":"The new address confirms the change with the token from the mail (form or JSON). GET with ?token shows a page with the button.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeToken"}}}},"responses":{"200":{"description":"Changed","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"404":{"description":"application/problem+json with fix. email-change-invalid: unknown, expired, used, or stopped.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. email-taken","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[]}},"/v1/account/email-change/cancel":{"post":{"operationId":"cancelEmailChange","summary":"The old address stops an operator's change within its 7 days, with the token from the mail. GET with ?token shows a page with the button.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeToken"}}}},"responses":{"200":{"description":"Stopped","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"404":{"description":"application/problem+json with fix. email-change-invalid: unknown, expired, used, or stopped.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[]}},"/v1/account/erase":{"post":{"operationId":"eraseAccount","summary":"Delete the account: every site with its files and versions, the sign-in details and the connected assistants. Invoices and payments are kept 7 years (bookkeeping law), consents 2 years. confirm_email must be the account's address. 409 account-erase-refused with refusals [{kind, items}] while domains, domain moves, a running plan or open amount, a mandate, apps or final app backups remain; then 428 until approved; then retry with confirmation_id. Owner only: the cookie session in the dashboard (tokens and Bearer sessions get 403).","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountErase"}}}},"responses":{"200":{"description":"Erased; the session cookie is cleared.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. account-erase-email-mismatch","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. account-erase-refused (refusals) or confirmation-mismatch","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/account/export":{"get":{"operationId":"exportAccount","summary":"Everything the account holds, as one JSON download: account, registrants, invoices (number, date, amounts), sites with every version and an archive link per version, domains with their DNS records, apps with backup download links. Needs account:read.","responses":{"200":{"description":"The export (attachment).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/sites/{site_id}/deployments/{deployment_id}":{"delete":{"operationId":"deleteVersion","summary":"Delete an old version that is ready and not live: its version address stops working and its files are deleted; the live site does not change. Ask the owner first. Needs sites:write.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean"}},"required":["id","deleted"],"additionalProperties":true}}}},"400":{"description":"application/problem+json with fix. invalid-body: the version is not ready.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. not-found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. version-is-live: make another version live first.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}]}},"/v1/confirmations/{confirmation_id}":{"get":{"operationId":"getConfirmation","summary":"A 428 confirmation on this account: kind, summary, parameters, price, recurring_price ({ excl_vat_cents, incl_vat_cents, interval } of what it costs after the amount charged now, or null), status, expiry, handled_at (when a used approval was handled, else null). Another account's is 404.","parameters":[{"name":"confirmation_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Confirmation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]},"post":{"operationId":"approveConfirmation","summary":"Approve a confirmation. Only the owner's browser session (cookie plus UpSheGoes Origin) can approve; tokens get 403. Body { consents? }: an order that makes a contract (register_domain and transfer_domain: terms, domain_waiver; app_create: terms, start_now) needs the consents the owner ticked and invoice details, else 409 consent-required or invoice-details-required.","parameters":[{"name":"confirmation_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Approved","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. Missing, expired, used, or on another account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. consent-required (the owner ticks the boxes in the dashboard; an assistant cannot) or invoice-details-required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"consents":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":40}}},"additionalProperties":true}}}}}},"/v1/domains/{domain}/dns/restore":{"post":{"operationId":"restoreDns","summary":"Put the records back as they were before a change an assistant made. Body { change_id }: the id in the mail the owner got after the change (and in the dashboard). Only the owner in the dashboard can do this (a browser session); a token answers 403 owner-only. The records are replaced by the set stored with that change, which counts as a DNS write: 200 { records, version, applied } as for PUT.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The previous records are back: { records, version, applied }.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. not-found: no such change for this domain on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. dns-zone-unavailable: the zone could not be changed now; nothing was saved.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"change_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["change_id"],"additionalProperties":false}}}}}},"/v1/domains/{domain}/dns":{"get":{"operationId":"getDns","summary":"The records of a zone UpSheGoes hosts (a registered domain, or a domain being moved here, whose copied records can be corrected before the nameserver switch), and version: an opaque string that changes whenever the records change (also sent as the ETag header). For a registered domain whose website UpSheGoes serves also protected_records: the platform's apex and www records, which cannot be changed. Bring-your-own domains answer 409 byo-dns.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{ records, version, protected_records?, note? }. Each record is { type, name, value, priority? }; name is relative to the domain (@ is the domain itself).","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}},"required":["type","name"],"additionalProperties":true}},"version":{"type":"string","description":"Send it back as version on the next PUT."}},"required":["records"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}]},"put":{"operationId":"putDns","summary":"Body { records, version?, confirmation_id? }. Replaces the customer's whole record set (there is no per-record call: read, change the set, send it back). With version from GET (or If-Match with the ETag), a set that changed in between answers 412 dns-changed with current_version and nothing is saved; without it a call by a token that would delete records answers 428 dns-version-required and changes nothing (read the records first and send their version; a first write to an empty zone needs none). Records are type A, AAAA, CNAME, TXT, MX, SPF, SRV, or CAA; name relative to the domain, @ for the domain itself; priority 0 to 65535 for MX and SRV; SRV value weight port target with a name such as _sip._tls; CAA value flags tag \"value\" with tag issue, issuewild, or iodef. A, AAAA, or CNAME at @ or www is refused with 422 protected-record where the platform serves the website (not for a website hosted elsewhere). Records that are not valid DNS answer 422 dns-record-invalid with errors: [{ index, field (name, value, priority), code, message }]: an IPv4 for A, an IPv6 for AAAA, a host name (not an address) for CNAME and MX, no CNAME at @, a CNAME alone on its name, TXT up to 2048 characters with matching quotes and each quoted part up to 255 (only \\\" and \\\\ are escapes; a BIND-style \\; is saved as ;, any other backslash is refused with code txt-escape unless the record is kept exactly as stored), one SPF policy per name, no duplicates. A change to MX or SPF (or a TXT with v=spf1) answers 428 until the owner approves; mail records are compared by content, so another order or spelling is no change. Registered domains are written to the Cloudflare zone at once; a daily pass repairs drift from the state stored here. 200 { records, version, applied }; applied false (with a note) means the set is saved but the zone could not be updated just now.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"{ records, version, applied, note? }","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","TXT","MX","SPF","SRV","CAA"]},"name":{"type":"string","minLength":1,"maxLength":253},"value":{"type":"string","minLength":1,"maxLength":2048},"priority":{"type":"integer","minimum":0,"maximum":65535}},"required":["type","name","value"]}},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"description":"From GET dns: the write is refused with 412 when it changed.","type":"string","minLength":1,"maxLength":64}},"required":["records"],"additionalProperties":false}}}}}},"/v1/domains/{domain}":{"get":{"operationId":"getDomain","summary":"DNS, hostname, and SSL of a domain on this account, with records and a fix while something is pending. action_required is true only when the owner has to do something (add the DNS records of a bring-your-own domain, or pay an open domain amount); it is false while setup runs or waits on the registry or Cloudflare, and for a failed order. A new domain whose order waits for its payment adds payment { payment_id, status (open: pay at checkout_url; ended: it can no longer be paid, nothing was bought, and POST /v1/billing/payments/{payment_id}/restart closes the order; processing: paid at the bank and being processed, action_required false), amount { currency, excl_vat_cents, incl_vat_cents }, checkout_url, expires_at }, with action_required true; nothing is bought before it is paid. A domain registered through UpSheGoes adds registration: state, steps (purchase, registry, zone, nameservers, records, route, activation, live; each done, current, pending, or failed), blocker in plain words (what setup is waiting for), expires_on, renewal_date, autorenew, autorenew_note, transferred_out, lapsed (expired with renewal off and gone at the registry), registrant_verification (the registrar's holder check, or null), registrar_locked (the transfer lock, null when not known), and certificate_expires_on (the day the certificate expires, when known). web_mode is platform (UpSheGoes serves the website) or external (the website is hosted elsewhere: a domain moved here without its website, kept for good, and a domain while it is being moved). A domain being moved here (or moved in the last 14 days) adds transfer: the TransferView of GET /v1/domains/transfers/{transfer_id}; while it is open its fix and action_required speak for the domain. Another account's domain is 404.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"DomainStatus","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}]},"delete":{"operationId":"deleteDomain","summary":"Remove a domain from this account's site. Needs sites:write or account:write. Another account's domain is 404.","description":"Deletes the custom hostname at the provider (already gone counts as deleted), removes the www hostname route, and clears the site's production hostname. A bring-your-own claim is released, so the domain can be connected again. A domain registered through UpSheGoes is only unlinked from its site (its www and apex routes are removed, the zone and Workers routes stay, so the edge shows its neutral not-published page): the registration is not cancelled, stays on the account, keeps renewing, and can be linked again with POST /v1/sites/{site_id}/domains. With cancel_registration=true on a registered domain the request is refused with 409 and nothing changes.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}},{"name":"cancel_registration","in":"query","required":false,"description":"Set by a caller that expects the registration to end. Registrations are never cancelled through the API, so a registered domain answers 409.","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Removed (BYO) or unlinked (registered)."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}]}},"/v1/sites/{site_id}/domains":{"post":{"operationId":"connectDomain","summary":"Link a domain to a site: a bring-your-own domain, or one registered through UpSheGoes.","description":"Body: { domain, move_website? } (a leading www. is dropped). Bring your own: claims the domain and answers 201 with canonical_host, cname_target, apex_redirect, records (the www CNAME and the ownership TXT; Cloudflare's TXT records follow in GET /v1/domains/{domain} after POST /v1/domains/{domain}/verify), mail, and apex. A domain already on this account is moved to this site. A domain moved here with its website hosted elsewhere (web_mode external) answers 409 website-hosted-elsewhere unless the body carries move_website true, which moves the website to this site (the platform records replace the copied apex and www records; MX, TXT and every other record stay). A domain registered through UpSheGoes needs no DNS records: it answers 200 with its DomainStatus; once live, www serves the site and the apex answers 301 to www (after the site's first deploy if it has none yet). At most 5 unverified bring-your-own claims per account. Owning a domain needs no plan; serving something on it needs that thing's plan: a static site needs the Site plan (402 go-live-required with reason domain and go_live_url carrying the domain for an account without it, a free preview included; 402 payment-required when the plan ended), an app needs the app plan (until app billing exists: apps access, else 403 apps-not-enabled). A domain claimed earlier on an account that now runs a free preview is never served during the preview: its status carries waits_for_plan true, and it goes live by itself when the plan starts.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"DomainStatus (registered domain linked)","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"201":{"description":"DNS instructions (bring your own)","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. go-live-required (a static site without the Site plan, a free preview included: reason domain, prices, go_live_url), payment-required (the Site plan ended).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. site_id is not a site on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. domain-taken (another account holds the domain), transfer-ownership-proof (another account has an unproven transfer of the domain: publish txt_record { name, value } at the current DNS host and connect again; that transfer is closed), or pending-domain-limit (5 unverified claims).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253},"move_website":{"description":"A registered domain whose website is hosted elsewhere: true confirms the website moves to this site.","type":"boolean"}},"required":["domain"],"additionalProperties":false}}}}}},"/v1/uploads":{"post":{"operationId":"createUpload","summary":"Reserve an upload slot for one zip. Returns upload_url (PUT the zip there, at most max_bytes: 100 MiB on the Site plan, 25 MB on a free preview) and max_bytes. Needs the paid plan, or a free preview account while PREVIEW_MODE is on. The PUT needs both Authorization: Bearer and an Idempotency-Key header: the upload_url carries a token, but it does not replace them.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"id, upload_url, max_bytes, expires_at.","content":{"application/json":{"schema":{"type":"object","properties":{"upload_url":{"type":"string","description":"PUT the zip here with the same Authorization header."},"max_bytes":{"type":"integer"},"expires_at":{"type":"string","format":"date-time"}},"required":["upload_url","max_bytes"],"additionalProperties":true,"description":"An upload slot. The upload id is in upload_url; deploy it with POST /v1/sites/{site_id}/deployments and upload_id."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. plan-required: the account has no active plan (and free previews are off). Pay the first iDEAL payment (POST /v1/billing/ideal). payment-required: the account is offline for an open payment or its plan ended; pay with POST /v1/billing/ideal.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. upload-limit: the account already holds 3 open uploads (not deployed, not expired). Deploy one, or wait until one expires 24 hours after it was created. A deploy that fails or is refused releases its upload.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"/v1/uploads/{upload_id}/content":{"put":{"operationId":"putUploadContent","summary":"The zip body of an upload. Deploy it with POST /v1/sites/{site_id}/deployments and upload_id. Send Authorization: Bearer and an Idempotency-Key header with the PUT, as with every write: a plain PUT to the upload_url alone is refused.","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Stored","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"bytes":{"type":"integer"}},"required":["ok","bytes"],"additionalProperties":true}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"413":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}}}},"/v1/domain-checks":{"post":{"operationId":"checkDomains","summary":"Availability per name. Any extension can be checked; only some are registered here.","description":"Each result has name, extension, available, premium, registration_offered, source, and sometimes note and price. price ({ currency, excl_vat_cents, incl_vat_cents, per: year }) is the live price of an available name UpSheGoes registers. registration_offered is false for an extension UpSheGoes does not register and for a registry premium name. A premium name reports available false, premium true, and a note that premium domains are not offered.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"{ results: DomainCheckResult[] }","content":{"application/json":{"schema":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/DomainCheckResult"}}}}}}},"400":{"description":"application/problem+json with fix. invalid-body","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. registrar-unavailable: the registrar could not be reached or is not configured. Retry later.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":63},"extension":{"type":"string","minLength":2,"maxLength":24}},"required":["name","extension"]}}},"required":["domains"],"additionalProperties":false},"example":{"domains":[{"name":"harborbakery","extension":"nl"}]}}}}}},"/v1/domains/registrations":{"post":{"operationId":"registerDomain","summary":"Order a domain for 1 year. The assistant's limit starts at 0 (D4): every order answers 428 with the price and approve_url unless the owner raised the limit. The owner approves and pays by iDEAL in the browser (D6); the registrar is called only once it is paid. The retry with confirmation_id answers 202 with the order once paid, or 409 payment-pending with checkout_url while unpaid. An agent token within a limit the owner raised orders at once on the mandate (201).","description":"Body: name, extension, optional site_id (served on www.<domain> once live, the apex answers 301 to www; without it the domain is provisioned all the same and ends live but not linked, showing the edge's neutral not-published page until POST /v1/sites/{site_id}/domains links it), optional confirmation_id. Availability is checked at the quote, at the approval, and right before the purchase. Approving the 428 (POST /v1/confirmations/{id}, the owner's browser) places the order (status awaiting_payment, its id is the confirmation id) and answers checkout_url; nothing goes to the registrar before the payment is paid, a payment that fails or expires leaves no domain and no debt, and a registration that fails after payment is refunded in full. The domain renews every year at the price of that day by direct debit, with a notice mail 30 days before every renewal debit; the owner switches renewal off per domain with POST /v1/domains/{domain}/renewal. No mail is included with a domain. The price comes from the registrar's live price (domain-pricing.ts): .nl and .be 12.00 a year excluding VAT, .eu and .com cost plus 6.00. The first year is charged on the SEPA mandate; as soon as the debit is submitted the domain is bought and provisioned in the background (registrar, Cloudflare zone, nameservers, records, Workers route). GET /v1/domains/{domain} shows each step. The owner gets one confirmation mail per accepted order (price, who placed it, next steps, the remaining agent limit); a mail failure never fails the order. Only orders placed with an agent token (API token or OAuth) count toward the limit; owner-approved orders and renewals do not (renewals do when the owner turned count_renewals on). Answers 503 registration-unavailable while DOMAIN_REGISTRATION is off. A domain needs no plan, only working billing: the account can be charged (a SEPA mandate or invoice billing), owes nothing, and is open. With site_id the site or app's plan is needed (402 go-live-required with prices and go_live_url, 402 payment-required, or 403 apps-not-enabled), refused before anything is bought.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"The domain status (as GET /v1/domains/{domain}) plus order: id, kind, placed_by (agent or owner), counts_toward_limit, status, price.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"202":{"description":"A retry with an approval whose order is paid and under way: the domain status plus order.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. With site_id only (the site's plan): go-live-required (a static site without the Site plan, a free preview included) or payment-required (the Site plan ended).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. site_id is not a site on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. payment-pending (the approved order waits for its payment; carries checkout_url and order), registrant-email-unverified (a .com while the holder's own address is not confirmed), domain-taken, domain-on-account, registrant-required (PUT /v1/registrant first), confirmation-mismatch, mandate-required (billing is not set up: a SEPA mandate from the first iDEAL payment, or invoice billing; carries billing_url), open-amount (a debit bounced or the account is in grace or offline: settle the open amount with POST /v1/billing/ideal first), invoice-credit (an account on invoice billing with an overdue invoice, or open domain invoices plus this order above its credit limit; carries invoices with pay_url), or payment-refused (Mollie refused the debit; nothing was bought). confirmation-mismatch also answers an approval whose price is below the live price; it carries a new confirmation_id and approve_url.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. extension-not-offered (.nl, .be, .eu, and .com only), premium-not-offered, or registrant-not-eligible (.eu needs an EU or EEA registrant).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required: summary, price, approve_url, confirmation_id. Above the agent limit also spending_limit { month, limit, counted, remaining } and a detail naming what is left this month.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. registration-unavailable (switched off here; connect a domain the owner has with POST /v1/sites/{site_id}/domains) or registrar-unavailable (retry later).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":63},"extension":{"type":"string","minLength":2,"maxLength":24},"site_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","extension"],"additionalProperties":false}}}}}},"/v1/domains":{"get":{"operationId":"listDomains","summary":"The account's domains (registered and bring-your-own), each as GET /v1/domains/{domain} answers it. Needs sites:read.","responses":{"200":{"description":"{ domains: DomainStatus[] }","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"description":"Newest first, 50 a page: send limit (1 to 100) and cursor, read next_cursor."}},"/v1/registrant":{"get":{"operationId":"getRegistrant","summary":"The registrant: the legal owner of every domain registered for this account. Needs account:read.","responses":{"200":{"description":"{ profile | null, handle_created, name_locked, notice }. profile: first_name, prefix?, last_name, company?, street, number, suffix?, zipcode, city, country (ISO alpha-2), phone { country_code, area_code, subscriber_number }, email.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]},"put":{"operationId":"setRegistrant","summary":"Save the registrant (the domain holder). The owner's browser session saves directly; a token (the assistant) gets 428 with approve_url (kind set_registrant, parameters the profile) and saves with the retry carrying confirmation_id, for exactly the approved profile (CRT-01).","description":"Name and company cannot change once a domain is registered (the registrar cannot change them on an existing handle); before that a change creates a new handle. Address, phone, and email can always change. A holder address other than the account's gets a confirmation link mail (GET /v1/registrant/verify); a changed address needs it again. Body: the profile, plus confirmation_id for the approved retry.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The registrant view, as GET answers it.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. registrant-name-locked: a domain is registered in this name. confirmation-mismatch: the retry's profile differs from the approved one.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. registrant-invalid (errors per field) or registrant-refused (the registrar refused the details).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required (a token): the owner confirms the holder at approve_url.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. registrar-unavailable. Retry later.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","minLength":1,"maxLength":100},"prefix":{"type":"string","minLength":1,"maxLength":30},"last_name":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":200},"street":{"type":"string","minLength":1,"maxLength":200},"number":{"type":"string","minLength":1,"maxLength":20},"suffix":{"type":"string","minLength":1,"maxLength":20},"zipcode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":100},"country":{"type":"string","minLength":1,"maxLength":2},"state":{"type":"string","minLength":1,"maxLength":60},"phone":{"type":"object","properties":{"country_code":{"type":"string","minLength":1,"maxLength":5},"area_code":{"type":"string","minLength":1,"maxLength":6},"subscriber_number":{"type":"string","minLength":1,"maxLength":15}},"required":["country_code","area_code","subscriber_number"]},"email":{"type":"string","minLength":1,"maxLength":254},"admin_contact":{"description":"LEG-41: the admin-c of .nl domains, upshegoes or self. Only the owner's browser session sets it (a consent); a token's value is ignored.","type":"string","enum":["upshegoes","self"]},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["first_name","last_name","street","number","zipcode","city","country","phone","email"],"additionalProperties":false}}}}}},"/v1/billing/spending-limit":{"put":{"operationId":"setSpendingLimit","summary":"The owner's agent spending limit: new one-time orders (domains) an agent may place per Europe/Amsterdam calendar month without a 428. Only the owner's cookie session in the dashboard; agent tokens and bearer sessions get 403.","description":"Body: limit_incl_vat_cents (0 to 100000; 0 means the assistant always asks; default 0 until the owner chooses, D4), count_renewals (default false: renewals and the hosting plan do not count), consents (a limit above 0 needs [\"spend_limit\"]: the owner ticked that every order within the limit is an order with an obligation to pay; else 409 consent-required). Answers the agent_spending view that GET /v1/billing also returns. Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"agent_spending.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"limit_incl_vat_cents":{"type":"integer","minimum":0,"maximum":9007199254740991},"count_renewals":{"type":"boolean"},"consents":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":40}}},"additionalProperties":false}}}}}},"/v1/domains/{domain}/renewal":{"post":{"operationId":"setDomainRenewal","summary":"The renewal switch of a domain registered through UpSheGoes (D5). Only the owner's cookie session in the dashboard. Body { autorenew: on | off }.","description":"off: the domain expires on its date and nothing more is charged; a noticed renewal that was not collected yet is canceled; mails 30 and 7 days before the expiry date and on the day. on: the coming renewal is noticed and collected as usual (until renewal.switch_on_until). Answers the domain status with renewal { switch, renews_on, price, debit_on, switch_on_until, lapsed_at } and changed. Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The domain status, plus changed.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No registered domain with that name on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. renewal-switch-unavailable: not live, a payment for it is open, its renewal is already being collected, or the last day to renew it this time has passed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autorenew":{"type":"string","enum":["on","off"]}},"required":["autorenew"],"additionalProperties":false}}}}}},"/v1/registrant/verify":{"get":{"operationId":"verifyRegistrantEmail","summary":"The link in the holder confirmation mail (CRT-01). Public; the signed link is the proof. Redirects to the dashboard's domains page with holder_email verified or expired.","responses":{"303":{"description":"Redirect to the dashboard."}},"security":[]}},"/v1/domains/{domain}/auth-code":{"post":{"operationId":"getAuthCode","summary":"Transfer out: the auth (EPP) code of a domain registered through UpSheGoes. Only the owner's cookie session in the dashboard. Shown once, never stored by the API.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"{ domain, auth_code }","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No registered domain with that name on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. auth-code-unavailable: not at the registrar yet, or already transferred out.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"/v1/domains/transfers":{"get":{"operationId":"listDomainTransfers","summary":"This account's moves to UpSheGoes, newest first, also canceled, closed and completed ones (a canceled or closed move may no longer have a domain in GET /v1/domains). Answers { transfers: TransferView[], next_cursor }. Query: limit (1 to 100, default 20), cursor (next_cursor of the page before). Needs sites:read.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"{ transfers: TransferView[], next_cursor }","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"startDomainTransfer","summary":"Move a domain the owner holds at another provider to UpSheGoes. Needs sites:write. Answers the transfer (TransferView) in state review (201), or the open transfer of this account for the domain (200).","description":"Body { domain, site_id? }. A body that carries a transfer code (auth_code, epp, transfer_code or the like) is refused with 400 on this and every other transfer route but submit: the owner enters the code only in the dashboard, at the approval step. Prechecks on the registry's RDAP facts refuse only what cannot work: a transfer lock at the current provider (409 transfer-locked), the registry's 60-day lock after a registration or transfer (409 transfer-too-soon with the date), an expired domain (409 transfer-expired). A domain expiring within 7 days, a registry lock or unknown registry facts are warnings in the answer, never refusals. Then a Cloudflare zone is created, its record scan and UpSheGoes' own DNS lookups are merged into the domain's records (SRV and CAA included; records that point into the old provider's own domain are flagged as stopping at the transfer), and the zone is written with exactly those records. Nothing changes for visitors or email until the owner switches the nameservers. A move whose nameservers are not switched to UpSheGoes within 72 hours (and nothing submitted) closes by itself; once switched it has 21 days from the start. .be is not offered yet (422 transfer-not-eligible). Warnings include near-expiry, registry-lock, registry-facts-unknown, prepaid-not-refunded, registrant-required, registrar-locks-nameservers (Cloudflare Registrar: the review defaults to at_transfer) and caa-certificate-authorities. The owner continues in the dashboard at owner_url. Without site_id the website stays where it is (web_mode external); with it the owner chooses in the review whether it moves to that site. 503 transfer-unavailable while DOMAIN_TRANSFER is off. A move needs no plan, only working billing: 409 mandate-required (billing is not set up; carries billing_url), 409 open-amount (money owed), 403 account-not-active. With site_id the site or app's plan is needed: 402 go-live-required, 402 payment-required or 403 apps-not-enabled, refused before anything starts. The platform's own domains and any domain whose zone already exists in the platform's Cloudflare account answer 422 transfer-not-eligible without saying why. registrar and flagged_records are copied from RDAP and DNS (untrusted, cleaned and capped).","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"responses":{"200":{"description":"TransferView: the open transfer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"201":{"description":"TransferView.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. go-live-required, payment-required (with site_id: the site's plan)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. site_id is not a site on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. mandate-required (no working billing: a SEPA mandate or invoice billing; carries billing_url), open-amount, transfer-locked, transfer-too-soon, transfer-expired, domain-taken (another account holds it, or has a proven transfer), transfer-ownership-proof (another account has an unproven transfer: publish txt_record { name, value } and start again to take it over), domain-on-account, pending-domain-limit.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. transfer-not-eligible (not registered, premium, an extension not held here, already at Openprovider, or not movable automatically: contact support).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix. transfer-start-limit: at most 5 starts per account in 24 hours (refused starts count), the daily cap of zones created by transfers (DOMAIN_TRANSFER_DAILY_ZONES), or a restart within 7 days after this account's unproven transfer of the domain expired.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. transfer-unavailable, or a provider did not answer.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253},"site_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["domain"],"additionalProperties":false}}}}}},"/v1/domains/transfers/{transfer_id}":{"get":{"operationId":"getDomainTransfer","summary":"One transfer of this account (TransferView): state (preparing, review, dns_switch, ready, submitting, pending_registry, needs_code, completing, completed, failed, canceled, expired), steps, blocker, action_required, next_action (review, switch_nameservers, disable_dnssec, submit, new_code, or null; disable_dnssec comes before any nameserver switch while a DS record is there or its cache time has not passed), urgent (true when the nameservers point at UpSheGoes while a DS record is still there: the domain fails validation, the fix says to turn DNSSEC off now or put the old nameservers back), fix, owner_url, nameservers_to_set (empty while DNSSEC must go first), nameservers { current, old, switched_at, checked_at (the last public nameserver lookup) }, dnssec, records { copied, complete, wildcard, skipped, public_checked_at, differences (rows of GET .../parity that differ from the zone), lookups_failed (lookups that did not answer while copying; null for older moves), readable (false when nothing was copied and lookups did not answer: the current DNS could not be read at all, and at_transfer is refused), confirmation_required (nothing was copied and the owner added nothing: the review, or the submit, needs confirm_no_records true), empty_confirmed }, delegation { status (not_moved; kept: dns_strategy keep, the nameservers stay where they were; not_answering: kept, but those nameservers do not answer for the domain (checked daily); nameservers_pending: moved, but the registry does not delegate to the UpSheGoes nameservers yet, so the domain may not resolve; after the move UpSheGoes sets them and checks every minute, then less often, mailing the owner and the operator after 10 minutes; delegated: the registry delegates to them; live: and Cloudflare serves the zone), registrar_nameservers, registry_nameservers (RDAP, else the public NS answer), checked_at }; completed means the registrar holds the domain, active, for this account, wherever the nameservers point (the delegation is its own status), flagged_records, registrar, guide { id, name, specific } (the guide for the steps at the current provider: docs://transfer/{id}; specific false for the generic one), expires_on (the expiry seen at the start), warnings, price, renewal { note, currency, excl_vat_cents, incl_vat_cents, renews_on, charge_from } (what the owner pays next and when, also for TLDs that add a year: renews_on is the current expiry for .nl, a year later for a TLD that adds one, the registry's renewal date once completed; charge_from is the day its direct debit runs from), order, failure { type, problem, message } (failed and needs_code: bad_code, locked, too_soon, near_expiry, refused, not_eligible, unknown, taken, vanished; canceled by someone other than the owner: taken_over, account_erased), dates. expires_at is when an unfinished move closes: 72 hours after the start until the nameservers are switched (or, with at_transfer, until the code is submitted), then 21 days from the start; a refused code (needs_code) opens 21 new days. GET /v1/domains/{domain} and GET /v1/domains carry the same block as transfer. Needs sites:read.","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"TransferView","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/domains/transfers/{transfer_id}/parity":{"get":{"operationId":"getDomainTransferParity","summary":"The copied records next to what the public DNS answered for the fixed discovery names (the apex, www, mail and the other usual hosts, _dmarc, the usual DKIM selectors, the usual SRV names, and the wildcard probe), at discovery or the last refresh. Answers { transfer_id, domain, checked_at, complete, refresh_after_seconds, rows: [{ name, type, public (null when the name or type is outside the list), zone, status }] } with status same, different, missing_here (the public DNS answers it, the copy lacks it), added_here (only in the copy) or not_checked (outside the list: found by Cloudflare's scan or added by hand). Needs sites:read. 404 before the records are copied.","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The parity table.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"refreshDomainTransferParity","summary":"Reads the public answers again (the same bounded name list) and answers the parity table. At most once a minute per move (a quicker repeat answers the last result) and 30 lookups per account a day (429 rate-limited with Retry-After; GET still answers the last table). Only before the code is submitted (409 transfer-state after). Public answers are kept as data: control characters removed, values capped. Needs sites:write.","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The parity table.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"/v1/domains/transfers/{transfer_id}/review":{"post":{"operationId":"reviewDomainTransfer","summary":"The owner confirms the copied records. Only from the owner's browser session (cookie and an UpSheGoes Origin); tokens are refused (403). The response is never replayed from the idempotency store.","description":"Body { move_website?, dns_strategy?, accept_risk?, confirm_no_records?, confirm_unreachable? }. confirm_unreachable true is required for keep when the current nameservers do not answer for the domain or nothing could be read (transfer-keep-unreachable): the domain stays unreachable until its DNS is set up. confirm_no_records true is required when nothing was copied (records.confirmation_required): the owner states that the domain has no DNS records that must keep working; at_transfer is refused (transfer-dns-unreadable) when nothing could be read (records.readable false). move_website is required when the transfer names a site: true moves the website to that site when the transfer completes (the platform's records replace the copied apex and www records, which changes what visitors see), false keeps it where it is. dns_strategy dns_first (default: the owner sets the UpSheGoes nameservers at the current provider first), at_transfer (the nameservers change with the transfer itself; only for a domain without DNSSEC, and only with accept_risk true), or keep (only the registration moves: the nameservers stay where they are, the request keeps them (import_nameservers_from_registry for .nl, else the current ones), the copy's zone is removed at completion, and the domain ends registered with web_mode external and no zone; GET and PUT /v1/domains/{domain}/dns then answer 409 dns-managed-elsewhere; move_website true is refused, and keep is refused while the domain already points at the UpSheGoes nameservers). Answers the transfer, now in dns_switch (or ready for at_transfer). Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"TransferView","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body: move_website missing for a transfer with a site, or at_transfer without accept_risk.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No such transfer on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. transfer-state, transfer-dnssec-active for at_transfer, transfer-no-records (nothing copied, confirm_no_records missing), transfer-dns-unreadable (at_transfer while nothing could be read).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. transfer-unavailable, or the DNS could not be checked.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"move_website":{"type":"boolean"},"dns_strategy":{"type":"string","enum":["dns_first","at_transfer","keep"]},"accept_risk":{"type":"boolean"},"confirm_no_records":{"type":"boolean"},"confirm_unreachable":{"type":"boolean"}},"additionalProperties":false}}}}}},"/v1/domains/transfers/{transfer_id}/check":{"post":{"operationId":"checkDomainTransfer","summary":"Runs the next step now (copy the records, see the nameserver switch, the DNSSEC gate, the registry status) instead of waiting for the next automatic check. Safe any time. Needs sites:write.","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"responses":{"200":{"description":"TransferView","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"/v1/domains/transfers/{transfer_id}/submit":{"post":{"operationId":"submitDomainTransfer","summary":"The transfer code and the price approval. Only from the owner's browser session (cookie and an UpSheGoes Origin); tokens are refused (403). The code is never echoed, logged or replayed.","description":"Body { auth_code?, confirmation_id?, confirm_no_records?, mail_statement? }. WP-30 (D6): a priced move on direct debit is paid by iDEAL when the owner submits the approved code (202 with checkout_url and payment.status awaiting_payment); the code goes to the registry only once it is paid, a move that fails afterwards is refunded in full, and a payment that fails or expires wipes the code and owes nothing. A free move and an invoice account keep the order charged at completion. mail_statement true (DOM-11, D15) is required when the domain has email at its current host (409 mail-statement-required with old_host). confirm_no_records is the review's statement for a move reviewed before the review asked it (transfer-no-records otherwise). Without an approved confirmation_id: 428 confirmation-required with the price (charged only when the transfer succeeds; zero for .nl, which adds no year) and, for a TLD that adds no year, when its renewal is charged. Approve with POST /v1/confirmations/{confirmation_id}, then send auth_code with confirmation_id: the order is reserved, the code stored encrypted and sent to the registrar, and wiped once sent. A price above the approved one answers 409 confirmation-mismatch with a new approval; never more than the approved amount is charged. After needs_code (the registry refused the code, or the domain was locked) only auth_code is sent again; the approval stands. A new code is a new request: send it with a new Idempotency-Key (the key of the first submit replays its first answer). Checked right before: the domain uses the UpSheGoes nameservers (dns_first), DNSSEC is off and its cache time has passed, the registrant exists, a mandate exists and nothing is owed. Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"TransferView: submitting, pending_registry, needs_code, failed, or completed (.nl completes at once; delegation.status says whether the registry points at the UpSheGoes nameservers yet).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"202":{"description":"TransferView (still ready) plus checkout_url and payment { status: awaiting_payment }: the owner pays now.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body: auth_code missing with a confirmation.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No such transfer on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. mail-statement-required (with old_host), transfer-state, transfer-nameservers-not-switched (with nameservers), transfer-dnssec-active, transfer-no-records, transfer-dns-unreadable, registrant-required, mandate-required, open-amount, invoice-credit, confirmation-mismatch (also a price above the approval, with a new confirmation_id).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix. transfer-not-eligible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required: summary, price, approve_url, confirmation_id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"application/problem+json with fix. transfer-unavailable, or the DNS could not be checked (retry).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"confirm_no_records":{"type":"boolean"},"mail_statement":{"type":"boolean"}},"additionalProperties":false}}}}}},"/v1/domains/transfers/{transfer_id}/cancel":{"post":{"operationId":"cancelDomainTransfer","summary":"Cancels a transfer before its code went to the registry (also from needs_code), for free. Its zone is removed after 7 days unless the domain points at it. After the submit 409 transfer-in-flight. Needs sites:write.","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"responses":{"200":{"description":"TransferView in state canceled.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"/v1/webhook-endpoints/{webhook_id}":{"delete":{"operationId":"deleteWebhookEndpoint","summary":"Delete a webhook endpoint on this account. Needs account:write.","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean"}},"required":["id","deleted"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}]}},"/oauth/authorize/decision":{"post":{"operationId":"authorizeDecision","summary":"Answer the consent page. Needs the cookie session and the CSRF token printed on the page. Redirects to the client with a code or access_denied.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"request_id":{"type":"string"},"csrf_token":{"type":"string"},"decision":{"type":"string","enum":["approve","deny"]}},"required":["request_id","csrf_token","decision"]}}}},"responses":{"303":{"description":"Redirect to the client's redirect_uri"},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/oauth/register":{"post":{"operationId":"registerOAuthClient","summary":"Dynamic client registration (RFC 7591). A client that will use the device grant must list urn:ietf:params:oauth:grant-type:device_code in grant_types here, or POST /oauth/device answers unauthorized_client. Limited per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["redirect_uris"],"properties":{"client_name":{"type":"string"},"redirect_uris":{"type":"array","items":{"type":"string","format":"uri"}},"grant_types":{"type":"array","items":{"type":"string","enum":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code"]}},"response_types":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"type":"string","enum":["none"]}},"additionalProperties":true}}}},"responses":{"201":{"description":"The client: client_id and what was registered.","content":{"application/json":{"schema":{"type":"object","required":["client_id"],"properties":{"client_id":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[]}},"/oauth/token":{"post":{"operationId":"oauthToken","summary":"The token endpoint (RFC 6749). grant_type is authorization_code (with redirect_uri and code_verifier, PKCE S256), refresh_token, or the full name urn:ietf:params:oauth:grant-type:device_code (with device_code); the word device_code alone is not a grant type. resource (RFC 8707) names the server the token is for. A failed code_verifier ends the authorization code: start the flow again. A refresh token that is unknown, used twice or revoked answers 400 invalid_grant (RFC 6749 section 5.2), not 401. Errors are { error, error_description } as RFC 6749 says.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["grant_type","client_id"],"properties":{"grant_type":{"type":"string","enum":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code"]},"client_id":{"type":"string"},"code":{"type":"string"},"redirect_uri":{"type":"string"},"code_verifier":{"type":"string"},"refresh_token":{"type":"string"},"device_code":{"type":"string"},"resource":{"type":"string"}}}}}},"responses":{"200":{"description":"The tokens.","content":{"application/json":{"schema":{"type":"object","required":["access_token","token_type","expires_in"],"properties":{"access_token":{"type":"string"},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer"},"refresh_token":{"type":"string"},"scope":{"type":"string"}}}}}},"400":{"description":"invalid_request, invalid_grant, unsupported_grant_type (the text names the three values), unauthorized_client, invalid_target, authorization_pending, slow_down or expired_token.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"error_description":{"type":"string"}}}}}},"401":{"description":"invalid_client: the client_id is unknown."}},"security":[]}},"/oauth/device":{"post":{"operationId":"startDeviceAuthorization","summary":"Start a device sign-in (RFC 8628). The client must be registered with the device grant (POST /oauth/register). Answers device_code, user_code, verification_uri, verification_uri_complete, expires_in and interval; poll POST /oauth/token with the full grant name urn:ietf:params:oauth:grant-type:device_code. Limited per IP.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["client_id"],"properties":{"client_id":{"type":"string"},"scope":{"type":"string"},"resource":{"type":"string"}}}}}},"responses":{"200":{"description":"The device authorization.","content":{"application/json":{"schema":{"type":"object","required":["device_code","user_code","verification_uri"],"properties":{"device_code":{"type":"string"},"user_code":{"type":"string"},"verification_uri":{"type":"string"},"verification_uri_complete":{"type":"string"},"expires_in":{"type":"integer"},"interval":{"type":"integer"}}}}}},"400":{"description":"unauthorized_client (the client was not registered with the device grant; the text names the value), invalid_scope or invalid_target."},"429":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[]}},"/.well-known/oauth-authorization-server":{"get":{"operationId":"oauthServerMetadata","summary":"OAuth 2.1 server metadata (RFC 8414): endpoints, scopes, grant types. Open to any origin (CORS *, no credentials).","responses":{"200":{"description":"The metadata document.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"security":[]}},"/.well-known/oauth-protected-resource":{"get":{"operationId":"oauthProtectedResource","summary":"Protected resource metadata (RFC 9728): which authorization server this API trusts. Open to any origin (CORS *, no credentials).","responses":{"200":{"description":"The metadata document.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"security":[]}},"/oauth/authorize":{"get":{"operationId":"authorize","summary":"OAuth 2.1 authorization endpoint (code + PKCE S256). Shows the consent page.","description":"An https client_id is fetched as a client id metadata document with redirect manual: a redirect, or a client_id on the UpSheGoes platform or preview domains, is refused with 400. These fetches are limited per IP; over the limit the answer is 429 with Retry-After.","responses":{"200":{"description":"Consent page (HTML)","content":{"text/html":{"schema":{"type":"string"}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[]}},"/oauth/device/approve":{"post":{"operationId":"approveDevice","summary":"Approve a device sign-in (RFC 8628). In a browser the owner types the code their own device shows as confirm_code; it must match user_code.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"user_code":{"type":"string"},"confirm_code":{"type":"string","description":"Required with a cookie session. A link with user_code filled in is not enough."}},"required":["user_code"]}}}},"responses":{"200":{"description":"Approved","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body: confirm_code is missing or does not match user_code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"application/problem+json with fix. Not signed in.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"application/problem+json with fix. Unknown or expired device code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/oauth/revoke":{"post":{"operationId":"revokeOAuthToken","summary":"RFC 7009. Revokes the token family of an access or refresh token of the calling client. Always 200 for a known client.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"client_id":{"type":"string"},"token":{"type":"string"}},"required":["client_id","token"]}}}},"responses":{"200":{"description":"Revoked or unknown","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"OAuth error: token is required"},"401":{"description":"OAuth error: invalid_client"}},"security":[]}},"/v1/usage":{"get":{"operationId":"getUsage","summary":"Storage and bandwidth against the Site quota, with the next step. Bandwidth overage does not unpublish the site.","parameters":[{"name":"period","in":"query","required":false,"description":"UTC month, YYYY-MM. Defaults to the current month.","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}}],"responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]}},"/v1/sites/{site_id}/usage":{"get":{"operationId":"getSiteUsage","summary":"Usage for one site on this account.","responses":{"200":{"description":"Site usage","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/sites/{site_id}/abuse":{"get":{"operationId":"getAbuseStatus","summary":"Moderation status and statement of reasons.","responses":{"200":{"description":"Abuse status","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/sites/{site_id}/appeals":{"post":{"operationId":"submitAppeal","summary":"Appeal a suspension. A person reviews it.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Appeal pending","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":5000}},"required":["text"],"additionalProperties":false}}}}}},"/v1/webhook-endpoints":{"get":{"operationId":"listWebhookEndpoints","summary":"Webhook endpoints on this account.","responses":{"200":{"description":"Endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"webhook_endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"}},"required":["id"],"additionalProperties":true}}},"required":["webhook_endpoints"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]},"post":{"operationId":"createWebhookEndpoint","summary":"Register an https webhook URL for this account. At most 10 endpoints, one per URL. The signing secret is returned once.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Endpoint with its signing secret","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"secret":{"type":"string","description":"The signing secret. Shown once."}},"required":["id","url"],"additionalProperties":true}}}},"400":{"description":"application/problem+json with fix. invalid-body: not an https URL, or a URL on the UpSheGoes platform or preview domain or one of their subdomains.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. webhook-limit (10 endpoints already; delete one first) or webhook-duplicate (this URL is already registered; keep it or delete it to get a new secret).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":8,"maxLength":2000}},"required":["url"],"additionalProperties":false}}}}}},"/v1/audit-events":{"get":{"operationId":"listAuditEvents","summary":"Audit log for this account.","responses":{"200":{"description":"Events","content":{"application/json":{"schema":{"type":"object","properties":{"audit_events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"actor_type":{"type":"string"},"actor_id":{"type":["string","null"]},"action":{"type":"string"},"resource_type":{"type":["string","null"]},"resource_id":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","action","created_at"],"additionalProperties":true}},"next_cursor":{"type":["string","null"],"description":"Pass it as ?cursor= for the next page; null on the last page."}},"required":["audit_events","next_cursor"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"description":"Newest first, 50 a page: send limit (1 to 100) and cursor, read next_cursor."}},"/v1/sites/{site_id}/deployments":{"get":{"operationId":"listDeployments","summary":"Deployments of the site, newest first, 50 a page (limit, cursor, next_cursor); live_deployment_id names the live version whatever the page, so read it instead of assuming the live version is on the first page. A deploy still in flight is listed with status queued or running, its operation_id, and progress.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"Deployments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}],"description":"Newest first, 50 a page: send limit (1 to 100) and cursor, read next_cursor."},"post":{"operationId":"createDeployment","summary":"Deploy inline files, an upload_id, or promote a deployment. Fewer than 50 files finish in the request; larger deploys are queued.","description":"Send exactly one of files, upload_id, promote_deployment_id, or base_deployment_id with changes. base_deployment_id (the live, ready deployment of this site) plus changes (1 to 100 of { op: put, path, content, encoding? } or { op: delete, path }) makes a new version equal to that one with the changes: the base is never modified and stays available for rollback. If base_deployment_id is no longer the live version when the new one would go live (another deploy, edit, or rollback came first), nothing is published and the answer is 409 live-changed; send allow_stale_base: true to publish over the newer version on purpose. Every path of every deploy (files, a zip, or changes) must be relative with forward slashes (backslashes and leading slashes in files and zips are rewritten), without empty, . or .. segments or control characters, and at most 987 bytes in UTF-8 (so the storage key stays within 1024 bytes); change paths must be exactly as listed by GET .../files and not under __upshegoes/. A delete must name a file of the base; a file an older deploy stored under a path these rules now refuse can still be deleted by its exact listed path. Put content is at most 10 MiB in total. The new version is scanned as a whole, exactly as if it were deployed in one go (every file, unchanged ones included, and every URL looked up again), and counts its full size toward the storage quota.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"description":"The operation. status is queued or running for a queued deploy; poll GET /v1/operations/{operation_id}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operation"}}}},"400":{"description":"application/problem+json with fix. invalid-body: bad files or a bad zip. A deploy of an upload that fails here, on quota, or on a suspended site releases that upload; create a new one for the corrected zip. An upload that has no zip yet keeps its slot.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. plan-required, or payment-required (offline for an open payment or the plan ended: pay with POST /v1/billing/ideal), or go-live-required for a free preview (reason preview_expired, preview_used, or preview_limit; quota-exceeded keeps its own type and status 409 but carries the same go_live_url and prices). A free preview deploys without a plan within 25 MB, and its first ready deploy starts the 14 days.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No such site or deployment on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. site-suspended, quota-exceeded (storage, file count, or file size), live-changed (base_deployment_id is no longer the live version; load the live version and make the change again, or send allow_stale_base: true), or version-unavailable (base_deployment_id is held or blocked).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix. A free preview site is limited to 30 deploys per hour.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["sites:write"]},{"oauth2":["sites:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"description":"Inline files. Send exactly one of the four ways below.","minItems":1,"maxItems":20000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"content":{"type":"string"},"encoding":{"type":"string","enum":["utf-8","base64"]}},"required":["path","content"]}},"upload_id":{"description":"A zip sent with POST /v1/uploads.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"promote_deployment_id":{"description":"Make an earlier version live again.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"base_deployment_id":{"description":"A new version from this deployment plus `changes`.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"changes":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"put"},"path":{"type":"string","minLength":1},"content":{"type":"string"},"encoding":{"type":"string","enum":["utf-8","base64"]}},"required":["op","path","content"]},{"type":"object","properties":{"op":{"type":"string","const":"delete"},"path":{"type":"string","minLength":1}},"required":["op","path"]}]}},"allow_stale_base":{"type":"boolean"}},"additionalProperties":false},"example":{"files":[{"path":"index.html","content":"<!doctype html><title>Harbor Bakery</title><h1>Hello</h1>"}]}}}}}},"/v1/sites/{site_id}/deployments/{deployment_id}/files":{"get":{"operationId":"listDeploymentFiles","summary":"Files of one deployment of the site, sorted by path, one page at a time (sites:read).","description":"Returns { deployment_id, status, promoted, preview_hostname, total_files, total_bytes, files: [{ path, size, content_type }], next_cursor }. Pass next_cursor as cursor for the next page; it is null on the last page. No content hash is stored.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Files per page, 1 to 1000 (default 1000).","schema":{"type":"integer","minimum":1,"maximum":1000}}],"responses":{"200":{"description":"One page of files.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. version-unavailable: the version is held or blocked by the safety check, so its files are not handed out.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}]}},"/v1/sites/{site_id}/deployments/{deployment_id}/file":{"get":{"operationId":"downloadDeploymentFile","summary":"One file of a deployment as an attachment (sites:read). Always Content-Disposition: attachment, nosniff, and a sandbox CSP.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"description":"The path exactly as GET .../files lists it.","schema":{"type":"string"}}],"responses":{"200":{"description":"The file bytes with their content type.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. version-unavailable: the version is held or blocked by the safety check.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}]}},"/v1/sites/{site_id}/deployments/{deployment_id}/archive":{"get":{"operationId":"downloadDeploymentArchive","summary":"The whole deployment as a streamed zip (sites:read). At most 900 files and 512 MiB; 30 per account per 10 minutes.","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"application/zip, as an attachment.","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No such site or deployment on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. version-unavailable: the version is held or blocked by the safety check.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"application/problem+json with fix. archive-too-large: more than 900 files or 512 MiB. Download the files one by one instead.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix. rate-limited: wait for Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}]}},"/v1/operations/{operation_id}":{"get":{"operationId":"getOperation","summary":"Status and progress of a deploy, promote, or rollback. Accurate for queued and in-request deploys. Also returns app operations (deploy, rollback, restart, backup, restore, upgrade, delete) with type app, kind, step, and error.","parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The operation with progress (files written of total), or an app operation (type app).","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Operation"},{"$ref":"#/components/schemas/AppOperation"}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["sites:read"]},{"oauth2":["sites:read"]},{"sessionCookie":[]}]}},"/v1/billing":{"get":{"operationId":"getBilling","summary":"Billing of the account: preview { mode on|off, state (none for a paid account; available, online, traffic_cap, offline, used, blocked; none also while PREVIEW_MODE is off for an account that never ran a preview), site_id, hostname, started_at, expires_at, days_left, files_kept_until, traffic_capped, limits, prices, go_live_url }, plan, state (none, active, cancel_scheduled, grace, offline, canceled), interval (month or year), pending_interval { interval, effective_on } (a switch the owner scheduled), payment_method (direct_debit or invoice), invoice_term_days, paid_through (first day not covered), next_charge_date and next_charge { date, interval, amount, covers_from, covers_until }, open_amount, open_invoices (invoice accounts: id, number, amounts, unpaid_incl_vat_cents, due_date, overdue), grace_started_at, grace_deadline (the day the sites go offline unless paid), cancel_at, open_payment { payment_id, started_at, amount_incl_vat_cents, checkout_url, expires_at } (an open first or restore payment, else null; POST /v1/billing/payments/{payment_id}/restart ends it), files_kept_until (while the sites are offline for good or for non-payment: the day their files are deleted, else null), switching_until (the last day the sites and apps stay online to move elsewhere, else null), erasure_on (with a switching period: the day the account is erased after the retrieval period, else null), mandate { valid, method (directdebit or creditcard), card_last4, account_last4 (the last 4 digits of the bank account of a SEPA mandate, when known) }, vat { treatment (nl, reverse_charge, eu_consumer_nl_vat, eu_vies_unavailable, outside_eu), wanted_treatment, rate_bps, country, vat_number, checked_on, setup_missing } (WP-24: amounts are in this treatment; a reverse charge or outside EU account has incl_vat_cents equal to excl_vat_cents), payment_methods (WP-24: the checkout methods offered now: ideal, bancontact, creditcard), payment_due, price (of the current interval), prices { month, year }, and agent_spending: { month, limit, count_renewals, counted, remaining, orders, summary }, the owner's agent spending limit and the orders that counted this month. The plan is debited by SEPA on the 1st of each month; a bounced domain debit becomes an open amount too.","responses":{"200":{"description":"The billing view.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]}},"/v1/billing/cancel":{"post":{"operationId":"cancelPlan","summary":"Cancel the Site plan. 428 until the owner approves in the dashboard (agent tokens cannot approve), then retry with confirmation_id. Takes effect at the end of the paid period (at once while a payment is open): no further debit, the sites go offline then, and the SEPA mandate is revoked. The files of the sites are kept 30 days after the sites went offline, then deleted (a mail 7 days before). Body switching: true (Data Act), sent with the quote and again with confirmation_id (the approval is bound to it): the owner switches to another provider, so the sites and apps stay online 30 more days after the end at no charge (switching_until in the answer; an app cannot be resized up, get more storage or be created then); the day after, each app gets its final backup and its server and volume are removed, the backup kept 30 days from then; after that the account is erased by the daily retention run (erasure_on in GET /v1/billing; a mail 7 days before; not while a domain, money in flight, a purge hold or an open checkout remains). In the first year of a yearly plan whose paid year ends more than two months later, the plan ends two months after the notice and the rest of the year is not refunded (the early termination fee; paid_through is set to the end day). switching true is refused with 409 switching-needs-new-cancel while a cancel without it is scheduled (undo it, then cancel again with switching), and with 409 open-amount while an amount is open.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The billing view (state cancel_scheduled with cancel_at, or canceled).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. plan-not-active (nothing to cancel) or confirmation-mismatch.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix. provider-error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"switching":{"type":"boolean"}},"additionalProperties":false}}}}}},"/v1/billing/cancel/undo":{"post":{"operationId":"undoCancelPlan","summary":"Undo a scheduled cancel before its end date. 428 until the owner approves, then retry with confirmation_id.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The billing view (state active).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. no-cancel-scheduled (nothing to undo, or it already took effect) or confirmation-mismatch.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"switching":{"type":"boolean"}},"additionalProperties":false}}}}}},"/v1/billing/interval":{"post":{"operationId":"changeBillingInterval","summary":"Switch the Site plan between monthly (€7.00 excl. VAT a month) and yearly (€70.00 excl. VAT a year, paid upfront). Monthly to yearly takes effect at the next billing date; yearly to monthly when the paid year ends. Sending the current interval while a switch is pending undoes it. Owner only: a cookie session in the dashboard (agent tokens and bearer sessions get 403), 428 until approved, then retry with confirmation_id. No proration, no refunds.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["interval"],"properties":{"interval":{"type":"string","enum":["month","year"]},"confirmation_id":{"type":"string","format":"uuid"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The billing view.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. interval-not-changeable (no running plan, an open amount, a scheduled cancel, or the billing date is today) or confirmation-mismatch.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/invoices/{invoice_id}/pay":{"post":{"operationId":"payInvoice","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["ideal","bancontact","creditcard"],"description":"WP-24 (GAP-11): the method the owner chose on the pay step. Must be one of GET /v1/billing payment_methods (iDEAL in the Netherlands; Bancontact and card in Belgium; card elsewhere; only those enabled on the Mollie profile). Absent: the checkout offers every method of the customer's country. Bancontact and iDEAL create a SEPA mandate, a card a card mandate: later charges go on it."}},"additionalProperties":true}}}},"summary":"Pay now: a one-off payment (no mandate; iDEAL, or WP-24 the method of the customer's country) of what is still open on one invoice of an invoice account. Owner only, in the dashboard. Open checkout_url in the browser; the invoice is marked paid when Mollie reports the payment paid.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"payment_id, invoice_id, checkout_url, amount { currency, incl_vat_cents }.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No such invoice with a due date on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix. payment-method-unavailable (WP-24), invoice-not-open (paid or credited), payment-open (a Pay now payment of this invoice is open: finish its checkout_url), or invoice-payment-in-progress (an earlier payment is not final at the bank yet).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only."}},"/v1/billing/ideal":{"post":{"operationId":"startIdealPayment","summary":"Start an iDEAL payment: the first payment of the Site plan (body interval month or year, default month), or the open amount while a payment is open (grace or offline), a restart after the plan ended (interval month or year), or the next interval when the mandate is missing or revoked. Each creates a fresh SEPA mandate; a paid restore brings the sites back at once. Open checkout_url in the browser. Accounts on invoice billing answer 409 invoice-billing.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","enum":["month","year"]},"method":{"type":"string","enum":["ideal","bancontact","creditcard"],"description":"WP-24 (GAP-11): the method the owner chose on the pay step. Must be one of GET /v1/billing payment_methods (iDEAL in the Netherlands; Bancontact and card in Belgium; card elsewhere; only those enabled on the Mollie profile). Absent: the checkout offers every method of the customer's country. Bancontact and iDEAL create a SEPA mandate, a card a card mandate: later charges go on it."},"consents":{"type":"array","items":{"type":"string","enum":["terms","start_now"]},"description":"WP-20: the consents the owner ticked in the dashboard. Only the signed-in owner's browser session can send them; a token request with consents answers 403 consent-browser-only. A payment that makes a contract (the first payment, a restart, an app's first payment, the billing setup) needs terms and start_now, and invoice details (PUT /v1/billing/details)."}},"additionalProperties":true}}}},"responses":{"201":{"description":"payment_id, checkout_url (Mollie checkout, or the local mock), description, amount { currency, excl_vat_cents, incl_vat_cents }.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. consent-required (the owner accepts the terms in the dashboard; an assistant cannot do this), invoice-details-required (the owner fills in the invoice details in the dashboard), vat-setup-missing (WP-24: the customer's VAT treatment cannot be invoiced yet; nothing was charged; the owner mails hello@upshegoes.com), payment-method-unavailable (WP-24: no method is offered for the customer's country, or the method sent is not offered), invoice-billing (the account pays by invoice: pay its open invoices), plan-already-active (an account in good standing with a valid mandate, or a cancel scheduled; nothing to pay), mandate-exists (a SEPA mandate exists; change the plan with POST /v1/billing/plan-changes), debit-in-progress (this month's direct debit has no outcome yet; paying the next month now would pay it twice: retry once it is paid or failed), or payment-open (a first payment is open and not expired; the problem carries payment_id, checkout_url, and expires_at so the customer finishes that payment instead of paying twice; while another request is still creating that payment the problem has no checkout_url and a Retry-After header: retry with a new Idempotency-Key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix. provider-error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. provider-unavailable. Retry after Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}]}},"/v1/billing/details":{"get":{"operationId":"getInvoiceDetails","summary":"The invoice details of the account (D10): name, company_name, vat_number, street, postcode, city, country (ISO 3166-1 alpha-2). details is null until they are given. Needs account:read.","responses":{"200":{"description":"{ details: { name, company_name, vat_number, street, postcode, city, country, updated_at, vat_check: { result: valid | invalid | unavailable, checked_at, consultation_number } | null } | null }. WP-24: vat_check is the last VIES check of an EU VAT number of another member state.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]},"put":{"operationId":"putInvoiceDetails","summary":"Save the invoice details (the owner's browser session only). name, street (street and number), postcode, city and country are required; company_name and vat_number are optional (the VAT number is stored upper case without spaces). For country NL the postcode is 1234 AB; other countries 2 to 12 letters, digits, spaces or hyphens. Every country is accepted. Updates the Moneybird contact. Required before the first order that makes a contract (409 invoice-details-required). WP-24 (D11): an EU VAT number must start with the code of the invoice country (EL for Greece), else 422 vat-number-invalid; a number of another EU member state is checked at VIES at once (and again before a debit when the check is a day old or found VIES down): valid gives reverse charge, invalid or not checked gives Dutch VAT. The first details with a country other than NL switch the account language to English once.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"{ details } as saved.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix. invalid-body (a required field is missing, or the postcode does not fit the country).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"422":{"description":"application/problem+json with fix. vat-number-invalid (WP-24): the VAT number does not start with the code of the invoice country.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"company_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"vat_number":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"street":{"type":"string","minLength":1,"maxLength":200},"postcode":{"type":"string","minLength":2,"maxLength":12},"city":{"type":"string","minLength":1,"maxLength":100},"country":{"type":"string","minLength":2,"maxLength":2}},"required":["name","street","postcode","city"],"additionalProperties":false}}}}}},"/v1/billing/withdrawals":{"get":{"operationId":"listWithdrawals","summary":"The contracts the owner can withdraw from now (LEG-07): the Site plan, each billed app and each paid domain order not yet submitted to the registrar (an order still waiting for its payment is not listed: it is simply left unpaid), with started_on, last_day (inclusive: 14 days, or 12 months and 14 days for a contract made without the start-now consent) and the refund a withdrawal today gives (null when the operator works it out); and the withdrawals made. Needs account:read.","responses":{"200":{"description":"{ contracts: [{ contract_kind, contract_ref, title, started_on, last_day, refund_incl_vat_cents }], withdrawals: [{ id, contract_kind, contract_ref, submitted_at, status }] }","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]},"post":{"operationId":"withdraw","summary":"Withdraw from a contract (the owner's browser session only). Body contract_kind (site_plan, app, domain), contract_ref, name, email. The Site plan ends today and is refunded: paid amount minus the days used. An app or a domain order is recorded and the operator refunds it within 14 days. The receipt mail goes out at once.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"{ id, contract_kind, contract_ref, submitted_at, status (refunded or operator), refund_incl_vat_cents? }","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. withdrawal-not-possible (unknown, already withdrawn, or the period is over).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_kind":{"type":"string","enum":["site_plan","app","domain"]},"contract_ref":{"type":"string","minLength":1,"maxLength":100},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["contract_kind","contract_ref","name","email"],"additionalProperties":false}}}}}},"/v1/billing/payments/{payment_id}":{"get":{"operationId":"getPayment","summary":"One iDEAL payment of this account (the payment_id of POST /v1/billing/ideal or POST /v1/invoices/{invoice_id}/pay), to check it after the bank's redirect. Read only. status: open (no outcome yet), pending (paid at the bank; the account is still being updated, also while a failed step waits for Mollie's retry; never open again), paid (final: everything it pays for is done, its invoice sent), refunding (final: it arrived but bought nothing, for example a second payment of the plan, an invoice that was already paid, or an amount that did not match the open invoice, and it is refunded; the optional refund field says automatic, the refund was created at Mollie, or manual, the operator refunds it by hand, which can take a few business days; absent when not known), failed, canceled, or expired (final; nothing was taken). Treat any other value as not final yet, and ignore fields you do not know. Another account's payment is 404, like an unknown id. Needs account:read. Sent with cache-control: private, no-store.","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"payment_id, status, purpose (first, restore, invoice, ...), invoice_id for a Pay now payment, and refund (automatic or manual) with status refunding when known.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]}},"/v1/billing/mandate":{"post":{"operationId":"changePaymentMethod","summary":"Change the payment method (bank account or card) with a EUR 0.01 first payment; the owner's browser session only (a token answers 403 owner-only). Body { method? } (ideal, bancontact or creditcard; default the account's own). Only while the plan runs on direct debit: an account on invoice billing, or one whose plan does not run, answers 409. 201: the billing view plus mandate_change { payment_id, checkout_url, ... }: the owner pays the cent at checkout_url, and once it is paid the new mandate replaces the old one.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"The billing view with mandate_change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["ideal","bancontact","creditcard"]}},"additionalProperties":false}}}}}},"/v1/billing/payments/{payment_id}/restart":{"post":{"operationId":"restartPayment","summary":"End an open first or restore payment of this account (the open_payment of GET /v1/billing), so a new one can start (\"Opnieuw beginnen\" in the dashboard). Also the payment of a domain order that waits for it (payment.payment_id of GET /v1/domains/{domain}): the payment is ended at the bank when it can be, the order is canceled and the name let go (nothing was bought), so it can be ordered again; a payment found paid settles instead (outcome settled, with detail; otherwise outcome restarted); 409 while the bank still holds it. Needs account:write. Another account's payment, or one that is not open, is 404. 200: the billing view.","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The billing view.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/v1/mail/preview-reminders/off":{"get":{"operationId":"previewRemindersOffPage","summary":"The link in a free preview reminder mail (LEG-56): query account and token. Answers an HTML page in the account's language with one button that switches the reminders off (it POSTs this path); an unknown or wrong link is a 404 page. No session needed: the link is the proof. Mails about the account and payments keep coming.","responses":{"200":{"description":"HTML confirm page.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"404":{"description":"HTML page: the link is not valid."}},"security":[]},"post":{"operationId":"previewRemindersOff","summary":"The button of that page: a form post with account and token. Switches the free preview reminders off and answers an HTML page; an unknown or wrong link is a 404 page. No session and no Idempotency-Key needed.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"account":{"type":"string"},"token":{"type":"string"}},"required":["account","token"]}}}},"responses":{"200":{"description":"HTML page: reminders are off.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"404":{"description":"HTML page: the link is not valid."}},"security":[]}},"/v1/billing/plan-changes":{"post":{"operationId":"changePlan","summary":"Change to the Site plan. 428 until the owner approves. With Mollie billing the approved retry draws a SEPA payment and answers 202 payment_pending; the plan follows when the payment is paid.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Mock billing: { plan: site }.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"202":{"description":"Mollie billing: { plan, status: payment_pending, payment_id }.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"application/problem+json with fix. go-live-required with reason first_payment: the account has no direct debit mandate yet, so the plan's first order is the owner's own first payment in the dashboard. No approval is created; the body carries go_live_url and prices.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"application/problem+json with fix. plan-already-active (never charged twice), mandate-required (pay POST /v1/billing/ideal first), or confirmation-mismatch.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"428":{"description":"application/problem+json with fix. confirmation-required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix. provider-error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. provider-unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["account:write"]},{"oauth2":["account:write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}}}}}},"/v1/billing/mollie/webhook":{"post":{"operationId":"mollieWebhook","summary":"Mollie payment webhook. Public, no session, no Idempotency-Key, limited per IP. The status is fetched from Mollie, never read from the body. Processing is idempotent.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","pattern":"^tr_[A-Za-z0-9]{4,64}$"}}}}}},"responses":{"200":{"description":"Processed, already processed, or an unknown payment (logged). On paid: the plan or domain is granted, the Moneybird invoice is created and sent, and the payment is registered on it once with the Mollie id as transaction identifier.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"502":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[]}},"/v1/invoices":{"get":{"operationId":"listInvoices","summary":"Moneybird-style invoices for this account, 21% VAT.","responses":{"200":{"description":"Invoices","content":{"application/json":{"schema":{"type":"object","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":true}},"next_cursor":{"type":["string","null"],"description":"Pass it as ?cursor= for the next page; null on the last page."}},"required":["invoices","next_cursor"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"description":"Newest first, 50 a page: send limit (1 to 100) and cursor, read next_cursor."}},"/v1/invoices/{invoice_id}":{"get":{"operationId":"getInvoice","summary":"One invoice on this account. Another account's invoice is 404.","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Invoice","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]}},"/v1/invoices/{invoice_id}/pdf":{"get":{"operationId":"getInvoicePdf","summary":"The invoice PDF, streamed with a filename. Another account's invoice is 404. Needs account:read.","description":"With Moneybird billing the PDF is fetched from Moneybird on each request (its own download link lives about 30 seconds and is never mailed or stored). The invoice mail links to the dashboard (<DASHBOARD_ORIGIN>/?invoice=<id>), which downloads it here. Mock billing renders a small local PDF.","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The PDF. Content-Disposition: attachment; filename=\"upshegoes-invoice-<number>.pdf\".","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"application/problem+json with fix. No such invoice on this account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"description":"application/problem+json with fix. provider-error (Moneybird)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"application/problem+json with fix. provider-unavailable (Moneybird). Retry later.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]}},"/v1/reports":{"get":{"operationId":"listReports","summary":"Reports about this account's sites, with urls, decision and decided_at; never the reporter's details. Another account's reports are omitted.","responses":{"200":{"description":"Reports","content":{"application/json":{"schema":{"type":"object","properties":{"reports":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":true}},"next_cursor":{"type":["string","null"],"description":"Pass it as ?cursor= for the next page; null on the last page."}},"required":["reports","next_cursor"],"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"description":"Newest first, 50 a page: send limit (1 to 100) and cursor, read next_cursor."},"post":{"operationId":"createReport","summary":"Public DSA report intake. No session required. Body: category (phishing, malware, spam, csam, terrorist, life_threat, other), hostname, urls, details, reporter_name?, reporter_email?, good_faith. Returns the report id and a secret receipt code, shown once. With reporter_email the reporter also gets a confirmation mail with the report id, category, and time, never the receipt code. Limited to 20 per IP per hour.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Report received: id and receipt.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"receipt":{"type":"string","description":"Keep it: it is the only way to look the report up again."}},"required":["id"],"additionalProperties":true}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string","minLength":1,"maxLength":253},"urls":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","maxLength":2000,"format":"uri"}},"category":{"type":"string","enum":["phishing","malware","spam","csam","terrorist","life_threat","other"]},"details":{"type":"string","minLength":1,"maxLength":5000},"reporter_name":{"type":"string","maxLength":200},"reporter_email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"good_faith":{"type":"boolean"},"locale":{"type":"string","enum":["nl","en"]}},"required":["hostname","category","details"],"additionalProperties":false}}}}}},"/v1/reports/{report_id}/status":{"post":{"operationId":"reportStatus","summary":"The status of a report for its reporter: body { receipt }. Answers state, decision and decided_at.","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The report's status.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"400":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"application/problem+json with fix","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receipt":{"type":"string","minLength":1,"maxLength":200}},"required":["receipt"],"additionalProperties":false}}}}}},"/v1/apps/access-request":{"post":{"operationId":"requestAppsAccess","summary":"Ask for apps access (the closed beta). Only the owner's browser session; tokens get 403. Mails the operator at most once per account per 7 days. Answers { status: enabled | requested, requested_at }.","responses":{"200":{"description":"{ status, requested_at }","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"sessionCookie":[]}],"description":"Session only: the owner in a browser. A token or an assistant gets 403 owner-only.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/v1/status":{"get":{"operationId":"getStatus","summary":"Public status: status, environment, integrations (each by name with on, off, mock, or test; test: billing in production runs on a Mollie test key for an owner acceptance test; mail, billing, domains, domain-registration, cloudflare-zones, preview-mode, urlhaus, web-risk, clamav, sentry, offsite-backup, mail-feedback; preview-mode on means accounts without a plan may publish one free preview), mcp_url and, once the status page is live, status_page_url. No per-component list. Names only, never values. mcp_url is the MCP server address to add in an AI app (MCP_ORIGIN plus /mcp, for example https://mcp.upshegoes.com/mcp), or null when this environment has no MCP_ORIGIN.","responses":{"200":{"description":"Status","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"environment":{"type":"string"},"integrations":{"type":"object","properties":{},"additionalProperties":true},"mcp_url":{"type":["string","null"]}},"additionalProperties":true}}}}},"security":[]}},"/v1/preview":{"get":{"operationId":"getPreview","summary":"The free preview of this account (the preview block of GET /v1/billing): mode, state, hostname, expires_at, days_left, files_kept_until, traffic_capped, limits (sites, storage_bytes, max_upload_bytes, bandwidth_bytes_per_month, days, files_kept_days), prices { month, year }, go_live_url.","responses":{"200":{"description":"The preview view.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON object. The description of the operation lists its fields."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"bearerAuth":["account:read"]},{"oauth2":["account:read"]},{"sessionCookie":[]}]}},"/v1/waitlist":{"post":{"operationId":"joinWaitlist","summary":"Join the private-beta waitlist. Does not send mail.","description":"A new and an address already on the list get the same answer, {\"ok\": true}.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Joined","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":true}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"locale":{"type":"string","enum":["en","nl"]}},"required":["email"],"additionalProperties":false}}}}}},"/llms.txt":{"get":{"operationId":"getLlmsTxt","summary":"Assistant guide, including the free contact-form recipe.","responses":{"200":{"description":"text/plain","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[]}},"/v1/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","responses":{"200":{"description":"OpenAPI 3.1 document generated from the Zod schemas in @upshegoes/shared.","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[]}}},"components":{"schemas":{"AppOperationAccepted":{"type":"object","properties":{"operation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["provision","deploy","rollback","restart","backup","restore","upgrade","replace","delete","resize","grow_storage","move_server","unpaid_removal","end_app","restore_final"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","rolled_back","canceled"]},"status_url":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}},"required":["operation_id","app_id","kind","status","status_url"],"additionalProperties":false},"AppOperation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","const":"app"},"kind":{"type":"string","enum":["provision","deploy","rollback","restart","backup","restore","upgrade","replace","delete","resize","grow_storage","move_server","unpaid_removal","end_app","restore_final"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","rolled_back","canceled"]},"app_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"site_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"step":{"type":["string","null"]},"release_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"backup_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"upgrade_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"detail":{"type":"string"},"title":{"type":"string"},"fix":{"type":"string"},"log_tail":{"type":"array","items":{"type":"string"}}},"required":["type","detail"],"additionalProperties":false},{"type":"null"}]},"result":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"advice":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"reason_code":{"type":"string","enum":["app_out_of_memory","database_out_of_memory","first_start_out_of_memory","build_out_of_memory","app_memory","database_memory","cpu","manifest_size","stack_estimate","exceeds_largest_size","quiet","storage_full","storage_trend","storage_at_cap"]},"message":{"type":"string"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_delta_text":{"type":["string","null"]},"urgent":{"type":"boolean"},"dismissible":{"type":"boolean"},"how_to":{"type":"string"},"self_service":{"type":"boolean"},"evidence":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","string","boolean","null"]}},"since":{"type":["string","null"]}},"required":["kind","target","reason_code","message","price_delta_cents","price_delta_text","urgent","dismissible","how_to","self_service","evidence","since"],"additionalProperties":false},{"type":"null"}]},"step_text":{"type":"string"},"phases":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"state":{"type":"string","enum":["done","active","pending"]}},"required":["text","state"],"additionalProperties":false}},"advices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"reason_code":{"type":"string","enum":["app_out_of_memory","database_out_of_memory","first_start_out_of_memory","build_out_of_memory","app_memory","database_memory","cpu","manifest_size","stack_estimate","exceeds_largest_size","quiet","storage_full","storage_trend","storage_at_cap"]},"message":{"type":"string"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_delta_text":{"type":["string","null"]},"urgent":{"type":"boolean"},"dismissible":{"type":"boolean"},"how_to":{"type":"string"},"self_service":{"type":"boolean"},"evidence":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","string","boolean","null"]}},"since":{"type":["string","null"]}},"required":["kind","target","reason_code","message","price_delta_cents","price_delta_text","urgent","dismissible","how_to","self_service","evidence","since"],"additionalProperties":false}},"server_note":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"finished_at":{"type":["string","null"]}},"required":["id","type","kind","status","app_id","site_id","step","release_id","backup_id","upgrade_id","error","result","created_at","updated_at","finished_at"],"additionalProperties":false},"App":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"site_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["draft","provisioning","deploying","running","degraded","stopped","failed","deleting","deleted"]},"size":{"type":"string","enum":["small","medium","large"]},"suspended":{"type":"boolean"},"hostnames":{"type":"object","properties":{"preview":{"type":"string"},"production":{"type":["string","null"]}},"required":["preview","production"],"additionalProperties":false},"url":{"type":"string"},"machine":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["provisioning","booting","ready","degraded","replacing","stopped","deleting","deleted","failed"]},"health":{"type":"string","enum":["healthy","degraded","silent","unknown"]},"last_seen_at":{"type":["string","null"]},"disk_used_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"disk_total_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"location":{"type":["string","null"]},"unreachable_since":{"type":"string"}},"required":["status","health","last_seen_at","disk_used_bytes","disk_total_bytes","location"],"additionalProperties":false},{"type":"null"}]},"live_release":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","building","built","deploying","live","failed","superseded","rolled_back"]},"source_type":{"type":"string","enum":["image","build","inline"]},"image_ref":{"type":["string","null"]},"image_digest":{"type":["string","null"]},"runtime":{"type":["string","null"]},"runtime_version":{"type":["string","null"]},"created_at":{"type":"string"},"live_at":{"type":["string","null"]},"failure_type":{"type":["string","null"]},"failure_detail":{"type":["string","null"]}},"required":["id","number","status","source_type","image_ref","image_digest","runtime","runtime_version","created_at","live_at","failure_type","failure_detail"],"additionalProperties":false},{"type":"null"}]},"latest_release":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","building","built","deploying","live","failed","superseded","rolled_back"]},"problem_title":{"type":["string","null"]}},"required":["number","status","problem_title"],"additionalProperties":false},"notices":{"type":"array","items":{"type":"string"}},"database":{"anyOf":[{"type":"object","properties":{"engine":{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},"version":{"type":["string","null"]},"external":{"type":"boolean"}},"required":["engine","version","external"],"additionalProperties":false},{"type":"null"}]},"last_backups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["nightly","pre_deploy","pre_upgrade","pre_restore","manual","final"]},"status":{"type":"string","enum":["pending","uploading","complete","failed","expired"]},"engine":{"anyOf":[{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},{"type":"null"}]},"engine_version":{"type":["string","null"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"contents":{"type":"string","enum":["database_and_files","database_only","files_only"]},"parts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["database","volumes"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"status":{"type":"string","enum":["pending","complete","skipped","expired"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"raw_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"taken_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]}},"required":["kind","format","status","size_bytes","sha256","raw_bytes","taken_at","expires_at","warnings","note"],"additionalProperties":false}},"total_size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]}},"required":["id","kind","status","engine","engine_version","format","size_bytes","sha256","contents","parts","total_size_bytes","created_at","completed_at","expires_at"],"additionalProperties":false}},"backup_storage_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backup_storage_allowance_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open_upgrades":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"component":{"type":"string","enum":["database","runtime","base_image","platform"]},"current":{"type":"string"},"target":{"type":"string"},"severity":{"type":"string","enum":["minor","major","eol","security"]},"eol_date":{"type":["string","null"]},"one_click":{"type":"boolean"},"status":{"type":"string","enum":["available","in_progress","applied","dismissed","failed"]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"detected_at":{"type":"string"},"note":{"type":"string"}},"required":["id","component","current","target","severity","eol_date","one_click","status","operation_id","detected_at"],"additionalProperties":false}},"billing_started_at":{"type":"string"},"unpaid":{"type":"object","properties":{"stage":{"type":"string","enum":["offline","server_warned","server_removing","server_removed","data_warned_7","data_warned_1","data_deleting"]},"server_removed":{"type":"boolean"},"server_removal_on":{"type":"string"},"data_kept_until":{"type":"string"}},"required":["stage","server_removed","server_removal_on","data_kept_until"],"additionalProperties":false},"open_operation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["provision","deploy","rollback","restart","backup","restore","upgrade","replace","delete","resize","grow_storage","move_server","unpaid_removal","end_app","restore_final"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","rolled_back","canceled"]},"step":{"type":["string","null"]}},"required":["id","kind","status","step"],"additionalProperties":false},{"type":"null"}]},"advice":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"reason_code":{"type":"string","enum":["app_out_of_memory","database_out_of_memory","first_start_out_of_memory","build_out_of_memory","app_memory","database_memory","cpu","manifest_size","stack_estimate","exceeds_largest_size","quiet","storage_full","storage_trend","storage_at_cap"]},"message":{"type":"string"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_delta_text":{"type":["string","null"]},"urgent":{"type":"boolean"},"dismissible":{"type":"boolean"},"how_to":{"type":"string"},"self_service":{"type":"boolean"},"evidence":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","string","boolean","null"]}},"since":{"type":["string","null"]}},"required":["kind","target","reason_code","message","price_delta_cents","price_delta_text","urgent","dismissible","how_to","self_service","evidence","since"],"additionalProperties":false},{"type":"null"}]},"advices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"reason_code":{"type":"string","enum":["app_out_of_memory","database_out_of_memory","first_start_out_of_memory","build_out_of_memory","app_memory","database_memory","cpu","manifest_size","stack_estimate","exceeds_largest_size","quiet","storage_full","storage_trend","storage_at_cap"]},"message":{"type":"string"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_delta_text":{"type":["string","null"]},"urgent":{"type":"boolean"},"dismissible":{"type":"boolean"},"how_to":{"type":"string"},"self_service":{"type":"boolean"},"evidence":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","string","boolean","null"]}},"since":{"type":["string","null"]}},"required":["kind","target","reason_code","message","price_delta_cents","price_delta_text","urgent","dismissible","how_to","self_service","evidence","since"],"additionalProperties":false}},"usage":{"anyOf":[{"type":"object","properties":{"latest_hour":{"type":["string","null"]},"hours_14d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory":{"type":"object","properties":{"limit_mb":{"type":"number"},"current_mb":{"type":["number","null"]},"p95_14d_mb":{"type":["number","null"]},"peak_14d_mb":{"type":["number","null"]}},"required":["limit_mb","current_mb","p95_14d_mb","peak_14d_mb"],"additionalProperties":false},"database_memory":{"anyOf":[{"type":"object","properties":{"current_mb":{"type":["number","null"]},"peak_14d_mb":{"type":["number","null"]}},"required":["current_mb","peak_14d_mb"],"additionalProperties":false},{"type":"null"}]},"cpu":{"type":"object","properties":{"vcpus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"current_pct":{"type":["number","null"]},"p95_14d_pct":{"type":["number","null"]}},"required":["vcpus","current_pct","p95_14d_pct"],"additionalProperties":false},"storage":{"type":"object","properties":{"used_bytes":{"type":["number","null"]},"total_bytes":{"type":["number","null"]},"peak_14d_used_bytes":{"type":["number","null"]}},"required":["used_bytes","total_bytes","peak_14d_used_bytes"],"additionalProperties":false},"out_of_memory_14d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_out_of_memory_at":{"type":["string","null"]}},"required":["latest_hour","hours_14d","memory","database_memory","cpu","storage","out_of_memory_14d","last_out_of_memory_at"],"additionalProperties":false},{"type":"null"}]},"storage":{"type":"object","properties":{"included_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addon_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entitlement_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_add_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_total_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addon_monthly_excl_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["included_gb","addon_gb","entitlement_gb","step_gb","max_add_gb","max_total_gb","addon_monthly_excl_cents"],"additionalProperties":false},"size_changed_at":{"type":["string","null"]},"server_move":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["fallback","moving","done","not_done"]},"window_start":{"type":["string","null"]},"window_end":{"type":["string","null"]},"message":{"type":"string"}},"required":["state","window_start","window_end","message"],"additionalProperties":false},{"type":"null"}]},"ended":{"anyOf":[{"type":"object","properties":{"ended_on":{"type":"string"},"backup_expires_on":{"type":"string"},"expired":{"type":"boolean"},"final_backup":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["nightly","pre_deploy","pre_upgrade","pre_restore","manual","final"]},"status":{"type":"string","enum":["pending","uploading","complete","failed","expired"]},"engine":{"anyOf":[{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},{"type":"null"}]},"engine_version":{"type":["string","null"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"contents":{"type":"string","enum":["database_and_files","database_only","files_only"]},"parts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["database","volumes"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"status":{"type":"string","enum":["pending","complete","skipped","expired"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"raw_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"taken_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]}},"required":["kind","format","status","size_bytes","sha256","raw_bytes","taken_at","expires_at","warnings","note"],"additionalProperties":false}},"total_size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]}},"required":["id","kind","status","engine","engine_version","format","size_bytes","sha256","contents","parts","total_size_bytes","created_at","completed_at","expires_at"],"additionalProperties":false},{"type":"null"}]},"size":{"type":"string","enum":["small","medium","large"]},"restore_path":{"type":"string"}},"required":["ended_on","backup_expires_on","expired","final_backup","size","restore_path"],"additionalProperties":false},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","site_id","name","slug","status","size","suspended","hostnames","url","machine","live_release","database","last_backups","backup_storage_bytes","backup_storage_allowance_bytes","open_upgrades","open_operation","created_at","updated_at"],"additionalProperties":false},"AppList":{"type":"object","properties":{"apps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"site_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["draft","provisioning","deploying","running","degraded","stopped","failed","deleting","deleted"]},"size":{"type":"string","enum":["small","medium","large"]},"suspended":{"type":"boolean"},"hostnames":{"type":"object","properties":{"preview":{"type":"string"},"production":{"type":["string","null"]}},"required":["preview","production"],"additionalProperties":false},"url":{"type":"string"},"machine":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["provisioning","booting","ready","degraded","replacing","stopped","deleting","deleted","failed"]},"health":{"type":"string","enum":["healthy","degraded","silent","unknown"]},"last_seen_at":{"type":["string","null"]},"disk_used_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"disk_total_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"location":{"type":["string","null"]},"unreachable_since":{"type":"string"}},"required":["status","health","last_seen_at","disk_used_bytes","disk_total_bytes","location"],"additionalProperties":false},{"type":"null"}]},"live_release":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","building","built","deploying","live","failed","superseded","rolled_back"]},"source_type":{"type":"string","enum":["image","build","inline"]},"image_ref":{"type":["string","null"]},"image_digest":{"type":["string","null"]},"runtime":{"type":["string","null"]},"runtime_version":{"type":["string","null"]},"created_at":{"type":"string"},"live_at":{"type":["string","null"]},"failure_type":{"type":["string","null"]},"failure_detail":{"type":["string","null"]}},"required":["id","number","status","source_type","image_ref","image_digest","runtime","runtime_version","created_at","live_at","failure_type","failure_detail"],"additionalProperties":false},{"type":"null"}]},"latest_release":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","building","built","deploying","live","failed","superseded","rolled_back"]},"problem_title":{"type":["string","null"]}},"required":["number","status","problem_title"],"additionalProperties":false},"notices":{"type":"array","items":{"type":"string"}},"database":{"anyOf":[{"type":"object","properties":{"engine":{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},"version":{"type":["string","null"]},"external":{"type":"boolean"}},"required":["engine","version","external"],"additionalProperties":false},{"type":"null"}]},"last_backups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["nightly","pre_deploy","pre_upgrade","pre_restore","manual","final"]},"status":{"type":"string","enum":["pending","uploading","complete","failed","expired"]},"engine":{"anyOf":[{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},{"type":"null"}]},"engine_version":{"type":["string","null"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"contents":{"type":"string","enum":["database_and_files","database_only","files_only"]},"parts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["database","volumes"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"status":{"type":"string","enum":["pending","complete","skipped","expired"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"raw_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"taken_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]}},"required":["kind","format","status","size_bytes","sha256","raw_bytes","taken_at","expires_at","warnings","note"],"additionalProperties":false}},"total_size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]}},"required":["id","kind","status","engine","engine_version","format","size_bytes","sha256","contents","parts","total_size_bytes","created_at","completed_at","expires_at"],"additionalProperties":false}},"backup_storage_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backup_storage_allowance_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open_upgrades":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"component":{"type":"string","enum":["database","runtime","base_image","platform"]},"current":{"type":"string"},"target":{"type":"string"},"severity":{"type":"string","enum":["minor","major","eol","security"]},"eol_date":{"type":["string","null"]},"one_click":{"type":"boolean"},"status":{"type":"string","enum":["available","in_progress","applied","dismissed","failed"]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"detected_at":{"type":"string"},"note":{"type":"string"}},"required":["id","component","current","target","severity","eol_date","one_click","status","operation_id","detected_at"],"additionalProperties":false}},"billing_started_at":{"type":"string"},"unpaid":{"type":"object","properties":{"stage":{"type":"string","enum":["offline","server_warned","server_removing","server_removed","data_warned_7","data_warned_1","data_deleting"]},"server_removed":{"type":"boolean"},"server_removal_on":{"type":"string"},"data_kept_until":{"type":"string"}},"required":["stage","server_removed","server_removal_on","data_kept_until"],"additionalProperties":false},"open_operation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["provision","deploy","rollback","restart","backup","restore","upgrade","replace","delete","resize","grow_storage","move_server","unpaid_removal","end_app","restore_final"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","rolled_back","canceled"]},"step":{"type":["string","null"]}},"required":["id","kind","status","step"],"additionalProperties":false},{"type":"null"}]},"advice":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"urgent":{"type":"boolean"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","target","urgent","price_delta_cents"],"additionalProperties":false},{"type":"null"}]},"advices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"urgent":{"type":"boolean"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","target","urgent","price_delta_cents"],"additionalProperties":false}},"usage":{"anyOf":[{"type":"object","properties":{"latest_hour":{"type":["string","null"]},"hours_14d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory":{"type":"object","properties":{"limit_mb":{"type":"number"},"current_mb":{"type":["number","null"]},"p95_14d_mb":{"type":["number","null"]},"peak_14d_mb":{"type":["number","null"]}},"required":["limit_mb","current_mb","p95_14d_mb","peak_14d_mb"],"additionalProperties":false},"database_memory":{"anyOf":[{"type":"object","properties":{"current_mb":{"type":["number","null"]},"peak_14d_mb":{"type":["number","null"]}},"required":["current_mb","peak_14d_mb"],"additionalProperties":false},{"type":"null"}]},"cpu":{"type":"object","properties":{"vcpus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"current_pct":{"type":["number","null"]},"p95_14d_pct":{"type":["number","null"]}},"required":["vcpus","current_pct","p95_14d_pct"],"additionalProperties":false},"storage":{"type":"object","properties":{"used_bytes":{"type":["number","null"]},"total_bytes":{"type":["number","null"]},"peak_14d_used_bytes":{"type":["number","null"]}},"required":["used_bytes","total_bytes","peak_14d_used_bytes"],"additionalProperties":false},"out_of_memory_14d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_out_of_memory_at":{"type":["string","null"]}},"required":["latest_hour","hours_14d","memory","database_memory","cpu","storage","out_of_memory_14d","last_out_of_memory_at"],"additionalProperties":false},{"type":"null"}]},"storage":{"type":"object","properties":{"included_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addon_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entitlement_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_add_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_total_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addon_monthly_excl_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["included_gb","addon_gb","entitlement_gb","step_gb","max_add_gb","max_total_gb","addon_monthly_excl_cents"],"additionalProperties":false},"size_changed_at":{"type":["string","null"]},"server_move":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["fallback","moving","done","not_done"]},"window_start":{"type":["string","null"]},"window_end":{"type":["string","null"]},"message":{"type":"string"}},"required":["state","window_start","window_end","message"],"additionalProperties":false},{"type":"null"}]},"ended":{"anyOf":[{"type":"object","properties":{"ended_on":{"type":"string"},"backup_expires_on":{"type":"string"},"expired":{"type":"boolean"},"final_backup":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["nightly","pre_deploy","pre_upgrade","pre_restore","manual","final"]},"status":{"type":"string","enum":["pending","uploading","complete","failed","expired"]},"engine":{"anyOf":[{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},{"type":"null"}]},"engine_version":{"type":["string","null"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"contents":{"type":"string","enum":["database_and_files","database_only","files_only"]},"parts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["database","volumes"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"status":{"type":"string","enum":["pending","complete","skipped","expired"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"raw_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"taken_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]}},"required":["kind","format","status","size_bytes","sha256","raw_bytes","taken_at","expires_at","warnings","note"],"additionalProperties":false}},"total_size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]}},"required":["id","kind","status","engine","engine_version","format","size_bytes","sha256","contents","parts","total_size_bytes","created_at","completed_at","expires_at"],"additionalProperties":false},{"type":"null"}]},"size":{"type":"string","enum":["small","medium","large"]},"restore_path":{"type":"string"}},"required":["ended_on","backup_expires_on","expired","final_backup","size","restore_path"],"additionalProperties":false},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","site_id","name","slug","status","size","suspended","hostnames","url","machine","live_release","database","last_backups","backup_storage_bytes","backup_storage_allowance_bytes","open_upgrades","open_operation","created_at","updated_at"],"additionalProperties":false}}},"required":["apps"],"additionalProperties":false},"CreateApp":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"size":{"type":"string","enum":["small","medium","large"]},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name"],"additionalProperties":false},"CreateAppUpload":{"type":"object","properties":{"size_bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The exact size of the file in bytes. The PUT must send exactly this many bytes, with the headers from the answer."},"format":{"default":"tar.gz","type":"string","enum":["tar.gz","zip"]}},"required":["size_bytes","format"],"additionalProperties":false},"AppUpload":{"type":"object","properties":{"upload_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"upload_url":{"type":"string"},"method":{"type":"string","const":"PUT"},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"size_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expires_at":{"type":"string"},"max_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["upload_id","upload_url","method","headers","expires_at","max_bytes"],"additionalProperties":false},"DeployApp":{"type":"object","properties":{"manifest":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"upload_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"files":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":512},"content":{"type":"string","maxLength":5000000},"encoding":{"default":"utf8","type":"string","enum":["utf8","base64"]}},"required":["path","content","encoding"],"additionalProperties":false}},"image":{"type":"string","minLength":1,"maxLength":512}},"required":["manifest"],"additionalProperties":false},"ReleaseList":{"type":"object","properties":{"releases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","building","built","deploying","live","failed","superseded","rolled_back"]},"source_type":{"type":"string","enum":["image","build","inline"]},"image_ref":{"type":["string","null"]},"image_digest":{"type":["string","null"]},"runtime":{"type":["string","null"]},"runtime_version":{"type":["string","null"]},"created_at":{"type":"string"},"live_at":{"type":["string","null"]},"failure_type":{"type":["string","null"]},"failure_detail":{"type":["string","null"]}},"required":["id","number","status","source_type","image_ref","image_digest","runtime","runtime_version","created_at","live_at","failure_type","failure_detail"],"additionalProperties":false}}},"required":["releases"],"additionalProperties":false},"RollbackApp":{"type":"object","properties":{"release_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["release_id"],"additionalProperties":false},"RestartApp":{"default":{},"type":"object","properties":{},"additionalProperties":false},"DismissAdvice":{"default":{},"type":"object","properties":{},"additionalProperties":false},"DismissAdviceResult":{"type":"object","properties":{"app_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dismissed_until":{"type":"string"}},"required":["app_id","dismissed_until"],"additionalProperties":false},"AppSizeOptions":{"type":"object","properties":{"app_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"current":{"type":"string","enum":["small","medium","large"]},"size_changed_at":{"type":["string","null"]},"downsize_not_before":{"type":["string","null"]},"sizes":{"type":"array","items":{"type":"object","properties":{"size":{"type":"string","enum":["small","medium","large"]},"label":{"type":"string"},"vcpus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory_gb":{"type":"number"},"app_memory_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"volume_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"good_for":{"type":"string"},"monthly_excl_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"current":{"type":"boolean"},"allowed":{"type":"boolean"},"note":{"type":["string","null"]}},"required":["size","label","vcpus","memory_gb","app_memory_mb","volume_gb","good_for","monthly_excl_cents","price_delta_cents","current","allowed","note"],"additionalProperties":false}},"storage":{"type":"object","properties":{"included_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addon_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entitlement_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_add_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_total_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addon_monthly_excl_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["included_gb","addon_gb","entitlement_gb","step_gb","max_add_gb","max_total_gb","addon_monthly_excl_cents"],"additionalProperties":false},"advice":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"reason_code":{"type":"string","enum":["app_out_of_memory","database_out_of_memory","first_start_out_of_memory","build_out_of_memory","app_memory","database_memory","cpu","manifest_size","stack_estimate","exceeds_largest_size","quiet","storage_full","storage_trend","storage_at_cap"]},"message":{"type":"string"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_delta_text":{"type":["string","null"]},"urgent":{"type":"boolean"},"dismissible":{"type":"boolean"},"how_to":{"type":"string"},"self_service":{"type":"boolean"},"evidence":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","string","boolean","null"]}},"since":{"type":["string","null"]}},"required":["kind","target","reason_code","message","price_delta_cents","price_delta_text","urgent","dismissible","how_to","self_service","evidence","since"],"additionalProperties":false},{"type":"null"}]},"advices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["size_up","size_down","storage_up"]},"target":{"type":["string","number","null"]},"reason_code":{"type":"string","enum":["app_out_of_memory","database_out_of_memory","first_start_out_of_memory","build_out_of_memory","app_memory","database_memory","cpu","manifest_size","stack_estimate","exceeds_largest_size","quiet","storage_full","storage_trend","storage_at_cap"]},"message":{"type":"string"},"price_delta_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_delta_text":{"type":["string","null"]},"urgent":{"type":"boolean"},"dismissible":{"type":"boolean"},"how_to":{"type":"string"},"self_service":{"type":"boolean"},"evidence":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","string","boolean","null"]}},"since":{"type":["string","null"]}},"required":["kind","target","reason_code","message","price_delta_cents","price_delta_text","urgent","dismissible","how_to","self_service","evidence","since"],"additionalProperties":false}},"billing_started":{"type":"boolean"},"price_note":{"type":"string"}},"required":["app_id","current","size_changed_at","downsize_not_before","sizes","storage","advice","billing_started","price_note"],"additionalProperties":false},"ResizeApp":{"type":"object","properties":{"size":{"type":"string","enum":["small","medium","large"]},"accept_risk":{"type":"boolean"},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["size"],"additionalProperties":false},"AppCeiling":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stored":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"default":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"apps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"live_apps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted_until":{"type":"array","items":{"type":"string"}},"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"billed":{"type":"boolean"},"locked":{"type":"boolean"},"can_change":{"type":"boolean"},"largest_monthly_excl_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","stored","default","apps","min","max","billed","locked","can_change","largest_monthly_excl_cents"],"additionalProperties":false},"SetAppCeiling":{"type":"object","properties":{"max_apps":{"type":"integer","minimum":0,"maximum":500}},"required":["max_apps"],"additionalProperties":false},"AddAppStorage":{"type":"object","properties":{"add_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["add_gb"],"additionalProperties":false},"AppSecretList":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,127}$"},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["name","created_at","updated_at"],"additionalProperties":false}},"missing":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,127}$"}},"undeclared":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,127}$"}},"note":{"type":"string"}},"required":["secrets","missing","note"],"additionalProperties":false},"PutAppSecret":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":32768},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["value"],"additionalProperties":false},"AppSecretChange":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,127}$"},"status":{"type":"string","enum":["set","deleted"]},"applies":{"type":"string","const":"next_deploy_or_restart"},"declared":{"type":"boolean"},"warning":{"type":"string"},"note":{"type":"string"}},"required":["name","status","applies","note"],"additionalProperties":false},"AppLogs":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"stream":{"type":"string","enum":["stdout","stderr","build","release","agent"]},"release_id":{"type":["string","null"]},"line":{"type":"string"},"candidate":{"type":"boolean"}},"required":["ts","stream","release_id","line"],"additionalProperties":false}},"truncated":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"retention_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["lines","truncated","next_cursor","retention_days"],"additionalProperties":false},"BackupList":{"type":"object","properties":{"backups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["nightly","pre_deploy","pre_upgrade","pre_restore","manual","final"]},"status":{"type":"string","enum":["pending","uploading","complete","failed","expired"]},"engine":{"anyOf":[{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},{"type":"null"}]},"engine_version":{"type":["string","null"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"contents":{"type":"string","enum":["database_and_files","database_only","files_only"]},"parts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["database","volumes"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"status":{"type":"string","enum":["pending","complete","skipped","expired"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"raw_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"taken_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]}},"required":["kind","format","status","size_bytes","sha256","raw_bytes","taken_at","expires_at","warnings","note"],"additionalProperties":false}},"total_size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]}},"required":["id","kind","status","engine","engine_version","format","size_bytes","sha256","contents","parts","total_size_bytes","created_at","completed_at","expires_at"],"additionalProperties":false}},"retention":{"type":"string"},"storage_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"storage_allowance_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"manual_backups_kept":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deletion":{"type":"object","properties":{"deleted_at":{"type":"string"},"state":{"type":"string","enum":["taking_final_backup","removing_server","server_removed"]},"final_backup":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["nightly","pre_deploy","pre_upgrade","pre_restore","manual","final"]},"status":{"type":"string","enum":["pending","uploading","complete","failed","expired"]},"engine":{"anyOf":[{"type":"string","enum":["postgres","mysql","mariadb","sqlite"]},{"type":"null"}]},"engine_version":{"type":["string","null"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"contents":{"type":"string","enum":["database_and_files","database_only","files_only"]},"parts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["database","volumes"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"status":{"type":"string","enum":["pending","complete","skipped","expired"]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"raw_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"taken_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]}},"required":["kind","format","status","size_bytes","sha256","raw_bytes","taken_at","expires_at","warnings","note"],"additionalProperties":false}},"total_size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]}},"required":["id","kind","status","engine","engine_version","format","size_bytes","sha256","contents","parts","total_size_bytes","created_at","completed_at","expires_at"],"additionalProperties":false},{"type":"null"}]},"final_backup_failed":{"type":"boolean"},"final_backup_skipped":{"type":["string","null"]},"final_backup_note":{"type":["string","null"]}},"required":["deleted_at","state","final_backup","final_backup_failed","final_backup_skipped","final_backup_note"],"additionalProperties":false}},"required":["backups","retention","storage_bytes","storage_allowance_bytes","manual_backups_kept"],"additionalProperties":false},"CreateBackup":{"default":{},"type":"object","properties":{},"additionalProperties":false},"RestoreBackup":{"type":"object","properties":{"confirm_name":{"type":"string","minLength":1,"maxLength":80},"parts":{"type":"string","enum":["all","database","files"]}},"required":["confirm_name"],"additionalProperties":false},"BackupDownload":{"type":"object","properties":{"url":{"type":"string"},"expires_at":{"type":"string"},"filename":{"type":"string"},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sha256":{"type":["string","null"]},"format":{"type":"string","enum":["pg_dump","mariadb_dump","mysql_dump","sqlite_backup","volume_tar"]},"part":{"type":"string","enum":["database","volumes"]}},"required":["url","expires_at","filename","size_bytes","sha256","format","part"],"additionalProperties":false},"UpgradeList":{"type":"object","properties":{"upgrades":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"component":{"type":"string","enum":["database","runtime","base_image","platform"]},"current":{"type":"string"},"target":{"type":"string"},"severity":{"type":"string","enum":["minor","major","eol","security"]},"eol_date":{"type":["string","null"]},"one_click":{"type":"boolean"},"status":{"type":"string","enum":["available","in_progress","applied","dismissed","failed"]},"operation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"detected_at":{"type":"string"},"note":{"type":"string"}},"required":["id","component","current","target","severity","eol_date","one_click","status","operation_id","detected_at"],"additionalProperties":false}},"note":{"type":"string"}},"required":["upgrades"],"additionalProperties":false},"ApplyUpgrade":{"default":{},"type":"object","properties":{},"additionalProperties":false},"RestoreFinal":{"type":"object","properties":{"confirmation_id":{"type":"string","minLength":1,"maxLength":200},"include_site_plan":{"type":"boolean"}},"additionalProperties":false},"Health":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"service":{"type":"string","const":"upshegoes-api"},"environment":{"type":"string","enum":["local","preview","staging","production"]},"version":{"type":"string"}},"required":["ok","service","environment","version"],"additionalProperties":false},"Problem":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"instance":{"type":"string"},"fix":{"type":"string"}},"required":["type","title","status","detail","fix"],"additionalProperties":false},"Me":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"display_name":{"type":["string","null"]},"plan":{"type":"string"},"status":{"type":"string"},"quota":{"type":"object","properties":{"plan":{"type":"string","enum":["site","preview"]},"storage_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bandwidth_bytes_per_month":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"storage_used_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bandwidth_used_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"storage_enforcement":{"type":"string","const":"hard"},"bandwidth_enforcement":{"type":"string","enum":["soft","hard"]}},"required":["plan","storage_bytes","bandwidth_bytes_per_month","storage_used_bytes","bandwidth_used_bytes","storage_enforcement","bandwidth_enforcement"],"additionalProperties":false},"locale":{"type":"string","enum":["nl","en"]}},"required":["id","email","display_name","plan","status","quota","locale"],"additionalProperties":false},"is_operator":{"type":"boolean"},"apps_enabled":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string","enum":["account:read","account:write","sites:read","sites:write"]}}},"required":["account","is_operator"],"additionalProperties":false},"Site":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string","enum":["static","app"]},"suspended":{"type":"boolean"},"preview_hostname":{"type":"string"},"production_hostname":{"type":["string","null"]},"created_at":{"type":"string"},"has_live_version":{"type":"boolean"},"deleted_at":{"type":"string"},"restore_until":{"type":"string"},"preview":{"type":"boolean"},"preview_expires_at":{"type":["string","null"]},"preview_state":{"type":"string","enum":["not_started","online","offline","traffic_cap"]},"go_live_url":{"type":["string","null"]}},"required":["id","name","slug","status","suspended","preview_hostname","production_hostname","created_at"],"additionalProperties":false},"SiteList":{"type":"object","properties":{"sites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string","enum":["static","app"]},"suspended":{"type":"boolean"},"preview_hostname":{"type":"string"},"production_hostname":{"type":["string","null"]},"created_at":{"type":"string"},"has_live_version":{"type":"boolean"},"deleted_at":{"type":"string"},"restore_until":{"type":"string"},"preview":{"type":"boolean"},"preview_expires_at":{"type":["string","null"]},"preview_state":{"type":"string","enum":["not_started","online","offline","traffic_cap"]},"go_live_url":{"type":["string","null"]}},"required":["id","name","slug","status","suspended","preview_hostname","production_hostname","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]}},"required":["sites","next_cursor"],"additionalProperties":false},"CreateSite":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80}},"required":["name"],"additionalProperties":false},"CreateToken":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["account:read","account:write","sites:read","sites:write"]}},"expires_in_days":{"type":"integer","minimum":1,"maximum":365}},"required":["name"],"additionalProperties":false},"ConnectionList":{"type":"object","properties":{"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"client_id":{"type":"string"},"client_name":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"last_used_at":{"type":["string","null"]}},"required":["id","client_id","client_name","scopes","created_at","last_used_at"],"additionalProperties":false}}},"required":["connections"],"additionalProperties":false},"SessionList":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"created_at":{"type":"string"},"last_seen_at":{"type":["string","null"]},"user_agent":{"type":["string","null"]},"expires_at":{"type":"string"},"current":{"type":"boolean"}},"required":["id","created_at","last_seen_at","user_agent","expires_at","current"],"additionalProperties":false}}},"required":["sessions"],"additionalProperties":false},"EmailChange":{"type":"object","properties":{"new_email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["new_email"],"additionalProperties":false},"EmailChangeToken":{"type":"object","properties":{"token":{"type":"string","minLength":16,"maxLength":200}},"required":["token"],"additionalProperties":false},"AccountErase":{"type":"object","properties":{"confirm_email":{"type":"string","minLength":3,"maxLength":254},"confirmation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["confirm_email"],"additionalProperties":false},"TokenCreated":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"token_prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["account:read","account:write","sites:read","sites:write"]}},"token":{"type":"string"},"created_at":{"type":"string"},"expires_at":{"type":["string","null"]}},"required":["id","name","token_prefix","scopes","token","created_at"],"additionalProperties":false},"TokenList":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"token_prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["account:read","account:write","sites:read","sites:write"]}},"created_at":{"type":"string"},"last_used_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"revoked_at":{"type":["string","null"]}},"required":["id","name","token_prefix","scopes","created_at","last_used_at","expires_at","revoked_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]}},"required":["tokens","next_cursor"],"additionalProperties":false},"MagicLink":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"next":{"type":"string","maxLength":2048},"locale":{"type":"string","enum":["nl","en"]}},"required":["email"],"additionalProperties":false},"Operation":{"type":"object","required":["id","status","deployment_id","error","scan"],"properties":{"id":{"type":"string"},"site_id":{"type":"string"},"siteId":{"type":"string","deprecated":true},"status":{"type":"string","enum":["queued","running","succeeded","failed","held"]},"deployment_id":{"type":["string","null"]},"deploymentId":{"type":["string","null"],"deprecated":true},"error":{"type":["string","null"]},"scan":{"type":["object","null"],"properties":{"decision":{"type":"string","enum":["allow","hold","block"]},"reasons":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"string"}}}},"progress":{"type":"object","properties":{"files_written":{"type":"integer","minimum":0},"files_total":{"type":"integer","minimum":0}}},"created_at":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time","deprecated":true}}},"DomainCheckResult":{"type":"object","required":["name","extension","available","premium","registration_offered","source"],"properties":{"name":{"type":"string"},"extension":{"type":"string"},"available":{"type":"boolean","description":"False for a taken name and for a premium name."},"premium":{"type":"boolean","description":"True when the registry lists the name as premium. Premium domains are not offered."},"registration_offered":{"type":"boolean","description":"True when POST /v1/domains/registrations can register it: the extension is offered and the name is not premium."},"source":{"type":"string","enum":["mock","openprovider"]},"note":{"type":"string","description":"Why registration is not offered, with the next step."}}},"DeploymentList":{"type":"object","required":["deployments","next_cursor","live_deployment_id"],"properties":{"deployments":{"type":"array","items":{"$ref":"#/components/schemas/Deployment"}},"next_cursor":{"type":["string","null"],"description":"Pass it as ?cursor= for the next page; null on the last page."},"live_deployment_id":{"type":["string","null"],"description":"The id of the live version, whatever the page: it can be older than the page. Null when nothing is live."}}},"Deployment":{"type":"object","required":["id","site_id","status","source","storage_bytes","file_count","preview_hostname","promoted","created_at","operation_id","progress"],"properties":{"id":{"type":"string"},"site_id":{"type":"string"},"siteId":{"type":"string","deprecated":true},"status":{"type":"string","enum":["queued","running","ready","held","blocked","failed"],"description":"queued and running while the deploy is in flight; the row has no files yet and its preview hostname is not routed."},"source":{"type":"string","enum":["inline","zip","promotion"]},"storage_bytes":{"type":"integer","minimum":0},"storageBytes":{"type":"integer","minimum":0,"deprecated":true},"file_count":{"type":"integer","minimum":0},"fileCount":{"type":"integer","minimum":0,"deprecated":true},"preview_hostname":{"type":"string"},"previewHostname":{"type":"string","deprecated":true},"promoted":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time","deprecated":true},"operation_id":{"type":["string","null"],"description":"The deploy operation that created it; poll GET /v1/operations/{operation_id}. Null for older rows without one."},"progress":{"type":"object","required":["files_written","files_total"],"properties":{"files_written":{"type":"integer","minimum":0},"files_total":{"type":"integer","minimum":0}}}}}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"description":"Required on POST, PUT, PATCH, and DELETE. Reuse the same key to retry the same request. A different body with the same key is a conflict.","schema":{"type":"string","minLength":8,"maxLength":255}},"Limit":{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 100 (default 50). Anything else is a 400.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},"Cursor":{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page. A value this API did not hand out is a 400.","schema":{"type":"string"}},"IncludeRevoked":{"name":"include_revoked","in":"query","required":false,"description":"GET /v1/tokens only: also list revoked tokens.","schema":{"type":"boolean","default":false}}},"responses":{"Unauthorized":{"description":"unauthorized: no credential, or the token is revoked or unknown. The WWW-Authenticate header names the scheme.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer realm"}}},"Forbidden":{"description":"forbidden (the token lacks a scope; the detail names it), owner-only (only the owner in the dashboard can do this) or session-required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"NotFound":{"description":"not-found: no such thing on this account. An unknown id and another account's id read the same.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"RateLimited":{"description":"rate-limited: the detail names the limit and its window. Wait for Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds."}}},"IdempotencyConflict":{"description":"idempotency-key-reused: the Idempotency-Key was used for a different request (another method, path or body). idempotency-in-progress: the first request with this key is still running; retry the same request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An aih_pat_ API token (create one in the dashboard under Account) or an OAuth access token, in Authorization: Bearer. Each operation lists the scope it needs."},"oauth2":{"type":"oauth2","description":"OAuth 2.1 with PKCE (authorization code) and the device grant. Register a client with POST /oauth/register first; a client must list the device grant to use it.","flows":{"authorizationCode":{"authorizationUrl":"/oauth/authorize","tokenUrl":"/oauth/token","refreshUrl":"/oauth/token","scopes":{"account:read":"See your account, plan, invoices and tokens.","account:write":"Change your plan and payment settings, tokens and webhooks.","sites:read":"See your sites, their files, domains and logs.","sites:write":"Create, publish and change sites and domains."}},"deviceCode":{"deviceAuthorizationUrl":"/oauth/device","tokenUrl":"/oauth/token","scopes":{"account:read":"See your account, plan, invoices and tokens.","account:write":"Change your plan and payment settings, tokens and webhooks.","sites:read":"See your sites, their files, domains and logs.","sites:write":"Create, publish and change sites and domains."}}}},"sessionCookie":{"type":"apiKey","in":"cookie","name":"session","description":"The owner's browser session (the dashboard). A session holds every scope. Operations marked session only accept nothing else: a token answers 403 owner-only."}}}}