turbopress · OpenAPI 3.1.0

turbopress Hosting API

Version 1.0.0 · Basis-URL https://panel.turbopress.de/api/v1

Diese Referenz beschreibt den v1-Vertrag der turbopress-Hosting-API. Die API steht für Hosting-Konten zur Verfügung; ein Token erstellst du im Panel unter „API & KI-Zugriff“. Anleitungen findest du in der Wissensdatenbank.

OpenAPI-JSON aus der kanonischen Quelle · Tokenverwaltung: index.php?m=turbopress_mcp im Kundenkonto unter „API & KI-Zugriff“

Zugang und Betrieb

Bearer-Token mit Präfix tpapi_; Rechte und konkrete Sites werden beim Erstellen gewählt. API- und SSH-Zugang sind getrennt. Alle schreibenden Requests benötigen Idempotency-Key (16–128 druckbare ASCII-Zeichen). Gültigkeitsfenster: 24 Stunden; Jobs/Status: 30 Tage. unknown bedeutet unklare Wirkung – nicht blind erneut ausführen.

Pro Konto: 60 Requests/Minute, fünf neue Schreiboperationen/Minute, höchstens zwei parallele Jobs; zusätzliche Tageslimits gelten weiter. Ein 202 ist eine Annahme, kein Abschluss. Retry-After und mindestens fünf Sekunden Pollingabstand beachten. Berechtigungen und Zielfähigkeiten können je Tarif und Installation abweichen. WordPress-Codeübertragung erfolgt über gesonderten SSH-Zugang; ZIP-Artefaktupload für WordPress gehört nicht zu v1.

Endpunktdetails

GET https://panel.turbopress.de/api/v1/sites

List authorized sites

Permission: sites:read

Parameter

  • limit (query)
  • cursor (query): Opaque cursor from the preceding response
  • client_id (query): Only sites of this customer; 'none' = sites without customer. Requires clients:read and the agency API (else 403 permission_denied / feature_not_enabled); invalid value 400 invalid_arguments.

Antworten

  • 200 Visible sites and next cursor
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target; GET /sites with client_id may also answer permission_denied or feature_not_enabled
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listSites",
    "summary": "List authorized sites",
    "x-permission": "sites:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Visible sites and next cursor",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SiteListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target; GET /sites with client_id may also answer permission_denied or feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 50
            }
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response"
        },
        {
            "name": "client_id",
            "in": "query",
            "schema": {
                "type": "string",
                "pattern": "^([1-9][0-9]{0,9}|none)$"
            },
            "description": "Only sites of this customer; 'none' = sites without customer. Requires clients:read and the agency API (else 403 permission_denied / feature_not_enabled); invalid value 400 invalid_arguments."
        }
    ]
}

GET https://panel.turbopress.de/api/v1/sites/{site_id}

Get a site

Permission: sites:read

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name

Antworten

  • 200 Site status, capabilities and details
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getSite",
    "summary": "Get a site",
    "x-permission": "sites:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Site status, capabilities and details",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SiteResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        }
    ]
}

GET https://panel.turbopress.de/api/v1/sites/{site_id}/backups

List backups for this WordPress installation, newest first

Permission: backups:read

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • limit (query)
  • cursor (query): Opaque cursor from the preceding response

Antworten

  • 200 Backups and next cursor
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listBackups",
    "summary": "List backups for this WordPress installation, newest first",
    "description": "Sorted newest first by created_at; backups without a known date come last. created_at (UTC) and size_bytes are null if WP Toolkit does not report them.",
    "x-permission": "backups:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Backups and next cursor",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/BackupListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 50
            }
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response"
        }
    ]
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/backups

Queue a WordPress backup

Permission: backups:create

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.

Antworten

  • 202 Backup operation queued
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "createBackup",
    "summary": "Queue a WordPress backup",
    "x-permission": "backups:create",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Backup operation queued",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ]
}

GET https://panel.turbopress.de/api/v1/sites/{site_id}/updates

List the open updates of this WordPress installation

Permission: updates:read

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name

Antworten

  • 200 Open updates
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Not a WordPress site (capability_unavailable)
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 502 Update state could not be read (updates_unavailable) or hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listUpdates",
    "summary": "List the open updates of this WordPress installation",
    "description": "Live read on every call (no cache): wp-cli on the installation reports plugin and theme updates and the offered WordPress core version. plugins and themes list only updates that are open right now, sorted by slug, at most 200 entries each; entries whose slug the update endpoint could not address are left out. core.current is read live from the installation (wp core version); null if that read fails or prints no valid version (never a stale inventory value); core.available is null if no core update is offered. If the state cannot be read the answer is 502 updates_unavailable, never an empty list. Only for WordPress sites (422 capability_unavailable otherwise).",
    "x-permission": "updates:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Open updates",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/UpdatesResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Not a WordPress site (capability_unavailable)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Update state could not be read (updates_unavailable) or hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        }
    ]
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/updates

Update plugins and themes (queued job, safety backup first)

Permission: updates:run

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/UpdatesRunRequest"
            }
        }
    }
}

Antworten

  • 202 Update job accepted
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 core_update_not_supported, too_many_items, item_not_installed, backup_limit_reached or capability_unavailable
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "runUpdates",
    "summary": "Update plugins and themes (queued job, safety backup first)",
    "x-permission": "updates:run",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Update job accepted",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "core_update_not_supported, too_many_items, item_not_installed, backup_limit_reached or capability_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/UpdatesRunRequest"
                }
            }
        }
    },
    "description": "Queues one job (202 + Operation kind updates:run). Body: 1 to 5 items {type: plugin|theme, slug}, no duplicates; WordPress core is not supported (a request with a core key or an item of type core is rejected with 422 core_update_not_supported, more than 5 items with 422 too_many_items). Rejected up front without a job: 422 item_not_installed (an item is not installed), 422 backup_limit_reached (the installation has reached its backup limit; delete a backup first), 502 updates_unavailable. The job takes exactly one safety backup, then updates the items one by one and reads each version back. The operation result is {safety_backup: file name or null, items: [{type, slug, from, to, status}]} with status updated, unchanged, failed, skipped or unconfirmed; it is also present on failed and unknown operations. Job budget 360 s from the start of the handler (the safety-backup wait is part of it); an item is only started with at least 180 s left (120 s update call + 60 s read-back), otherwise it is skipped and the operation ends failed with time_budget_exhausted. Failed codes: safety_backup_pending / safety_backup_failed (no update was started), backup_limit_reached, daily_limit, item_not_installed, update_failed, time_budget_exhausted. An unconfirmed result ends unknown. Daily limit 30 runs per account, shared with the AI access."
}

DELETE https://panel.turbopress.de/api/v1/sites/{site_id}/backups/{backup_id}

Queue the permanent deletion of one backup

Permission: backups:delete

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • backup_id (path, Pflicht): Backup id from GET /sites/{site_id}/backups (the file name)
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.

Antworten

  • 202 Deletion operation queued
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target, backup (error code backup_not_found) or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target: backup_protected (newest backup of the site), backup_in_use (a backup is being created or its outcome is unclear), or capability_unavailable (not a WordPress site)
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "deleteBackup",
    "summary": "Queue the permanent deletion of one backup",
    "x-permission": "backups:delete",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Deletion operation queued",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target, backup (error code backup_not_found) or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target: backup_protected (newest backup of the site), backup_in_use (a backup is being created or its outcome is unclear), or capability_unavailable (not a WordPress site)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "backup_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Backup id from GET /sites/{site_id}/backups (the file name)"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "description": "Irreversible. The backup is removed from the WordPress installation as an asynchronous operation (kind backups:delete). backup_id is the id returned by GET /sites/{site_id}/backups (path-encoding of + and : is optional). Two rules protect the site: the newest backup is never deleted (422 backup_protected), and no backup is deleted while a backup is being created or its outcome is unclear (422 backup_in_use). Both rules are checked when the request arrives and again when the operation runs; in the second case the operation ends as failed with the same error_code. An unknown id is 404 backup_not_found. A repeated request with the same Idempotency-Key returns the same operation and never deletes twice. The result of a succeeded operation is {filename, remaining_backups, deletion_verified: true}; if the deletion could not be confirmed, the operation ends as unknown."
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/cache/purge

Queue a cache purge

Permission: cache:purge

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/CachePurgeRequest"
            }
        }
    }
}

Antworten

  • 202 Purge operation queued
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "purgeCache",
    "summary": "Queue a cache purge",
    "x-permission": "cache:purge",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Purge operation queued",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/CachePurgeRequest"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/operations

List the operations created with this token, newest first

Permission: original operation permission

Parameter

  • site_id (query): Only operations of this site; must be a target of the token (otherwise 404 site_not_found)
  • status (query)
  • limit (query)
  • cursor (query): Opaque cursor from the preceding response; valid only for the same token and the same site_id and status filters

Antworten

  • 200 Operations and next cursor
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listOperations",
    "summary": "List the operations created with this token, newest first",
    "description": "Returns only operations that this token created, for sites that are still among its targets and whose original permission the token (and its issuing user) still holds. Other tokens, other accounts and other sites never appear, and the page boundary depends on visible rows only. No hosting backend is contacted. Does not count as a poll of the individual operations.",
    "x-permission": "original operation permission",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Operations and next cursor",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Only operations of this site; must be a target of the token (otherwise 404 site_not_found)"
        },
        {
            "name": "status",
            "in": "query",
            "schema": {
                "type": "string",
                "enum": [
                    "queued",
                    "running",
                    "succeeded",
                    "failed",
                    "unknown"
                ]
            }
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 20
            }
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response; valid only for the same token and the same site_id and status filters"
        }
    ]
}

GET https://panel.turbopress.de/api/v1/operations/{id}

Get operation state; original permission and current target access are rechecked

Permission: original operation permission

Parameter

  • id (path, Pflicht)

Antworten

  • 200 Operation state
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getOperation",
    "summary": "Get operation state; original permission and current target access are rechecked",
    "x-permission": "original operation permission",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Operation state",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            }
        }
    ]
}

GET https://panel.turbopress.de/api/v1/token

Describe the calling token (metadata only, never the secret or its hash)

Permission: none (any valid token)

Antworten

  • 200 Token metadata
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getToken",
    "summary": "Describe the calling token (metadata only, never the secret or its hash)",
    "x-permission": "none (any valid token)",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Token metadata",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/TokenInfoResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/deployments

Open an AI Launch deployment

Permission: static:deploy

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.

Antworten

  • 201 Deployment opened
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 500 Server-side hosting context is incomplete (invalid_context); contact support with the request ID
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "createDeployment",
    "summary": "Open an AI Launch deployment",
    "x-permission": "static:deploy",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "201": {
            "description": "Deployment opened",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/DeploymentResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "500": {
            "description": "Server-side hosting context is incomplete (invalid_context); contact support with the request ID",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ]
}

GET https://panel.turbopress.de/api/v1/sites/{site_id}/deployments

List AI Launch deployments

Permission: static:deploy

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • limit (query)
  • cursor (query): Opaque cursor from the preceding response

Antworten

  • 200 Deployments and next cursor
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 500 Server-side hosting context is incomplete (invalid_context); contact support with the request ID
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listDeployments",
    "summary": "List AI Launch deployments",
    "x-permission": "static:deploy",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Deployments and next cursor",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/DeploymentListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "500": {
            "description": "Server-side hosting context is incomplete (invalid_context); contact support with the request ID",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 50
            }
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response"
        }
    ]
}

PUT https://panel.turbopress.de/api/v1/sites/{site_id}/deployments/{id}/files

Add or replace a deployment file

Permission: static:deploy

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • id (path, Pflicht)
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/DeploymentFileRequest"
            }
        }
    }
}

Antworten

  • 200 File recorded
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 500 Server-side hosting context is incomplete (invalid_context); contact support with the request ID
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "putDeploymentFile",
    "summary": "Add or replace a deployment file",
    "x-permission": "static:deploy",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "File recorded",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/DeploymentFileResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "500": {
            "description": "Server-side hosting context is incomplete (invalid_context); contact support with the request ID",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/DeploymentFileRequest"
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/deployments/{id}/preview

Validate deployment and return preview

Permission: static:deploy

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • id (path, Pflicht)
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.

Antworten

  • 200 Validation report and preview
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.
  • 500 Server-side hosting context is incomplete (invalid_context); contact support with the request ID
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "previewDeployment",
    "summary": "Validate deployment and return preview",
    "x-permission": "static:deploy",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "200": {
            "description": "Validation report and preview",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/DeploymentPreviewResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "500": {
            "description": "Server-side hosting context is incomplete (invalid_context); contact support with the request ID",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ]
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/deployments/{id}/publish

Queue deployment publication

Permission: static:deploy

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • id (path, Pflicht)
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.

Antworten

  • 202 Publish operation queued
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 500 Server-side hosting context is incomplete (invalid_context); contact support with the request ID
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "publishDeployment",
    "summary": "Queue deployment publication",
    "x-permission": "static:deploy",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Publish operation queued",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "500": {
            "description": "Server-side hosting context is incomplete (invalid_context); contact support with the request ID",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ]
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/deployments/{id}/rollback

Queue rollback to a previous static version

Permission: static:deploy

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • id (path, Pflicht)
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.

Antworten

  • 202 Rollback operation queued
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict or concurrent operation
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 Operation rejected for this target
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 500 Server-side hosting context is incomplete (invalid_context); contact support with the request ID
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "rollbackDeployment",
    "summary": "Queue rollback to a previous static version",
    "x-permission": "static:deploy",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Rollback operation queued",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Operation rejected for this target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "500": {
            "description": "Server-side hosting context is incomplete (invalid_context); contact support with the request ID",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ]
}

GET https://panel.turbopress.de/api/v1/status

Anonymous API status (no token needed)

Permission: none (anonymous)

Antworten

  • 200 API is reachable; status is draining while the API accepts no new changes (reads and polling continue)
  • 405 Method not allowed for this route
  • 429 Per client IP limit (rate_limited): this route needs no token but counts toward the IP request limit. Retry-After gives the seconds to wait.
  • 503 API switched off (api_unavailable) or hosting unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getStatus",
    "summary": "Anonymous API status (no token needed)",
    "description": "Health and intake state for monitors and CI. No authentication, no account data, no audit entry; the per-IP request limit applies. While the API is switched off this route answers 503 api_unavailable like every other route.",
    "x-permission": "none (anonymous)",
    "security": [],
    "responses": {
        "200": {
            "description": "API is reachable; status is draining while the API accepts no new changes (reads and polling continue)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/StatusResponse"
                    }
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "429": {
            "description": "Per client IP limit (rate_limited): this route needs no token but counts toward the IP request limit. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                }
            }
        },
        "503": {
            "description": "API switched off (api_unavailable) or hosting unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    }
}

DELETE https://panel.turbopress.de/api/v1/sites/{site_id}/staging

Delete the staging copy of this live site (queued job, irreversible)

Permission: staging:delete

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • confirm (query, Pflicht): Host of the staging site, e.g. staging.example.com
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.

Antworten

  • 202 Staging deletion job accepted
  • 400 Invalid syntax, JSON, cursor or idempotency key
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible; staging_not_found if the site has no staging copy
  • 409 Idempotency conflict or concurrent operation
  • 422 confirmation_mismatch, staging_in_use or capability_unavailable
  • 429 Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "deleteStaging",
    "summary": "Delete the staging copy of this live site (queued job, irreversible)",
    "x-permission": "staging:delete",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Staging deletion job accepted",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, cursor or idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible; staging_not_found if the site has no staging copy",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict or concurrent operation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "confirmation_mismatch, staging_in_use or capability_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable; also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "confirm",
            "in": "query",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Host of the staging site, e.g. staging.example.com"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "description": "Addressed through the LIVE site, which must be a target of the token (the staging site need not be). confirm must equal the host of the staging site exactly (ASCII; IDN hosts in punycode). The staging copy is found only by the staging rule (host staging.<main domain>, same package); the live site can never be deleted. Rejected up front: 404 staging_not_found, 422 confirmation_mismatch, 422 staging_in_use (a backup or update is open). Result of a succeeded operation: {staging_host, deleted: true, subdomain_removed}. An unconfirmed result ends unknown. Daily limit 5 per account, shared with the AI access."
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/staging

Create the staging copy of this live site (queued job)

Permission: staging:create

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/EmptyRequest"
            }
        }
    }
}

Antworten

  • 202 Staging creation job accepted
  • 400 Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict, staging_exists, or site_busy
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 capability_unavailable (a staging site), no_live_instance or storage_insufficient
  • 429 Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "createStaging",
    "summary": "Create the staging copy of this live site (queued job)",
    "x-permission": "staging:create",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Staging creation job accepted",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict, staging_exists, or site_busy",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "capability_unavailable (a staging site), no_live_instance or storage_insufficient",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/EmptyRequest"
                }
            }
        }
    },
    "description": "Queues one job (202 + Operation kind staging:create) that creates the one staging copy `staging.<main domain>` of the LIVE site (a staging site cannot be the source; the site must be a target of the token). Body: {} only; the name is fixed and cannot be chosen. Runs in the WP-Cockpit worker (see the delegation notes) under the shared site lock with a reservation: subdomain, clone (WP Toolkit), read-back of the new installation, best-effort SSL. Rejected up front without a job: 422 capability_unavailable (a staging site), 422 no_live_instance, 409 staging_exists (a copy exists, or the subdomain staging.<main domain> already exists without a copy, for example left by a refused clone: remove it in the panel or ask Support, DELETE /sites/{site_id}/staging cannot because there is no installation; this check costs no daily limit), 422 storage_insufficient (the webspace measurably has too little room; an unmeasurable quota is not a refusal), 502 preparation_failed (the subdomain could not be checked; nothing was changed), 409 site_busy, 429 daily_limit (the API enforces 3 a day and account; creations through chat, MCP and Cockpit count on the same counter, and API creations count against their limit of 5), 503 delegation_unavailable. Result on success {staging_host, ssl: issued|failed|unconfirmed, staging_site_id: site id or null}. staging_site_id is the id to select when you issue a token for the new site (null when it could not be determined; it then appears in the token form after the sites are refreshed). The new site is not a target of existing tokens. failed clone_failed: WP Toolkit refused the clone, the empty subdomain stays (result {staging_host, subdomain_left: true}) and has to be removed in the panel or by Support; until then every new request is refused up front as staging_exists without using the daily limit. unknown clone_unconfirmed: the clone was started but the new installation was not seen; the site stays locked until Support settles it. Other unknown codes: staging_outcome_unknown (the answer of Plesk to the subdomain creation was a connection error or not clearly readable; the subdomain may exist and the site stays locked until Support has settled it), effect_uncertain, worker_lost, backend_timeout, unconfirmed_result. Failed before any change (the site is not locked afterwards): staging_exists, storage_insufficient, preparation_failed (an error before the first step), subdomain_creation_failed (only for a clear error message of Plesk), daily_limit, site_busy, service_unavailable, access_removed, token_inactive, api_unavailable, delegation_not_started, job_expired. There is no safety backup (nothing of the live site is changed)."
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/backups/{backup_id}/restore

Restore a backup over the site (queued job, overwrites the site, safety backup first)

Permission: backups:restore

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • backup_id (path, Pflicht): Backup id from GET /sites/{site_id}/backups (the file name)
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/BackupRestoreRequest"
            }
        }
    }
}

Antworten

  • 202 Restore job accepted
  • 400 Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target, backup (error code backup_not_found) or operation not found or not accessible
  • 409 Idempotency conflict, or site_busy (another operation, automatic update, support lock or reservation on the subscription)
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 confirmation_mismatch, woo_confirmation_missing, backup_limit_reached, backup_in_use, service_unavailable or capability_unavailable
  • 429 Rate limit exceeded or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "restoreBackup",
    "summary": "Restore a backup over the site (queued job, overwrites the site, safety backup first)",
    "x-permission": "backups:restore",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Restore job accepted",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target, backup (error code backup_not_found) or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict, or site_busy (another operation, automatic update, support lock or reservation on the subscription)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "confirmation_mismatch, woo_confirmation_missing, backup_limit_reached, backup_in_use, service_unavailable or capability_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "backup_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Backup id from GET /sites/{site_id}/backups (the file name)"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/BackupRestoreRequest"
                }
            }
        }
    },
    "description": "Queues one job (202 + Operation kind backups:restore) that overwrites the site with a backup. OVERWRITES the website: everything written after the backup is lost (for scope full or database that includes WooCommerce orders and customers). The job runs in the WP-Cockpit worker, takes exactly one safety backup first and restores only when that backup is confirmed. Body: scope (required): full = the whole backup as a WP Toolkit restore task, database = only the database, files = only the files (newer files stay, wp-config.php is never replaced), folder = one wp-content folder, mirrored to the state of the backup (files not in the backup are deleted from that folder); folder (required with scope folder only): wp-content/uploads, wp-content/plugins/<slug> or wp-content/themes/<slug>; confirm_host (required): the exact host of this site (restores overwrite); confirm_data_loss (boolean, default false): must be true for scope full or database when WooCommerce is active on the site (an unreadable plugin list counts as active). backup_id must be a backup of this very installation (a staging copy's backups are only restorable through the staging site). Rejected up front without a job: 400 invalid_scope / invalid_folder / invalid_arguments, 403 permission_denied, 404 backup_not_found, 422 confirmation_mismatch, woo_confirmation_missing, backup_limit_reached (delete a backup first), backup_in_use, service_unavailable, 409 site_busy (another operation, automatic update, support lock or reservation on the subscription), 429 daily_limit (3 full and 3 partial restores per day and account, shared with the AI access), 503 delegation_unavailable. Result {safety_backup: file name or null, scope, restore_task: succeeded|pending|unknown|failed (full only), health_check: ok|issue_found|not_run (partial only)}; present on succeeded and, where it applies, on failed and unknown operations. succeeded: full needs the restore task seen succeeded; partial needs the finished import and a health check answer (issue_found is still succeeded: the site was restored, a check found a problem; the safety backup is the way back). A full restore whose WP Toolkit task is still running when the job ends stays running while the API polls the task (at most 30 minutes), then ends succeeded, failed restore_failed or unknown restore_pending (the site unlocks itself when the task ends). failed restore_failed: the import tool reported errors, the site may be partly restored (restore the safety backup). unknown (restore_outcome_unknown, restore_pending, effect_uncertain, worker_lost, backend_timeout, unconfirmed_result): the outcome is unclear, check the site; the site stays locked until the outcome is settled (partial restores: until Support releases it). Failed before any change: backup_not_found, confirmation_mismatch, woo_confirmation_missing, backup_limit_reached, safety_backup_pending, safety_backup_failed, daily_limit, site_busy, service_unavailable, backup_unsafe, backup_unreadable, no_database_in_backup, no_files_in_backup, folder_not_in_backup, siteurl_mismatch, siteurl_unreadable, time_budget_exhausted, delegation_not_started, job_expired. There is no automatic rollback."
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/core-update

Update WordPress core (queued job, safety backup first)

Permission: updates:core

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/CoreUpdateRequest"
            }
        }
    }
}

Antworten

  • 202 Core update job accepted
  • 400 Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target or operation not found or not accessible
  • 409 Idempotency conflict, version_changed, or site_busy
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 no_core_update, backup_limit_reached, backup_in_use, service_unavailable or capability_unavailable
  • 429 Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "updateCore",
    "summary": "Update WordPress core (queued job, safety backup first)",
    "x-permission": "updates:core",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Core update job accepted",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict, version_changed, or site_busy",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "no_core_update, backup_limit_reached, backup_in_use, service_unavailable or capability_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/CoreUpdateRequest"
                }
            }
        }
    },
    "description": "Queues one job (202 + Operation kind updates:core) that updates WordPress itself. Runs in the WP-Cockpit worker (see the delegation notes), takes exactly one safety backup first and updates only when that backup is confirmed. Body: {} or {\"expected_version\": \"6.8.3\"} (refuse when another version is offered, 409 version_changed). Rejected up front without a job: 422 no_core_update (core is current), 409 version_changed, 422 backup_limit_reached, backup_in_use, service_unavailable, 409 site_busy, 429 daily_limit (10 a day and account, API only), 502 updates_unavailable, 503 delegation_unavailable. Result {safety_backup: file name or null, from: version or null, to: version or null}; present on failed and unknown operations where it applies. succeeded only when the version read back (up to three tries) is NEWER than the version before; both come from `wp core version` on the installation. core_version_unreadable (failed): the version before could not be read, nothing was done. failed core_not_updated: the call returned but the version is unchanged. failed core_update_failed: the tool reported an error and the version is unchanged. unknown core_update_partial: the tool reported an error but the version changed. unknown (core_version_unconfirmed, core_update_partial, effect_uncertain, worker_lost, backend_timeout, unconfirmed_result): the outcome is unclear; check the site. It stays locked until Support settles it only after effect_uncertain and worker_lost. Failed before any change: no_core_update, version_changed, backup_limit_reached, safety_backup_pending, safety_backup_failed, daily_limit, site_busy, service_unavailable, access_removed, token_inactive, delegation_not_started, job_expired. No automatic rollback. The core update has a 1800 s limit."
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/plugins/{slug}/state

Activate or deactivate one installed plugin (queued job)

Permission: plugins:manage

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • slug (path, Pflicht): Plugin slug (directory name), see GET /sites/{site_id}/updates
  • Idempotency-Key (header, Pflicht): Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/PluginStateRequest"
            }
        }
    }
}

Antworten

  • 202 Plugin switch job accepted
  • 400 Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target, plugin (error code plugin_not_installed) or operation not found or not accessible
  • 409 Idempotency conflict
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 network_activated or capability_unavailable
  • 429 Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "setPluginState",
    "summary": "Activate or deactivate one installed plugin (queued job)",
    "x-permission": "plugins:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Plugin switch job accepted",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, scope, folder, cursor or idempotency key (invalid_scope, invalid_folder, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target, plugin (error code plugin_not_installed) or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "network_activated or capability_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9_.-]{0,61}$"
            },
            "description": "Plugin slug (directory name), see GET /sites/{site_id}/updates"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Retained for 24 hours per account, token, method and route. Reuse after expiry may create a new operation."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/PluginStateRequest"
                }
            }
        }
    },
    "description": "Queues one job (202 + Operation kind plugins:manage) in the API worker under the shared site lock. Body: {\"enabled\": true|false}. Rejected up front without a job: 400 invalid_arguments (slug or enabled), 404 plugin_not_installed, 422 network_activated (a network-activated plugin cannot be deactivated here), 429 daily_limit (20 a day and account, API only), 502 plugins_unavailable. Result {slug, enabled, changed}: succeeded only when the state read back shows the wanted state; a plugin already in that state succeeds with changed=false. A switch that cannot be confirmed ends unknown plugin_state_unconfirmed; a clean tool error ends failed plugin_state_failed. No safety backup is taken. Reading and switching run with --skip-plugins --skip-themes, so a plugin that breaks the site on load can still be deactivated. The API does not stop you from deactivating security or cache plugins or WooCommerce."
}

POST https://panel.turbopress.de/api/v1/sites/{site_id}/staging/push

Overwrite the live site with its staging copy (queued job, safety backup first; dry_run answers at once)

Permission: staging:push

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header): Required unless dry_run is true. Retained for 24 hours per account, token, method and route.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/StagingPushRequest"
            }
        }
    }
}

Antworten

  • 202 Staging push job accepted
  • 400 Invalid syntax, JSON, scope, tables, delete_missing_files, confirm_host or idempotency key (invalid_scope, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Permission denied for a known owned target
  • 404 Target, staging copy (staging_not_found) or operation not found or not accessible
  • 409 Idempotency conflict, staging_ambiguous, or site_busy
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
  • 422 no_live_instance (also a staging site), confirmation_mismatch, woo_confirmation_missing, unknown_table, backup_limit_reached, backup_in_use, service_unavailable or capability_unavailable
  • 429 Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.
  • 502 Hosting backend failed
  • 503 API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)
  • 405 Method not allowed for this route
  • 200 Dry run result (no effect)
Vollständiger OpenAPI-Eintrag
{
    "operationId": "pushStaging",
    "summary": "Overwrite the live site with its staging copy (queued job, safety backup first; dry_run answers at once)",
    "x-permission": "staging:push",
    "security": [
        {
            "apiToken": []
        }
    ],
    "responses": {
        "202": {
            "description": "Staging push job accepted",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/OperationResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "Operation URL",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Minimum polling interval in seconds",
                    "schema": {
                        "type": "integer",
                        "minimum": 5
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, JSON, scope, tables, delete_missing_files, confirm_host or idempotency key (invalid_scope, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Permission denied for a known owned target",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Target, staging copy (staging_not_found) or operation not found or not accessible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Idempotency conflict, staging_ambiguous, or site_busy",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "no_live_instance (also a staging site), confirmation_mismatch, woo_confirmation_missing, unknown_table, backup_limit_reached, backup_in_use, service_unavailable or capability_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded or daily_limit or daily_limit (3 full and 3 partial restores per day and account) (error code rate_limited: per account, or per client IP before authentication, i.e. after 20 failed authentications or after 600 requests per minute from one IP), or the account already has four open jobs (error code queue_full; nothing was created, retry later). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "Hosting backend failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or hosting backend unavailable, or delegation_unavailable (long operations temporarily switched off); also error code api_draining during a maintenance window (new writes are not accepted, Retry-After 120, no job or idempotency entry is created)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Retry-After": {
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "description": "Seconds to wait before retrying (api_draining only)"
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "200": {
            "description": "Dry run result (no effect)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/StagingPushDryRunResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    },
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required unless dry_run is true. Retained for 24 hours per account, token, method and route."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/StagingPushRequest"
                }
            }
        }
    },
    "description": "OVERWRITES THE LIVE SITE with its staging copy (files, database, or selected tables), irreversibly except by restoring the safety backup. The site must be the LIVE site of the pair and must be a target of the token; the staging copy is found by the server (host staging.<main domain>), never named in the request. Body: scope (required) all|files|db|selected; tables (required with selected only, 1 to 1000 distinct names [A-Za-z0-9_]{1,64} that exist in the staging database); delete_missing_files (required, boolean; true only with scope all or files: files on live without a counterpart in staging are deleted); confirm_host (required): the exact host of the live site; confirm_data_loss (boolean, default false): must be true for scope all or db when WooCommerce is active on live (an unreadable plugin list counts as active); dry_run (boolean, default false). Nothing else is accepted. dry_run=true answers 200 and does nothing to the site: no job, no Idempotency-Key needed, no idempotency entry, no daily counter, no backup, no lock. Data: {dry_run, scope, delete_missing_files, pair:{staging_host, live_host}, woocommerce_active: true|false|null, tables: staging tables (at most 1000) or null, missing_tables (selected tables not in staging), backup_quota:{used, limit}|null, storage_ok: true|false|null, busy: null|operation_running|cockpit_busy, daily_limit_reached, staging_newer_than_live: null (not determined)}. A dry run reads synchronously on the server (instance list, table list, plugin list for WooCommerce, storage check), is limited only by the general request limit, and like every POST answers 503 api_draining while the API is drained for maintenance. In a dry run confirm_host, delete_missing_files and confirm_data_loss are optional and only informative. Otherwise queues one job (202 + Operation kind staging:push). It runs in the WP-Cockpit worker (see the delegation notes) under the shared site lock with a reservation, takes exactly one safety backup of the LIVE site first and copies only when that backup is confirmed with its exact file name, then clears the cache and runs a health check of the live site. Rejected up front without a job: 400 invalid_scope / invalid_arguments, 403 permission_denied, 404 staging_not_found, 409 staging_ambiguous, 422 no_live_instance (also: a staging site), confirmation_mismatch, woo_confirmation_missing, unknown_table, backup_limit_reached, backup_in_use, service_unavailable, 409 site_busy, 429 daily_limit (5 a day and account, shared with the panel), 502 tables_unreadable, 503 delegation_unavailable. Result {safety_backup:{filename, created_at}, health_check: ok|issue_found|not_run, scope, delete_missing_files}; present on failed and unknown operations where it applies (health_check only on success). succeeded needs the named safety backup and a health check answer; issue_found is still succeeded (the copy happened, the check found a problem; the safety backup is the way back). failed copy_failed: WP Toolkit reported the copy failed after the live site may have been partly changed; restore the safety backup. unknown (copy_outcome_unknown, effect_uncertain, backup_outcome_unknown, worker_lost, backend_timeout, backend_job_missing, unconfirmed_result): the outcome is unclear, check the live site; the site stays locked until Support settles it. unknown site_binding_changed: the copy was proven and a fresh read shows that the live installation identity changed, so the public site_id no longer matches it (only then); the site is NOT locked; check the site and request a new token if needed. unknown binding_unconfirmed: the copy was proven but the binding could not be read right afterwards; the site is NOT locked; check the site. A token revoked, rights changed or the API switched off while the copy ran leave the proven result succeeded. The staging instance is bound when the request is accepted: if the copy is deleted and recreated before the job runs, the operation fails with pair_changed before the safety backup and nothing is copied (operations accepted before this binding existed run without it). Failed before any change to live: confirmation_mismatch, woo_confirmation_missing, pair_changed, unknown_table, tables_unreadable, backup_limit_reached, safety_backup_failed, time_budget_exhausted, daily_limit, site_busy, service_unavailable, access_removed, token_inactive, api_unavailable, delegation_not_started, job_expired. Two codes report failed but leave the site LOCKED (nothing was copied to live): safety_backup_pending (the safety backup still runs; the site stays reserved until that task is settled) and backup_filename_unavailable (the backup was made but its exact file name could not be determined; the reservation stays unknown until Support releases it). There is no automatic rollback."
}

GET https://panel.turbopress.de/api/v1/clients

List customers of the agency account

Permission: clients:read

Parameter

  • limit (query): Page size
  • cursor (query): Opaque cursor from the preceding response; only valid for the same token, scope and filters

Antworten

  • 200 Customers and next cursor
  • 400 Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (token lacks clients:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)
  • 404 Not used for the list (kept for a uniform contract)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listClients",
    "summary": "List customers of the agency account",
    "description": "Requires the agency API to be enabled for the account. Account tokens see all customers, client tokens only their customer, site tokens none. Sorted by name; site_count counts sites within the token's scope.",
    "x-permission": "clients:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 50
            },
            "description": "Page size"
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response; only valid for the same token, scope and filters"
        }
    ],
    "responses": {
        "200": {
            "description": "Customers and next cursor",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ClientListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token lacks clients:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Not used for the list (kept for a uniform contract)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/clients

Create a customer

Permission: clients:write

Parameter

  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/ClientCreateRequest"
            }
        }
    }
}

Antworten

  • 201 Customer created
  • 400 Invalid body, field or Idempotency-Key (invalid_arguments with error.field, invalid_json, invalid_idempotency_key)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (token lacks clients:write, is not account-wide, or the issuing user is no longer linked) and feature_not_enabled
  • 405 Method not allowed for this route
  • 409 name_taken, or idempotency_conflict / idempotency_unknown for the key
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "createClient",
    "summary": "Create a customer",
    "description": "Requires clients:write and an account-wide token (a client token gets 403 permission_denied). Needs the Idempotency-Key header. The name must be unique in the account, ignoring case (409 name_taken).",
    "x-permission": "clients:write",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/ClientCreateRequest"
                }
            }
        }
    },
    "responses": {
        "201": {
            "description": "Customer created",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ClientWriteResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid body, field or Idempotency-Key (invalid_arguments with error.field, invalid_json, invalid_idempotency_key)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token lacks clients:write, is not account-wide, or the issuing user is no longer linked) and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "name_taken, or idempotency_conflict / idempotency_unknown for the key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/clients/{client_id}

Get one customer with sites and worked time

Permission: clients:read

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients

Antworten

  • 200 Customer detail
  • 400 Invalid client_id is answered with 404 client_not_found; 400 is only used for other syntax errors
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (token lacks clients:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)
  • 404 Error code client_not_found (unknown, foreign or outside the token's scope)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getClient",
    "summary": "Get one customer with sites and worked time",
    "x-permission": "clients:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        }
    ],
    "responses": {
        "200": {
            "description": "Customer detail",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ClientResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid client_id is answered with 404 client_not_found; 400 is only used for other syntax errors",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token lacks clients:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code client_not_found (unknown, foreign or outside the token's scope)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

PATCH https://panel.turbopress.de/api/v1/clients/{client_id}

Change a customer

Permission: clients:write

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/ClientUpdateRequest"
            }
        }
    }
}

Antworten

  • 200 Updated customer
  • 400 Invalid or empty body, field or Idempotency-Key (invalid_arguments with error.field)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 Error code client_not_found (unknown, foreign or outside the token's scope)
  • 405 Method not allowed for this route
  • 409 name_taken, or idempotency_conflict / idempotency_unknown for the key
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "updateClient",
    "summary": "Change a customer",
    "description": "Requires clients:write. Client tokens may change only their own customer. Renaming also renames the customer on all its sites. The customer for own sites can be changed except own_sites itself. Needs the Idempotency-Key header.",
    "x-permission": "clients:write",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/ClientUpdateRequest"
                }
            }
        }
    },
    "responses": {
        "200": {
            "description": "Updated customer",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ClientWriteResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid or empty body, field or Idempotency-Key (invalid_arguments with error.field)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code client_not_found (unknown, foreign or outside the token's scope)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "name_taken, or idempotency_conflict / idempotency_unknown for the key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

DELETE https://panel.turbopress.de/api/v1/clients/{client_id}

Delete a customer

Permission: clients:write

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/ClientDeleteRequest"
            }
        }
    }
}

Antworten

  • 200 Customer deleted, with counts
  • 400 Invalid body or Idempotency-Key
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (also for client tokens) and feature_not_enabled
  • 404 Error code client_not_found
  • 405 Method not allowed for this route
  • 409 idempotency_conflict / idempotency_unknown for the key
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 422 confirmation_mismatch (confirm missing or not the exact name) or own_sites_protected
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "deleteClient",
    "summary": "Delete a customer",
    "description": "Requires clients:write and an account-wide token. The body must carry confirm with the exact customer name. Removes the customer, its work log, report rows and share links; its sites stay and become unassigned. The customer for own sites cannot be deleted. Needs the Idempotency-Key header.",
    "x-permission": "clients:write",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/ClientDeleteRequest"
                }
            }
        }
    },
    "responses": {
        "200": {
            "description": "Customer deleted, with counts",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ClientDeletedResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid body or Idempotency-Key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (also for client tokens) and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code client_not_found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "idempotency_conflict / idempotency_unknown for the key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "confirmation_mismatch (confirm missing or not the exact name) or own_sites_protected",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/plugins

Plugin fleet overview across the token's sites

Permission: plugins:read

Parameter

  • limit (query): Page size
  • cursor (query): Opaque cursor from the preceding response; only valid for the same token, scope and filters
  • state (query): Only plugins in this state
  • premium (query): 1 = only premium plugins (license.kind premium)

Antworten

  • 200 Plugins, counts and next cursor
  • 400 Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)
  • 404 Not used for the list (kept for a uniform contract)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listPlugins",
    "summary": "Plugin fleet overview across the token's sites",
    "description": "Aggregated from the Cockpit's last plugin read per site; meta.as_of is the oldest read time and meta.unreadable_sites lists sites whose last read failed. Sorted by slug.",
    "x-permission": "plugins:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 50
            },
            "description": "Page size"
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response; only valid for the same token, scope and filters"
        },
        {
            "name": "state",
            "in": "query",
            "schema": {
                "type": "string",
                "enum": [
                    "vulnerable",
                    "update",
                    "ok",
                    "inactive"
                ]
            },
            "description": "Only plugins in this state"
        },
        {
            "name": "premium",
            "in": "query",
            "schema": {
                "type": "string",
                "enum": [
                    "1"
                ]
            },
            "description": "1 = only premium plugins (license.kind premium)"
        }
    ],
    "responses": {
        "200": {
            "description": "Plugins, counts and next cursor",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/PluginListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Not used for the list (kept for a uniform contract)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/plugins/{slug}

One plugin across the token's sites

Permission: plugins:read

Parameter

  • slug (path, Pflicht): Plugin slug (case-insensitive); the response carries the stored spelling

Antworten

  • 200 Plugin with per-site rows
  • 400 Invalid plugin slug (invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)
  • 404 Error code plugin_not_found (not installed on any site in the token's scope)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getPlugin",
    "summary": "One plugin across the token's sites",
    "x-permission": "plugins:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9_.-]{0,61}$"
            },
            "description": "Plugin slug (case-insensitive); the response carries the stored spelling"
        }
    ],
    "responses": {
        "200": {
            "description": "Plugin with per-site rows",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/PluginResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid plugin slug (invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code plugin_not_found (not installed on any site in the token's scope)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/sites/{site_id}/plugins

Plugins installed on one site (last read)

Permission: plugins:read

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name

Antworten

  • 200 Plugins of the site
  • 400 Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)
  • 404 Error code site_not_found (unknown or outside the token's targets)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listSitePlugins",
    "summary": "Plugins installed on one site (last read)",
    "description": "A site in scope that was never read, or is not in the Cockpit inventory, answers 200 with an empty list and reason 'never_read' or 'not_in_inventory'.",
    "x-permission": "plugins:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        }
    ],
    "responses": {
        "200": {
            "description": "Plugins of the site",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SitePluginsResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code site_not_found (unknown or outside the token's targets)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/licenses

Licence overview per plugin

Permission: plugins:read

Parameter

  • limit (query): Page size
  • cursor (query): Opaque cursor from the preceding response; only valid for the same token, scope and filters

Antworten

  • 200 Licences and next cursor
  • 400 Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)
  • 404 Not used for the list (kept for a uniform contract)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listLicenses",
    "summary": "Licence overview per plugin",
    "description": "Licence data entered or detected by the Cockpit. In this resource 'kind' is the agency's free-text licence type; GET /plugins reports license.kind as premium or free. Keys are never returned.",
    "x-permission": "plugins:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 50
            },
            "description": "Page size"
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response; only valid for the same token, scope and filters"
        }
    ],
    "responses": {
        "200": {
            "description": "Licences and next cursor",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/LicenseListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid syntax, limit, cursor or query parameter (invalid_limit, invalid_cursor, invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token lacks plugins:read or the issuing user is no longer linked) and feature_not_enabled (agency API is not enabled for this account)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Not used for the list (kept for a uniform contract)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "API or agency feature unavailable: error code api_unavailable, or feature_unavailable when the Cockpit data source is missing or failed.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

PUT https://panel.turbopress.de/api/v1/sites/{site_id}/client

Assign a site to a customer or remove the assignment

Permission: clients:write

Parameter

  • site_id (path, Pflicht): Opaque public site identifier; never a domain name
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/SiteClientRequest"
            }
        }
    }
}

Antworten

  • 200 Assignment after the call
  • 400 Invalid or empty body, field or Idempotency-Key (invalid_arguments with error.field)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 Error codes site_not_found (unknown, foreign or outside the token's scope) and client_not_found (unknown, foreign or not allowed for the token)
  • 405 Method not allowed for this route
  • 409 idempotency_conflict / idempotency_unknown for the key
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 422 Error code site_not_in_inventory (the site is known to the API but not yet in the agency inventory)
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "setSiteClient",
    "summary": "Assign a site to a customer or remove the assignment",
    "description": "Requires clients:write; account-wide and customer tokens only. Body client_id is a customer id from GET /clients (as string) or null to remove the assignment. The customer for own sites is a valid target. A customer token may only remove the assignment or keep the site with its own customer; after removal the site is no longer in its scope. Needs the Idempotency-Key header. changed is false when nothing changed (no audit entry).",
    "x-permission": "clients:write",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string"
            },
            "description": "Opaque public site identifier; never a domain name"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/SiteClientRequest"
                }
            }
        }
    },
    "responses": {
        "200": {
            "description": "Assignment after the call",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SiteClientResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid or empty body, field or Idempotency-Key (invalid_arguments with error.field)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error codes site_not_found (unknown, foreign or outside the token's scope) and client_not_found (unknown, foreign or not allowed for the token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "idempotency_conflict / idempotency_unknown for the key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Error code site_not_in_inventory (the site is known to the API but not yet in the agency inventory)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/clients/{client_id}/work-entries

List the work log of a customer for one month

Permission: clients:read

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • month (query): Month as YYYY-MM; default: current month (Europe/Berlin)
  • limit (query): Page size
  • cursor (query): Opaque cursor from the preceding response; only valid for the same token, customer and month

Antworten

  • 200 Entries, month totals and next cursor
  • 400 Invalid month, limit or cursor (invalid_arguments with error.field, invalid_limit, invalid_cursor)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 Error code client_not_found (unknown, foreign or not allowed for the token)
  • 405 Method not allowed for this route
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listWorkEntries",
    "summary": "List the work log of a customer for one month",
    "description": "Requires clients:read. Entries of one calendar month (Europe/Berlin), newest first. meta.total_minutes sums the whole month (not only the page), meta.quota_minutes is the customer's monthly quota or null. site_id is null when the entry's site has no API id or is outside the token's scope.",
    "x-permission": "clients:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "month",
            "in": "query",
            "schema": {
                "type": "string",
                "pattern": "^20[0-9]{2}-(0[1-9]|1[0-2])$"
            },
            "description": "Month as YYYY-MM; default: current month (Europe/Berlin)"
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 50
            },
            "description": "Page size"
        },
        {
            "name": "cursor",
            "in": "query",
            "schema": {
                "type": "string"
            },
            "description": "Opaque cursor from the preceding response; only valid for the same token, customer and month"
        }
    ],
    "responses": {
        "200": {
            "description": "Entries, month totals and next cursor",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WorkEntryListResponse"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid month, limit or cursor (invalid_arguments with error.field, invalid_limit, invalid_cursor)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code client_not_found (unknown, foreign or not allowed for the token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/clients/{client_id}/work-entries

Log work for a customer

Permission: work:write

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/WorkEntryRequest"
            }
        }
    }
}

Antworten

  • 201 The new entry
  • 400 Invalid or missing body field (invalid_arguments with error.field) or Idempotency-Key
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 Error codes client_not_found (unknown, foreign or not allowed for the token) and site_not_found (unknown, foreign or outside the token's scope)
  • 405 Method not allowed for this route
  • 409 duplicate_entry (external_id exists; existing_id only for the same customer) or idempotency_conflict / idempotency_unknown for the key
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 422 Error code site_not_in_inventory (the site is known to the API but not yet in the agency inventory)
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "createWorkEntry",
    "summary": "Log work for a customer",
    "description": "Requires work:write; account-wide and customer tokens. date must not be in the future (Europe/Berlin) and not older than two years; minutes 5 to 1440; text at most 280 characters (stored as plain text). site_id is optional and must be a site of the token's scope; the site does not have to belong to the customer. An external_id is unique per account: a second entry with the same external_id answers 409 duplicate_entry, with error.existing_id only if the existing entry belongs to this customer. Needs the Idempotency-Key header.",
    "x-permission": "work:write",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/WorkEntryRequest"
                }
            }
        }
    },
    "responses": {
        "201": {
            "description": "The new entry",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WorkEntryResponse"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid or missing body field (invalid_arguments with error.field) or Idempotency-Key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error codes client_not_found (unknown, foreign or not allowed for the token) and site_not_found (unknown, foreign or outside the token's scope)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "duplicate_entry (external_id exists; existing_id only for the same customer) or idempotency_conflict / idempotency_unknown for the key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "422": {
            "description": "Error code site_not_in_inventory (the site is known to the API but not yet in the agency inventory)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

DELETE https://panel.turbopress.de/api/v1/clients/{client_id}/work-entries/{entry_id}

Delete a work entry

Permission: work:write

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • entry_id (path, Pflicht): Entry id from GET /clients/{client_id}/work-entries
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.

Antworten

  • 204 Entry deleted (no body)
  • 400 Invalid Idempotency-Key
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 Error codes client_not_found (unknown, foreign or not allowed for the token) and work_entry_not_found (no such entry of this customer)
  • 405 Method not allowed for this route
  • 409 idempotency_conflict / idempotency_unknown for the key
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "deleteWorkEntry",
    "summary": "Delete a work entry",
    "description": "Requires work:write. Deletes the entry only if it belongs to the customer in the path. Answers 204 without a body; a repeat with the same Idempotency-Key also answers 204. Needs the Idempotency-Key header.",
    "x-permission": "work:write",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Entry id from GET /clients/{client_id}/work-entries"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "responses": {
        "204": {
            "description": "Entry deleted (no body)",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid Idempotency-Key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error codes client_not_found (unknown, foreign or not allowed for the token) and work_entry_not_found (no such entry of this customer)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "idempotency_conflict / idempotency_unknown for the key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

PUT https://panel.turbopress.de/api/v1/licenses/{slug}

Set the licence details of a premium plugin

Permission: licenses:write

Parameter

  • slug (path, Pflicht): Plugin slug as returned by GET /licenses. The stored spelling is matched exactly first; otherwise a single case-insensitive match is used.
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/LicenseWriteRequest"
            }
        }
    }
}

Antworten

  • 200 The licence entry after the call (same shape as an item of GET /licenses)
  • 204 Entry removed (kind and expires_at empty, paid_by agency); no body
  • 400 Invalid or empty body, slug, field or Idempotency-Key (invalid_arguments with error.field: paid_by, kind or expires_at)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied (also for tokens that are not account-wide) and feature_not_enabled
  • 404 Error code plugin_not_found (not a premium plugin of this account, or the slug matches several spellings)
  • 405 Method not allowed for this route
  • 409 idempotency_conflict / idempotency_unknown for the key
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "putLicense",
    "summary": "Set the licence details of a premium plugin",
    "description": "Requires licenses:write; account-wide tokens only (the right cannot be issued for customer or site tokens). Sets who pays, the licence kind (free text, at most 80 characters) and the expiry date of a premium plugin that appears in GET /licenses. The slug is the one returned by GET /licenses (exact match first, else a single case-insensitive match; several matches answer 404); the response and the audit entry carry the stored spelling. paid_by is required; kind and expires_at default to null (not set). If kind (blank counts as empty) and expires_at are empty and paid_by is agency, the entry is removed and the call answers 204 without a body. Otherwise the answer is the entry as in GET /licenses. A manually entered expires_at is shown with expires_source manual unless the plugin itself reports a later date. Licence keys are never accepted or returned. Needs the Idempotency-Key header.",
    "x-permission": "licenses:write",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,61}$"
            },
            "description": "Plugin slug as returned by GET /licenses. The stored spelling is matched exactly first; otherwise a single case-insensitive match is used."
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/LicenseWriteRequest"
                }
            }
        }
    },
    "responses": {
        "200": {
            "description": "The licence entry after the call (same shape as an item of GET /licenses)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/LicenseResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "204": {
            "description": "Entry removed (kind and expires_at empty, paid_by agency); no body",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid or empty body, slug, field or Idempotency-Key (invalid_arguments with error.field: paid_by, kind or expires_at)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (also for tokens that are not account-wide) and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code plugin_not_found (not a premium plugin of this account, or the slug matches several spellings)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "idempotency_conflict / idempotency_unknown for the key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/clients/{client_id}/reports

List the report periods of a customer

Permission: reports:read

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients

Antworten

  • 200 Report periods
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 Error code client_not_found (unknown, foreign, own sites or not allowed for the token)
  • 405 Method not allowed for this route
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listReports",
    "summary": "List the report periods of a customer",
    "description": "Requires reports:read. The periods the panel offers (current month and five before, then the last two completed quarters), newest first, always 8 items, no cursor. status: open (no report row yet or not sent), approval_sent, sent, failed, skipped. sent_at (UTC) only for sent. scheduled_send and scheduled_approval (Y-m-d, Europe/Berlin day) only while the status is open or approval_sent and the sending rhythm of the brand settings fits the period; scheduled_approval additionally needs the approval mail switched on. Customers with own sites have no reports: client_not_found.",
    "x-permission": "reports:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        }
    ],
    "responses": {
        "200": {
            "description": "Report periods",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ReportListResponse"
                    }
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code client_not_found (unknown, foreign, own sites or not allowed for the token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/clients/{client_id}/reports/{period}

Read the maintenance report of a customer as JSON

Permission: reports:read

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • period (path, Pflicht): Month YYYY-MM or quarter YYYYQn, as listed by GET /clients/{client_id}/reports

Antworten

  • 200 The report document
  • 400 Invalid period (invalid_arguments with error.field = period)
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 Error codes client_not_found (unknown, foreign, own sites or not allowed for the token) and report_not_found (the customer has no sites with report data)
  • 405 Method not allowed for this route
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getReport",
    "summary": "Read the maintenance report of a customer as JSON",
    "description": "Requires reports:read. The report as the customer sees it on the shared link and in the mail (English field names, dates Y-m-d): sections the agency hid or switched off are absent, never null (work, updates, background, speed; kpis.updates, kpis.backups, kpis.speed_score and kpis.speed_score_delta follow their section); hidden rows are missing and the key figures are recounted. Not part of the document: HTML, PDF, images, mail addresses and the contact person of the customer. from/to are shortened to the days the customer's hosting existed and to today.",
    "x-permission": "reports:read",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "period",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^(20[0-9]{2}-(0[1-9]|1[0-2])|20[0-9]{2}Q[1-4])$"
            },
            "description": "Month YYYY-MM or quarter YYYYQn, as listed by GET /clients/{client_id}/reports"
        }
    ],
    "responses": {
        "200": {
            "description": "The report document",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ReportResponse"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid period (invalid_arguments with error.field = period)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error codes client_not_found (unknown, foreign, own sites or not allowed for the token) and report_not_found (the customer has no sites with report data)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/clients/{client_id}/reports/{period}/share-links

Create a public share link for a maintenance report

Permission: reports:share

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • period (path, Pflicht): Month YYYY-MM or quarter YYYYQn, as listed by GET /clients/{client_id}/reports
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. The url of a share link is a secret and is never stored: a repeat with the same key answers 409 secret_not_replayable and creates no second link; use a new key to get a new link.

Antworten

  • 201 The new link (url and expires_at appear only here)
  • 400 Invalid period (invalid_arguments with error.field = period), non-empty body or missing Idempotency-Key
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 client_not_found, or report_not_found (period not offered for this customer)
  • 405 Method not allowed for this route
  • 409 secret_not_replayable (same Idempotency-Key was already used: the link is not repeated), idempotency_conflict or idempotency_unknown, or too_many_links (20 valid links per report)
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 429 Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
Vollständiger OpenAPI-Eintrag
{
    "operationId": "createReportShareLink",
    "summary": "Create a public share link for a maintenance report",
    "description": "Requires reports:share; account-wide and customer tokens. Creates a new link to the report page of the customer (no login needed), valid for 90 days. Every call with a new Idempotency-Key creates another link; earlier links stay valid until they expire. The url is a secret: it is only in this response and is never stored by turbopress in readable form. A repeat with the same Idempotency-Key answers 409 secret_not_replayable and creates no second link; use a new key to get a new link. The request body must be empty or {}. Only periods listed by GET /clients/{client_id}/reports are accepted (otherwise 404 report_not_found); a report can have at most 20 valid links (otherwise 409 too_many_links). Customers with own sites have no reports (404 client_not_found).",
    "x-permission": "reports:share",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "period",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^(20[0-9]{2}-(0[1-9]|1[0-2])|20[0-9]{2}Q[1-4])$"
            },
            "description": "Month YYYY-MM or quarter YYYYQn, as listed by GET /clients/{client_id}/reports"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. The url of a share link is a secret and is never stored: a repeat with the same key answers 409 secret_not_replayable and creates no second link; use a new key to get a new link."
        }
    ],
    "responses": {
        "201": {
            "description": "The new link (url and expires_at appear only here)",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ShareLinkResponse"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid period (invalid_arguments with error.field = period), non-empty body or missing Idempotency-Key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "client_not_found, or report_not_found (period not offered for this customer)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "secret_not_replayable (same Idempotency-Key was already used: the link is not repeated), idempotency_conflict or idempotency_unknown, or too_many_links (20 valid links per report)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). 60 requests and 30 agency writes per minute and account. Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/clients/{client_id}/reports/{period}/send

Send a maintenance report to the end customer

Permission: reports:send

Parameter

  • client_id (path, Pflicht): Customer id from GET /clients
  • period (path, Pflicht): Month YYYY-MM or quarter YYYYQn, as listed by GET /clients/{client_id}/reports
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": false,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/SendReportRequest"
            }
        }
    }
}

Antworten

  • 400 Invalid period or resend (invalid_arguments with error.field), unknown body field or missing Idempotency-Key
  • 401 Missing or invalid API token
  • 403 Error codes permission_denied and feature_not_enabled
  • 404 client_not_found (also for customers with own sites)
  • 405 Method not allowed for this route
  • 409 already_sent (send without resend), not_sent_yet (resend before the first send), idempotency_conflict or idempotency_unknown
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Content-Type application/json required
  • 429 rate_limited (60 requests and 30 agency writes per minute and account) or resend_limit (too soon: Retry-After 300; 3 resends used: permanent, no Retry-After)
  • 503 Error codes feature_unavailable (agency API switched off) and api_unavailable
  • 200 The report was sent
  • 422 client_email_missing (no valid address stored), report_empty (no report data) or period_not_sendable (running period or older than 12 months)
  • 502 send_failed: sending failed; retry with the same Idempotency-Key (an already delivered report answers already_sent)
Vollständiger OpenAPI-Eintrag
{
    "operationId": "sendReport",
    "summary": "Send a maintenance report to the end customer",
    "description": "Requires reports:send; account-wide and customer tokens. Sends the report of the period by email to the customer's own address (the one stored for the customer) and marks it as sent. Only completed periods of the last 12 months can be sent (422 period_not_sendable). Without resend an already sent report answers 409 already_sent and no mail is sent. With {\"resend\": true} a report that was sent before is sent again: at least 300 seconds after the last send and at most 3 times per period and customer (429 resend_limit; Retry-After 300 when too soon, no Retry-After for the cap, which is permanent). Resending a report that was never sent answers 409 not_sent_yet. If sending fails the answer is 502 send_failed: retry (the same Idempotency-Key can be used again); an already delivered report answers already_sent. A repeat with the same Idempotency-Key and body returns the stored 200 answer and sends nothing. The body is empty, {} or {\"resend\": boolean}. email in the answer is the customer's current report address (read after sending, your own data); it is kept for 24 h in the stored idempotency answer for replay and never in logs or audit. Customers with own sites have no reports (404 client_not_found). Besides the 60 requests per minute, 30 agency writes per minute and account apply.",
    "x-permission": "reports:send",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "client_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^[1-9][0-9]{0,9}$"
            },
            "description": "Customer id from GET /clients"
        },
        {
            "name": "period",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^(20[0-9]{2}-(0[1-9]|1[0-2])|20[0-9]{2}Q[1-4])$"
            },
            "description": "Month YYYY-MM or quarter YYYYQn, as listed by GET /clients/{client_id}/reports"
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer; the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "responses": {
        "400": {
            "description": "Invalid period or resend (invalid_arguments with error.field), unknown body field or missing Idempotency-Key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied and feature_not_enabled",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "client_not_found (also for customers with own sites)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "409": {
            "description": "already_sent (send without resend), not_sent_yet (resend before the first send), idempotency_conflict or idempotency_unknown",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Content-Type application/json required",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "rate_limited (60 requests and 30 agency writes per minute and account) or resend_limit (too soon: Retry-After 300; 3 resends used: permanent, no Retry-After)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error codes feature_unavailable (agency API switched off) and api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "200": {
            "description": "The report was sent",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            },
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SendReportResponse"
                    }
                }
            }
        },
        "422": {
            "description": "client_email_missing (no valid address stored), report_empty (no report data) or period_not_sendable (running period or older than 12 months)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "502": {
            "description": "send_failed: sending failed; retry with the same Idempotency-Key (an already delivered report answers already_sent)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    },
    "requestBody": {
        "required": false,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/SendReportRequest"
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/webhooks

Create a webhook

Permission: webhooks:manage

Parameter

  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/WebhookCreateRequest"
            }
        }
    }
}

Antworten

  • 201 The webhook including `secret`
  • 400 Error codes invalid_arguments (field names the offending field, e.g. events, active, request) and invalid_webhook_url (field url)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 409 Error codes idempotency_unknown, idempotency_conflict, secret_not_replayable (repeat of a request that returned a secret), webhook_limit (10 webhooks per account)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
Vollständiger OpenAPI-Eintrag
{
    "operationId": "createWebhook",
    "summary": "Create a webhook",
    "description": "Creates a webhook for the calling token (at most 10 per account). Body: url (https, no IP literal, no turbopress.de host) and events (1 to 8 unique types). The signing secret (whsec_...) is part of this answer only; it is never stored in plain text and never shown again (use rotate-secret). Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/WebhookCreateRequest"
                }
            }
        }
    },
    "responses": {
        "201": {
            "description": "The webhook including `secret`",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WebhookCreateResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Error codes invalid_arguments (field names the offending field, e.g. events, active, request) and invalid_webhook_url (field url)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Error codes idempotency_unknown, idempotency_conflict, secret_not_replayable (repeat of a request that returned a secret), webhook_limit (10 webhooks per account)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/webhooks

List the webhooks of the calling token

Permission: webhooks:manage

Antworten

  • 200 List of webhooks
  • 400 Invalid request (error code invalid_arguments)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listWebhooks",
    "summary": "List the webhooks of the calling token",
    "description": "Returns at most 10 webhooks, no cursor. Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [],
    "responses": {
        "200": {
            "description": "List of webhooks",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WebhookListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid request (error code invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/webhooks/{webhook_id}

Get one webhook

Permission: webhooks:manage

Parameter

  • webhook_id (path, Pflicht): Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible.

Antworten

  • 200 Webhook
  • 400 Invalid request (error code invalid_arguments)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 404 Error code webhook_not_found (unknown, malformed or created by another token)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "getWebhook",
    "summary": "Get one webhook",
    "description": "Returns the webhook; never its secret. Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^wh_[a-z0-9]{24}$"
            },
            "description": "Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible."
        }
    ],
    "responses": {
        "200": {
            "description": "Webhook",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WebhookResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid request (error code invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code webhook_not_found (unknown, malformed or created by another token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

PATCH https://panel.turbopress.de/api/v1/webhooks/{webhook_id}

Change a webhook

Permission: webhooks:manage

Parameter

  • webhook_id (path, Pflicht): Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible.
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.
Request-Body
{
    "required": true,
    "content": {
        "application/json": {
            "schema": {
                "$ref": "#/components/schemas/WebhookUpdateRequest"
            }
        }
    }
}

Antworten

  • 200 Webhook after the change
  • 400 Error codes invalid_arguments (field names the offending field, e.g. events, active, request) and invalid_webhook_url (field url)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 404 Error code webhook_not_found (unknown, malformed or created by another token)
  • 409 Error codes idempotency_unknown, idempotency_conflict, webhook_token_revoked
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "updateWebhook",
    "summary": "Change a webhook",
    "description": "At least one of url, events, active (JSON boolean). Setting active to true resets the failure counter; a webhook switched off because its token was revoked cannot be re-enabled. Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^wh_[a-z0-9]{24}$"
            },
            "description": "Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible."
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "#/components/schemas/WebhookUpdateRequest"
                }
            }
        }
    },
    "responses": {
        "200": {
            "description": "Webhook after the change",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WebhookResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Error codes invalid_arguments (field names the offending field, e.g. events, active, request) and invalid_webhook_url (field url)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code webhook_not_found (unknown, malformed or created by another token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Error codes idempotency_unknown, idempotency_conflict, webhook_token_revoked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

DELETE https://panel.turbopress.de/api/v1/webhooks/{webhook_id}

Delete a webhook

Permission: webhooks:manage

Parameter

  • webhook_id (path, Pflicht): Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible.
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.

Antworten

  • 204 Deleted; no body
  • 400 Invalid request (error code invalid_arguments)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 404 Error code webhook_not_found (unknown, malformed or created by another token)
  • 409 Error codes idempotency_unknown, idempotency_conflict
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "deleteWebhook",
    "summary": "Delete a webhook",
    "description": "Deletes the webhook and its deliveries. A repeat with the same key answers 204 again. Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^wh_[a-z0-9]{24}$"
            },
            "description": "Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible."
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "responses": {
        "204": {
            "description": "Deleted; no body",
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid request (error code invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code webhook_not_found (unknown, malformed or created by another token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Error codes idempotency_unknown, idempotency_conflict",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/webhooks/{webhook_id}/test

Queue a test delivery

Permission: webhooks:manage

Parameter

  • webhook_id (path, Pflicht): Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible.
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.

Antworten

  • 202 Ping queued: delivery_id, event_id, status pending
  • 400 Invalid request (error code invalid_arguments)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 404 Error code webhook_not_found (unknown, malformed or created by another token)
  • 409 Error codes idempotency_unknown, idempotency_conflict, webhook_inactive, webhook_test_pending (a test delivery of this webhook is still pending)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
Vollständiger OpenAPI-Eintrag
{
    "operationId": "testWebhook",
    "summary": "Queue a test delivery",
    "description": "Queues one ping event for the webhook (empty body). The dispatcher delivers it like any other event, once, without retries. Only for active webhooks. Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^wh_[a-z0-9]{24}$"
            },
            "description": "Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible."
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "responses": {
        "202": {
            "description": "Ping queued: delivery_id, event_id, status pending",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WebhookTestResponse"
                    }
                }
            },
            "headers": {
                "Location": {
                    "description": "URL of the delivery list of the webhook (GET .../deliveries)",
                    "schema": {
                        "type": "string"
                    }
                },
                "Retry-After": {
                    "description": "Seconds until the dispatcher is expected to have tried the delivery",
                    "schema": {
                        "type": "integer",
                        "minimum": 1
                    }
                },
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid request (error code invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code webhook_not_found (unknown, malformed or created by another token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Error codes idempotency_unknown, idempotency_conflict, webhook_inactive, webhook_test_pending (a test delivery of this webhook is still pending)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

GET https://panel.turbopress.de/api/v1/webhooks/{webhook_id}/deliveries

List recent deliveries

Permission: webhooks:manage

Parameter

  • webhook_id (path, Pflicht): Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible.

Antworten

  • 200 List of deliveries
  • 400 Invalid request (error code invalid_arguments)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 404 Error code webhook_not_found (unknown, malformed or created by another token)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
Vollständiger OpenAPI-Eintrag
{
    "operationId": "listWebhookDeliveries",
    "summary": "List recent deliveries",
    "description": "The latest 50 deliveries, newest first (status, attempts, next attempt, last status code, fixed error code, event payload). No signature, secret or URL. Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^wh_[a-z0-9]{24}$"
            },
            "description": "Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible."
        }
    ],
    "responses": {
        "200": {
            "description": "List of deliveries",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WebhookDeliveryListResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid request (error code invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code webhook_not_found (unknown, malformed or created by another token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

POST https://panel.turbopress.de/api/v1/webhooks/{webhook_id}/rotate-secret

Issue a new signing secret

Permission: webhooks:manage

Parameter

  • webhook_id (path, Pflicht): Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible.
  • Idempotency-Key (header, Pflicht): Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key.

Antworten

  • 200 id and the new secret
  • 400 Invalid request (error code invalid_arguments)
  • 401 Missing or invalid API token, or the issuing user is no longer linked
  • 403 Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)
  • 404 Error code webhook_not_found (unknown, malformed or created by another token)
  • 409 Error codes idempotency_unknown, idempotency_conflict, secret_not_replayable (repeat of a request that returned a secret)
  • 429 Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.
  • 503 Error code feature_unavailable (the webhooks switch is off) or api_unavailable
  • 405 Method not allowed for this route
  • 413 Request body, file or release exceeds the documented size limits
  • 415 Request body present but Content-Type is not application/json
Vollständiger OpenAPI-Eintrag
{
    "operationId": "rotateWebhookSecret",
    "summary": "Issue a new signing secret",
    "description": "Empty body. The new secret is valid immediately, the old one stops working. The answer {id, secret} is the only time the secret is shown. Needs the webhooks switch of the platform and the webhooks:manage permission on an account-wide token.",
    "x-permission": "webhooks:manage",
    "security": [
        {
            "apiToken": []
        }
    ],
    "parameters": [
        {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "string",
                "pattern": "^wh_[a-z0-9]{24}$"
            },
            "description": "Webhook id from POST /webhooks or GET /webhooks. Only webhooks created by the calling token are visible."
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 16,
                "maxLength": 128,
                "pattern": "^[\\x20-\\x7E]+$"
            },
            "description": "Required. 16 to 128 printable ASCII characters, retained for 24 hours per account, token, method and route. A repeat with the same key and the same request returns the stored answer (routes that return a secret answer 409 secret_not_replayable instead); the same key with a changed request answers 409 idempotency_conflict. A request that failed before any effect (validation, limits, business rule) frees the key."
        }
    ],
    "responses": {
        "200": {
            "description": "id and the new secret",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/WebhookSecretResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "400": {
            "description": "Invalid request (error code invalid_arguments)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "401": {
            "description": "Missing or invalid API token, or the issuing user is no longer linked",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            }
        },
        "403": {
            "description": "Error codes permission_denied (token or issuing user lacks webhooks:manage or the read right of an event type, or the token is not account-wide) and feature_not_enabled (agency event type without the agency API)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "404": {
            "description": "Error code webhook_not_found (unknown, malformed or created by another token)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "409": {
            "description": "Error codes idempotency_unknown, idempotency_conflict, secret_not_replayable (repeat of a request that returned a secret)",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "429": {
            "description": "Rate limit exceeded (error code rate_limited). Retry-After gives the seconds to wait.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "503": {
            "description": "Error code feature_unavailable (the webhooks switch is off) or api_unavailable",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "405": {
            "description": "Method not allowed for this route",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "Allow": {
                    "schema": {
                        "type": "string"
                    }
                }
            }
        },
        "413": {
            "description": "Request body, file or release exceeds the documented size limits",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        },
        "415": {
            "description": "Request body present but Content-Type is not application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorResponse"
                    }
                }
            },
            "headers": {
                "X-RateLimit-Limit": {
                    "$ref": "#/components/headers/RateLimitLimit"
                },
                "X-RateLimit-Remaining": {
                    "$ref": "#/components/headers/RateLimitRemaining"
                },
                "X-RateLimit-Reset": {
                    "$ref": "#/components/headers/RateLimitReset"
                }
            }
        }
    }
}

Schemas

Meta
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string"
        }
    },
    "required": [
        "request_id"
    ],
    "additionalProperties": false
}
PageMeta
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string"
        },
        "next_cursor": {
            "type": [
                "string",
                "null"
            ]
        }
    },
    "required": [
        "request_id",
        "next_cursor"
    ],
    "additionalProperties": false
}
Error
{
    "type": "object",
    "properties": {
        "code": {
            "type": "string"
        },
        "message": {
            "type": "string"
        },
        "field": {
            "type": "string",
            "description": "Name of the invalid request field (invalid_arguments)"
        },
        "existing_id": {
            "type": "string",
            "description": "duplicate_entry only: id of the existing entry of the same customer"
        }
    },
    "required": [
        "code",
        "message"
    ],
    "additionalProperties": false
}
ErrorResponse
{
    "type": "object",
    "properties": {
        "error": {
            "$ref": "#/components/schemas/Error"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "error",
        "meta"
    ],
    "additionalProperties": false
}
Site
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "domain": {
            "type": "string"
        },
        "type": {
            "type": "string",
            "enum": [
                "wordpress",
                "ai_launch"
            ]
        },
        "status": {
            "type": "string"
        },
        "capabilities": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "data_as_of": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time"
        },
        "role": {
            "type": "string",
            "enum": [
                "live",
                "staging"
            ],
            "description": "'staging' if the site is the staging copy of a live site of the same hosting package. The only rule: the host is exactly staging.<main domain>, same package, with exactly one live site (root installation of the main domain) and its own folder. Everything not recognized (and every AI Launch site) is 'live'."
        },
        "staging_of": {
            "type": [
                "string",
                "null"
            ],
            "description": "Only for role 'staging': the id of its live site, if that site belongs to the token's targets; otherwise null. Always null for role 'live'."
        },
        "client": {
            "description": "Customer of the site. Only present when the token has clients:read, the issuing user is linked and the agency API is enabled; null if the site is not assigned to a customer.",
            "oneOf": [
                {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "name"
                    ],
                    "additionalProperties": false
                },
                {
                    "type": "null"
                }
            ]
        },
        "details": {
            "$ref": "#/components/schemas/SiteDetails",
            "description": "Only in GET /sites/{site_id}, never in the list GET /sites"
        }
    },
    "required": [
        "id",
        "domain",
        "type",
        "status",
        "capabilities",
        "data_as_of",
        "role",
        "staging_of"
    ],
    "additionalProperties": false
}
Backup
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "status": {
            "type": "string"
        },
        "created_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time"
        },
        "size_bytes": {
            "type": [
                "integer",
                "null"
            ]
        }
    },
    "required": [
        "id",
        "filename"
    ],
    "additionalProperties": false
}
Operation
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "site_id": {
            "type": "string"
        },
        "kind": {
            "type": "string"
        },
        "status": {
            "type": "string",
            "enum": [
                "queued",
                "running",
                "succeeded",
                "failed",
                "unknown"
            ]
        },
        "created_at": {
            "type": "string",
            "format": "date-time"
        },
        "updated_at": {
            "type": "string",
            "format": "date-time"
        },
        "result": {
            "type": [
                "object",
                "null"
            ],
            "description": "Result of an operation, present on succeeded and, where documented, also on failed and unknown operations. backups:delete: {filename, remaining_backups, deletion_verified}. updates:run: {safety_backup, items:[{type, slug, from, to, status}]}. staging:delete: {staging_host, deleted, subdomain_removed}. backups:restore: {safety_backup, scope, restore_task (full) | health_check (partial)}. updates:core: {safety_backup, from, to}. plugins:manage: {slug, enabled, changed}. staging:create: {staging_host, ssl, staging_site_id}. staging:push: {safety_backup:{filename, created_at}, health_check, scope, delete_missing_files}."
        },
        "error_code": {
            "type": [
                "string",
                "null"
            ]
        }
    },
    "required": [
        "id",
        "site_id",
        "kind",
        "status",
        "created_at",
        "updated_at"
    ],
    "additionalProperties": false
}
Deployment
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "site_id": {
            "type": "string"
        },
        "status": {
            "type": "string"
        },
        "created_at": {
            "type": "string",
            "format": "date-time"
        },
        "published_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time"
        }
    },
    "required": [
        "id",
        "site_id",
        "status",
        "created_at"
    ],
    "additionalProperties": false
}
SiteResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/Site"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
SiteListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/Site"
            }
        },
        "meta": {
            "$ref": "#/components/schemas/PageMeta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
BackupListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/Backup"
            }
        },
        "meta": {
            "$ref": "#/components/schemas/PageMeta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
OperationResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/Operation"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
DeploymentResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/Deployment"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
DeploymentListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/Deployment"
            }
        },
        "meta": {
            "$ref": "#/components/schemas/PageMeta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
CachePurgeRequest
{
    "type": "object",
    "properties": {
        "scope": {
            "type": "string",
            "enum": [
                "page",
                "object",
                "all"
            ]
        }
    },
    "required": [
        "scope"
    ],
    "additionalProperties": false
}
DeploymentFileRequest
{
    "type": "object",
    "properties": {
        "path": {
            "type": "string"
        },
        "content": {
            "type": "string"
        },
        "encoding": {
            "type": "string",
            "enum": [
                "utf8",
                "base64"
            ],
            "default": "utf8"
        }
    },
    "required": [
        "path",
        "content"
    ],
    "additionalProperties": false
}
DeploymentFileResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "path": {
                    "type": "string"
                },
                "size_bytes": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "required": [
                "path",
                "size_bytes"
            ],
            "additionalProperties": false
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
DeploymentPreviewResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "valid": {
                    "type": "boolean"
                },
                "issues": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "preview_url": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "uri"
                }
            },
            "required": [
                "valid",
                "issues"
            ],
            "additionalProperties": false
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
OperationListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/Operation"
            }
        },
        "meta": {
            "$ref": "#/components/schemas/PageMeta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
TokenInfo
{
    "type": "object",
    "properties": {
        "id": {
            "type": "integer"
        },
        "name": {
            "type": "string"
        },
        "permissions": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "scope": {
            "$ref": "#/components/schemas/TokenScope"
        },
        "targets": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Site IDs"
        },
        "created_at": {
            "type": "string",
            "format": "date-time"
        },
        "expires_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time",
            "description": "null = unlimited"
        },
        "last_used_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time"
        }
    },
    "required": [
        "id",
        "name",
        "permissions",
        "scope",
        "targets",
        "created_at",
        "expires_at",
        "last_used_at"
    ],
    "additionalProperties": false
}
TokenInfoResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/TokenInfo"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
Status
{
    "type": "object",
    "properties": {
        "status": {
            "type": "string",
            "enum": [
                "ok",
                "draining"
            ]
        },
        "api": {
            "type": "string",
            "enum": [
                "v1"
            ]
        }
    },
    "required": [
        "status",
        "api"
    ],
    "additionalProperties": false
}
StatusResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/Status"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
SiteDetails
{
    "type": "object",
    "description": "Read-only extras. The WordPress version comes from the hosting inventory read for the request; all other values come from the daily data (reports, uptime, package usage) without any backend call. Values are null when the source has no usable data.",
    "properties": {
        "wordpress_version": {
            "type": [
                "string",
                "null"
            ],
            "description": "Installed WordPress version; null if unknown and always null for AI Launch sites"
        },
        "php_version": {
            "type": [
                "string",
                "null"
            ],
            "description": "PHP version of the site from the daily report; null if unknown, static, or the site has no matching report entry"
        },
        "core_update_available": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "WordPress core update open (daily report)"
        },
        "plugins_to_update": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "description": "Number of plugins with an open update (daily report)"
        },
        "report_as_of": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time",
            "description": "Time of the daily report the report values come from"
        },
        "report_stale": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "true when the report is older than 30 hours"
        },
        "ssl": {
            "type": [
                "object",
                "null"
            ],
            "description": "Certificate expiry of the package (not of this site alone), from the latest daily report of the package's main domain only; other hosts of the package are not considered",
            "properties": {
                "expires_at": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date"
                },
                "as_of": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time",
                    "description": "Report time"
                },
                "scope": {
                    "type": "string",
                    "enum": [
                        "package"
                    ]
                }
            },
            "required": [
                "expires_at",
                "as_of",
                "scope"
            ],
            "additionalProperties": false
        },
        "disk": {
            "type": [
                "object",
                "null"
            ],
            "description": "Disk use of the package; limit_mb and percent are null for unlimited",
            "properties": {
                "used_mb": {
                    "type": "integer"
                },
                "limit_mb": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "percent": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "as_of": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time",
                    "description": "Time of the last usage update"
                },
                "scope": {
                    "type": "string",
                    "enum": [
                        "package"
                    ]
                }
            },
            "required": [
                "used_mb",
                "limit_mb",
                "percent",
                "as_of",
                "scope"
            ],
            "additionalProperties": false
        },
        "uptime": {
            "type": [
                "object",
                "null"
            ],
            "description": "Uptime monitor state of this site; null without an active target",
            "properties": {
                "state": {
                    "type": "string",
                    "enum": [
                        "up",
                        "suspect",
                        "down"
                    ]
                },
                "since": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time",
                    "description": "State since"
                },
                "last_check": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time",
                    "description": "Last check"
                }
            },
            "required": [
                "state",
                "since",
                "last_check"
            ],
            "additionalProperties": false
        },
        "last_backup_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time",
            "description": "Time of the last backup seen by the daily report"
        },
        "speed": {
            "type": [
                "object",
                "null"
            ],
            "description": "Speed measurement from the daily report",
            "properties": {
                "score": {
                    "type": "integer"
                },
                "ttfb_ms": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "as_of": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time",
                    "description": "Report time"
                }
            },
            "required": [
                "score",
                "ttfb_ms",
                "as_of"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "wordpress_version",
        "php_version",
        "core_update_available",
        "plugins_to_update",
        "report_as_of",
        "report_stale",
        "ssl",
        "disk",
        "uptime",
        "last_backup_at",
        "speed"
    ],
    "additionalProperties": false
}
UpdateItem
{
    "type": "object",
    "description": "A plugin or theme with an open update. name and versions come from third-party code and are sanitized.",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Slug as used for the update request"
        },
        "name": {
            "type": "string"
        },
        "current": {
            "type": "string"
        },
        "available": {
            "type": "string"
        }
    },
    "required": [
        "slug",
        "name",
        "current",
        "available"
    ],
    "additionalProperties": false
}
Updates
{
    "type": "object",
    "properties": {
        "core": {
            "type": "object",
            "properties": {
                "current": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "available": {
                    "type": [
                        "string",
                        "null"
                    ]
                }
            },
            "required": [
                "current",
                "available"
            ],
            "additionalProperties": false
        },
        "plugins": {
            "type": "array",
            "maxItems": 200,
            "items": {
                "$ref": "#/components/schemas/UpdateItem"
            }
        },
        "themes": {
            "type": "array",
            "maxItems": 200,
            "items": {
                "$ref": "#/components/schemas/UpdateItem"
            }
        },
        "checked_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the state was read (UTC)"
        }
    },
    "required": [
        "core",
        "plugins",
        "themes",
        "checked_at"
    ],
    "additionalProperties": false
}
UpdatesResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/Updates"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
UpdatesRunRequest
{
    "type": "object",
    "properties": {
        "items": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5,
            "items": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string",
                        "enum": [
                            "plugin",
                            "theme"
                        ]
                    },
                    "slug": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]{0,61}$"
                    }
                },
                "required": [
                    "type",
                    "slug"
                ],
                "additionalProperties": false
            }
        }
    },
    "required": [
        "items"
    ],
    "additionalProperties": false
}
BackupRestoreRequest
{
    "type": "object",
    "properties": {
        "scope": {
            "type": "string",
            "enum": [
                "full",
                "database",
                "files",
                "folder"
            ]
        },
        "folder": {
            "type": "string",
            "pattern": "^wp-content/(uploads|(plugins|themes)/[a-z0-9-]{1,100})$",
            "description": "Only with scope folder"
        },
        "confirm_host": {
            "type": "string",
            "description": "The exact host of the site that is restored (case-insensitive)"
        },
        "confirm_data_loss": {
            "type": "boolean",
            "default": false,
            "description": "Must be true for scope full or database when WooCommerce is active on the site"
        }
    },
    "required": [
        "scope",
        "confirm_host"
    ],
    "additionalProperties": false
}
CoreUpdateRequest
{
    "type": "object",
    "properties": {
        "expected_version": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+){1,3}(-[A-Za-z0-9.]{1,20})?$",
            "description": "Refuse (409 version_changed) when another core version is offered"
        }
    },
    "additionalProperties": false
}
PluginStateRequest
{
    "type": "object",
    "properties": {
        "enabled": {
            "type": "boolean"
        }
    },
    "required": [
        "enabled"
    ],
    "additionalProperties": false
}
EmptyRequest
{
    "type": "object",
    "additionalProperties": false
}
StagingPushRequest
{
    "type": "object",
    "properties": {
        "scope": {
            "type": "string",
            "enum": [
                "all",
                "files",
                "db",
                "selected"
            ]
        },
        "tables": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "uniqueItems": true,
            "items": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_]{1,64}$"
            },
            "description": "Only with scope selected"
        },
        "delete_missing_files": {
            "type": "boolean",
            "description": "Required. True only with scope all or files"
        },
        "confirm_host": {
            "type": "string",
            "description": "Required. The exact host of the live site (case-insensitive)"
        },
        "confirm_data_loss": {
            "type": "boolean",
            "default": false,
            "description": "Must be true for scope all or db when WooCommerce is active on the live site"
        },
        "dry_run": {
            "type": "boolean",
            "default": false
        }
    },
    "required": [
        "scope"
    ],
    "additionalProperties": false
}
StagingPushDryRun
{
    "type": "object",
    "additionalProperties": false,
    "required": [
        "dry_run",
        "scope",
        "delete_missing_files",
        "pair",
        "woocommerce_active",
        "tables",
        "missing_tables",
        "backup_quota",
        "storage_ok",
        "busy",
        "daily_limit_reached",
        "staging_newer_than_live"
    ],
    "properties": {
        "dry_run": {
            "type": "boolean",
            "enum": [
                true
            ]
        },
        "scope": {
            "type": "string",
            "enum": [
                "all",
                "files",
                "db",
                "selected"
            ]
        },
        "delete_missing_files": {
            "type": "boolean"
        },
        "pair": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "staging_host",
                "live_host"
            ],
            "properties": {
                "staging_host": {
                    "type": "string"
                },
                "live_host": {
                    "type": "string"
                }
            }
        },
        "woocommerce_active": {
            "type": [
                "boolean",
                "null"
            ]
        },
        "tables": {
            "type": [
                "array",
                "null"
            ],
            "maxItems": 1000,
            "items": {
                "type": "string"
            }
        },
        "missing_tables": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "backup_quota": {
            "type": [
                "object",
                "null"
            ],
            "additionalProperties": false,
            "properties": {
                "used": {
                    "type": "integer"
                },
                "limit": {
                    "type": "integer"
                }
            }
        },
        "storage_ok": {
            "type": [
                "boolean",
                "null"
            ]
        },
        "busy": {
            "type": [
                "string",
                "null"
            ],
            "enum": [
                "operation_running",
                "cockpit_busy",
                null
            ]
        },
        "daily_limit_reached": {
            "type": "boolean"
        },
        "staging_newer_than_live": {
            "type": "null",
            "description": "Not determined; always null."
        }
    }
}
StagingPushDryRunResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/StagingPushDryRun"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
TokenScope
{
    "type": "object",
    "description": "What the token's site list is derived from. 'sites' = fixed site ids, 'client' = all sites of one customer (re-evaluated), 'account' = all sites of the account (re-evaluated).",
    "properties": {
        "type": {
            "type": "string",
            "enum": [
                "sites",
                "client",
                "account"
            ]
        },
        "client_id": {
            "type": "string",
            "description": "Only for type 'client': the customer id",
            "pattern": "^[1-9][0-9]{0,9}$"
        }
    },
    "required": [
        "type"
    ],
    "additionalProperties": false
}
Client
{
    "type": "object",
    "description": "A customer of the agency account",
    "properties": {
        "id": {
            "type": "string",
            "description": "Customer id (decimal string)"
        },
        "name": {
            "type": "string"
        },
        "contact_name": {
            "type": "string",
            "description": "Contact person; empty string if none"
        },
        "email": {
            "type": "string",
            "description": "Empty string if none"
        },
        "note": {
            "type": "string"
        },
        "maintenance_contract": {
            "type": "boolean"
        },
        "own_sites": {
            "type": "boolean",
            "description": "true for the agency's own sites (no customer)"
        },
        "send_report": {
            "type": "boolean"
        },
        "quota_minutes": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "description": "Monthly maintenance quota in minutes; null = none"
        },
        "price_month_cent": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "description": "Monthly price in cents; null = none"
        },
        "site_count": {
            "type": "integer",
            "minimum": 0,
            "description": "Sites of this customer within the token's scope"
        }
    },
    "required": [
        "id",
        "name",
        "contact_name",
        "email",
        "note",
        "maintenance_contract",
        "own_sites",
        "send_report",
        "quota_minutes",
        "price_month_cent",
        "site_count"
    ],
    "additionalProperties": false
}
ClientDetail
{
    "type": "object",
    "description": "A customer of the agency account",
    "properties": {
        "id": {
            "type": "string",
            "description": "Customer id (decimal string)"
        },
        "name": {
            "type": "string"
        },
        "contact_name": {
            "type": "string",
            "description": "Contact person; empty string if none"
        },
        "email": {
            "type": "string",
            "description": "Empty string if none"
        },
        "note": {
            "type": "string"
        },
        "maintenance_contract": {
            "type": "boolean"
        },
        "own_sites": {
            "type": "boolean",
            "description": "true for the agency's own sites (no customer)"
        },
        "send_report": {
            "type": "boolean"
        },
        "quota_minutes": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "description": "Monthly maintenance quota in minutes; null = none"
        },
        "price_month_cent": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "description": "Monthly price in cents; null = none"
        },
        "site_count": {
            "type": "integer",
            "minimum": 0,
            "description": "Sites of this customer within the token's scope"
        },
        "sites": {
            "type": "array",
            "description": "Sites of this customer within the token's scope",
            "items": {
                "type": "object",
                "properties": {
                    "site_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "null if the site has no public id yet"
                    },
                    "domain": {
                        "type": "string"
                    },
                    "site_url": {
                        "type": "string"
                    }
                },
                "required": [
                    "site_id",
                    "domain",
                    "site_url"
                ],
                "additionalProperties": false
            }
        },
        "work_minutes_month": {
            "type": "integer",
            "minimum": 0,
            "description": "Worked minutes in the current month (Europe/Berlin)"
        }
    },
    "required": [
        "id",
        "name",
        "contact_name",
        "email",
        "note",
        "maintenance_contract",
        "own_sites",
        "send_report",
        "quota_minutes",
        "price_month_cent",
        "site_count",
        "sites",
        "work_minutes_month"
    ],
    "additionalProperties": false
}
ClientListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/Client"
            }
        },
        "meta": {
            "$ref": "#/components/schemas/PageMeta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
ClientResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/ClientDetail"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
PluginSummary
{
    "type": "object",
    "description": "Fleet view of one plugin across the token's sites",
    "properties": {
        "slug": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "site_count": {
            "type": "integer",
            "minimum": 0
        },
        "versions": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "version": {
                        "type": "string"
                    },
                    "site_count": {
                        "type": "integer",
                        "minimum": 0
                    }
                },
                "required": [
                    "version",
                    "site_count"
                ],
                "additionalProperties": false
            }
        },
        "latest": {
            "type": [
                "string",
                "null"
            ],
            "description": "Newest known version; null if unknown"
        },
        "state": {
            "type": "string",
            "enum": [
                "vulnerable",
                "update",
                "ok",
                "inactive"
            ],
            "description": "Worst state across the sites: vulnerable > update > ok; inactive when it is active nowhere"
        },
        "sites_with_update": {
            "type": "integer",
            "minimum": 0
        },
        "vulnerability": {
            "oneOf": [
                {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "title": {
                            "type": "string"
                        },
                        "risk": {
                            "type": "string",
                            "description": "Risk class as reported by the vulnerability source, e.g. critical, high, medium, low, unknown"
                        },
                        "fixed_in": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "description": "Version that fixes the gap; null if unknown"
                        },
                        "site_count": {
                            "type": "integer",
                            "minimum": 0,
                            "description": "Only in the fleet list: number of affected sites"
                        }
                    },
                    "required": [
                        "id",
                        "title",
                        "risk",
                        "fixed_in"
                    ],
                    "additionalProperties": false,
                    "description": "Open vulnerability"
                },
                {
                    "type": "null"
                }
            ]
        },
        "license": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "enum": [
                        "premium",
                        "free"
                    ],
                    "description": "Plugin class: premium (needs a licence) or free. Not the agency's licence type from GET /licenses."
                },
                "active": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Sites with an active licence"
                },
                "missing": {
                    "type": "integer",
                    "minimum": 0
                },
                "unknown": {
                    "type": "integer",
                    "minimum": 0
                },
                "expired": {
                    "type": "integer",
                    "minimum": 0
                },
                "expires_at": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date",
                    "description": "Earliest known expiry; null if none"
                }
            },
            "required": [
                "kind",
                "active",
                "missing",
                "unknown",
                "expired",
                "expires_at"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "slug",
        "name",
        "site_count",
        "versions",
        "latest",
        "state",
        "sites_with_update",
        "vulnerability",
        "license"
    ],
    "additionalProperties": false
}
PluginDetail
{
    "type": "object",
    "description": "Fleet view of one plugin across the token's sites",
    "properties": {
        "slug": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "site_count": {
            "type": "integer",
            "minimum": 0
        },
        "versions": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "version": {
                        "type": "string"
                    },
                    "site_count": {
                        "type": "integer",
                        "minimum": 0
                    }
                },
                "required": [
                    "version",
                    "site_count"
                ],
                "additionalProperties": false
            }
        },
        "latest": {
            "type": [
                "string",
                "null"
            ],
            "description": "Newest known version; null if unknown"
        },
        "state": {
            "type": "string",
            "enum": [
                "vulnerable",
                "update",
                "ok",
                "inactive"
            ],
            "description": "Worst state across the sites: vulnerable > update > ok; inactive when it is active nowhere"
        },
        "sites_with_update": {
            "type": "integer",
            "minimum": 0
        },
        "vulnerability": {
            "oneOf": [
                {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "title": {
                            "type": "string"
                        },
                        "risk": {
                            "type": "string",
                            "description": "Risk class as reported by the vulnerability source, e.g. critical, high, medium, low, unknown"
                        },
                        "fixed_in": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "description": "Version that fixes the gap; null if unknown"
                        },
                        "site_count": {
                            "type": "integer",
                            "minimum": 0,
                            "description": "Only in the fleet list: number of affected sites"
                        }
                    },
                    "required": [
                        "id",
                        "title",
                        "risk",
                        "fixed_in"
                    ],
                    "additionalProperties": false,
                    "description": "Open vulnerability"
                },
                {
                    "type": "null"
                }
            ]
        },
        "license": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "enum": [
                        "premium",
                        "free"
                    ],
                    "description": "Plugin class: premium (needs a licence) or free. Not the agency's licence type from GET /licenses."
                },
                "active": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Sites with an active licence"
                },
                "missing": {
                    "type": "integer",
                    "minimum": 0
                },
                "unknown": {
                    "type": "integer",
                    "minimum": 0
                },
                "expired": {
                    "type": "integer",
                    "minimum": 0
                },
                "expires_at": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date",
                    "description": "Earliest known expiry; null if none"
                }
            },
            "required": [
                "kind",
                "active",
                "missing",
                "unknown",
                "expired",
                "expires_at"
            ],
            "additionalProperties": false
        },
        "sites": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "site_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "null for a Cockpit site without public API id"
                    },
                    "domain": {
                        "type": "string"
                    },
                    "client_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Only present with clients:read; null = no customer"
                    },
                    "version": {
                        "type": "string"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "update_version": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "license_state": {
                        "type": "string",
                        "enum": [
                            "active",
                            "missing",
                            "unknown",
                            "free"
                        ]
                    },
                    "license_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "outdated_without_update",
                            "expired",
                            null
                        ],
                        "description": "Why the licence is flagged, if so"
                    },
                    "expires_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "auto_update": {
                        "type": "boolean"
                    },
                    "as_of": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time",
                        "description": "When the site's plugins were last read"
                    }
                },
                "required": [
                    "site_id",
                    "domain",
                    "version",
                    "active",
                    "update_version",
                    "license_state",
                    "license_reason",
                    "expires_at",
                    "auto_update",
                    "as_of"
                ],
                "additionalProperties": false
            }
        }
    },
    "required": [
        "slug",
        "name",
        "site_count",
        "versions",
        "latest",
        "state",
        "sites_with_update",
        "vulnerability",
        "license",
        "sites"
    ],
    "additionalProperties": false
}
PluginListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/PluginSummary"
            }
        },
        "meta": {
            "type": "object",
            "properties": {
                "request_id": {
                    "type": "string"
                },
                "next_cursor": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "counts": {
                    "type": "object",
                    "description": "Totals over all plugins in scope, independent of the state/premium filter and paging",
                    "properties": {
                        "all": {
                            "type": "integer"
                        },
                        "vulnerable": {
                            "type": "integer"
                        },
                        "update": {
                            "type": "integer"
                        },
                        "premium": {
                            "type": "integer"
                        },
                        "inactive": {
                            "type": "integer"
                        }
                    },
                    "required": [
                        "all",
                        "vulnerable",
                        "update",
                        "premium",
                        "inactive"
                    ],
                    "additionalProperties": false
                },
                "as_of": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time",
                    "description": "Oldest read time among the sites; null if none was read"
                },
                "unreadable_sites": {
                    "type": "array",
                    "description": "Sites whose last read failed",
                    "items": {
                        "type": "object",
                        "properties": {
                            "site_id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "domain": {
                                "type": "string"
                            },
                            "reason": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "site_id",
                            "domain",
                            "reason"
                        ],
                        "additionalProperties": false
                    }
                }
            },
            "required": [
                "request_id",
                "next_cursor",
                "counts",
                "as_of",
                "unreadable_sites"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
PluginResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/PluginDetail"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
SitePlugins
{
    "type": "object",
    "properties": {
        "site_id": {
            "type": "string"
        },
        "as_of": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time",
            "description": "Read time; null if never read or not in the inventory"
        },
        "reason": {
            "type": [
                "string",
                "null"
            ],
            "description": "null on success. 'never_read' (no data yet), 'not_in_inventory' (site unknown to the Cockpit), or the reason the last read failed (e.g. 'plesk')"
        },
        "plugins": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "version": {
                        "type": "string"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "update_version": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "vulnerability": {
                        "oneOf": [
                            {
                                "type": "object",
                                "properties": {
                                    "id": {
                                        "type": "string"
                                    },
                                    "title": {
                                        "type": "string"
                                    },
                                    "risk": {
                                        "type": "string",
                                        "description": "Risk class as reported by the vulnerability source, e.g. critical, high, medium, low, unknown"
                                    },
                                    "fixed_in": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Version that fixes the gap; null if unknown"
                                    }
                                },
                                "required": [
                                    "id",
                                    "title",
                                    "risk",
                                    "fixed_in"
                                ],
                                "additionalProperties": false
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "license_state": {
                        "type": "string",
                        "enum": [
                            "active",
                            "missing",
                            "unknown",
                            "free"
                        ]
                    },
                    "license_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "outdated_without_update",
                            "expired",
                            null
                        ],
                        "description": "Why the licence is flagged, if so"
                    },
                    "expires_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "version",
                    "active",
                    "update_version",
                    "vulnerability",
                    "license_state",
                    "license_reason",
                    "expires_at"
                ],
                "additionalProperties": false
            }
        }
    },
    "required": [
        "site_id",
        "as_of",
        "reason",
        "plugins"
    ],
    "additionalProperties": false
}
SitePluginsResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/SitePlugins"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
License
{
    "type": "object",
    "description": "Licence summary per plugin; never contains licence keys",
    "properties": {
        "slug": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "site_count": {
            "type": "integer",
            "minimum": 0
        },
        "active": {
            "type": "integer",
            "minimum": 0
        },
        "missing": {
            "type": "integer",
            "minimum": 0
        },
        "unknown": {
            "type": "integer",
            "minimum": 0
        },
        "paid_by": {
            "type": "string",
            "enum": [
                "client",
                "agency"
            ]
        },
        "kind": {
            "type": "string",
            "description": "The agency's own free-text licence type (e.g. 'Annual', 'Lifetime'), as entered in the panel. Not the premium/free class of GET /plugins. Omitted if not set."
        },
        "expires_at": {
            "type": "string",
            "format": "date",
            "description": "Omitted if no expiry is known"
        },
        "expires_source": {
            "type": "string",
            "enum": [
                "manual",
                "detected"
            ],
            "description": "manual = entered by the agency, detected = read from the plugin. Present with expires_at."
        },
        "days_left": {
            "type": "integer",
            "description": "Days until expiry (negative = expired). Present only when known."
        }
    },
    "required": [
        "slug",
        "name",
        "site_count",
        "active",
        "missing",
        "unknown",
        "paid_by"
    ],
    "additionalProperties": false
}
LicenseListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/License"
            }
        },
        "meta": {
            "$ref": "#/components/schemas/PageMeta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
ClientCreateRequest
{
    "type": "object",
    "description": "Fields of a new customer. own_sites cannot be set.",
    "properties": {
        "name": {
            "type": "string",
            "maxLength": 60,
            "minLength": 1,
            "description": "Unique per account (spelling-insensitive): 409 name_taken"
        },
        "contact_name": {
            "type": "string",
            "maxLength": 80
        },
        "email": {
            "type": "string",
            "maxLength": 255,
            "description": "Valid address or empty string"
        },
        "note": {
            "type": "string",
            "maxLength": 280
        },
        "maintenance_contract": {
            "type": "boolean"
        },
        "send_report": {
            "type": "boolean"
        },
        "quota_minutes": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "maximum": 65535
        },
        "price_month_cent": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "maximum": 100000000
        }
    },
    "required": [
        "name"
    ],
    "additionalProperties": false
}
ClientUpdateRequest
{
    "type": "object",
    "description": "Fields to change; at least one. own_sites cannot be changed.",
    "properties": {
        "name": {
            "type": "string",
            "maxLength": 60,
            "minLength": 1,
            "description": "Unique per account (spelling-insensitive): 409 name_taken"
        },
        "contact_name": {
            "type": "string",
            "maxLength": 80
        },
        "email": {
            "type": "string",
            "maxLength": 255,
            "description": "Valid address or empty string"
        },
        "note": {
            "type": "string",
            "maxLength": 280
        },
        "maintenance_contract": {
            "type": "boolean"
        },
        "send_report": {
            "type": "boolean"
        },
        "quota_minutes": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "maximum": 65535
        },
        "price_month_cent": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "maximum": 100000000
        }
    },
    "additionalProperties": false,
    "minProperties": 1
}
ClientDeleteRequest
{
    "type": "object",
    "properties": {
        "confirm": {
            "type": "string",
            "description": "The customer name exactly as returned by GET/POST /clients (case and whitespace sensitive; Unicode is compared in NFC). confirm must equal name as returned by GET/POST."
        }
    },
    "additionalProperties": false,
    "description": "Body of the delete. confirm must equal the exact customer name; a missing, non-string or differing confirm answers 422 confirmation_mismatch (not 400)."
}
ClientDeleted
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "deleted": {
            "type": "boolean",
            "const": true
        },
        "sites_unassigned": {
            "type": "integer",
            "minimum": 0
        },
        "work_entries_deleted": {
            "type": "integer",
            "minimum": 0
        },
        "report_rows_deleted": {
            "type": "integer",
            "minimum": 0
        },
        "share_links_deleted": {
            "type": "integer",
            "minimum": 0
        }
    },
    "required": [
        "id",
        "deleted",
        "sites_unassigned",
        "work_entries_deleted",
        "report_rows_deleted",
        "share_links_deleted"
    ],
    "additionalProperties": false
}
ClientDeletedResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/ClientDeleted"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
ClientWriteResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/Client"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
SiteClientRequest
{
    "type": "object",
    "properties": {
        "client_id": {
            "type": [
                "string",
                "null"
            ],
            "pattern": "^[1-9][0-9]{0,9}$",
            "description": "Customer id from GET /clients, or null to remove the assignment"
        }
    },
    "required": [
        "client_id"
    ],
    "additionalProperties": false
}
SiteClientResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "site_id": {
                    "type": "string"
                },
                "client": {
                    "oneOf": [
                        {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "id",
                                "name"
                            ],
                            "additionalProperties": false
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "changed": {
                    "type": "boolean"
                }
            },
            "required": [
                "site_id",
                "client",
                "changed"
            ],
            "additionalProperties": false
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WorkEntry
{
    "type": "object",
    "description": "A work log entry",
    "properties": {
        "id": {
            "type": "string"
        },
        "date": {
            "type": "string",
            "format": "date"
        },
        "minutes": {
            "type": "integer",
            "minimum": 5,
            "maximum": 1440
        },
        "text": {
            "type": "string",
            "maxLength": 280
        },
        "site_id": {
            "type": [
                "string",
                "null"
            ],
            "description": "API site id; null when the site has no API id or is outside the token's scope"
        },
        "site_url": {
            "type": [
                "string",
                "null"
            ]
        },
        "external_id": {
            "type": [
                "string",
                "null"
            ]
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC"
        }
    },
    "required": [
        "id",
        "date",
        "minutes",
        "text",
        "site_id",
        "site_url",
        "external_id",
        "created_at"
    ],
    "additionalProperties": false
}
WorkEntryRequest
{
    "type": "object",
    "properties": {
        "date": {
            "type": "string",
            "format": "date",
            "description": "YYYY-MM-DD, Europe/Berlin day; not in the future, not older than two years"
        },
        "minutes": {
            "type": "integer",
            "minimum": 5,
            "maximum": 1440
        },
        "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
        },
        "site_id": {
            "type": "string",
            "description": "Site of the token's scope"
        },
        "external_id": {
            "type": "string",
            "pattern": "^[\\x21-\\x7e]{1,100}$",
            "description": "Caller's own id, unique per account"
        }
    },
    "required": [
        "date",
        "minutes",
        "text"
    ],
    "additionalProperties": false
}
WorkEntryResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/WorkEntry"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WorkEntryListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/WorkEntry"
            }
        },
        "meta": {
            "type": "object",
            "properties": {
                "request_id": {
                    "type": "string"
                },
                "next_cursor": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "month": {
                    "type": "string",
                    "pattern": "^20[0-9]{2}-(0[1-9]|1[0-2])$"
                },
                "total_minutes": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Sum of the whole month"
                },
                "quota_minutes": {
                    "type": [
                        "integer",
                        "null"
                    ],
                    "minimum": 0
                }
            },
            "required": [
                "request_id",
                "next_cursor",
                "month",
                "total_minutes",
                "quota_minutes"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
LicenseWriteRequest
{
    "type": "object",
    "properties": {
        "paid_by": {
            "type": "string",
            "enum": [
                "agency",
                "client"
            ],
            "description": "Who pays for the licence"
        },
        "kind": {
            "type": [
                "string",
                "null"
            ],
            "maxLength": 80,
            "description": "Free-text licence type, e.g. Annual or Lifetime; null or empty = not set"
        },
        "expires_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date",
            "description": "Expiry date Y-m-d between 2000-01-01 and 2099-12-31; null or empty = not set"
        }
    },
    "required": [
        "paid_by"
    ],
    "additionalProperties": false
}
LicenseResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/License"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
ReportListItem
{
    "type": "object",
    "description": "One report period",
    "properties": {
        "period": {
            "type": "string",
            "description": "YYYY-MM or YYYYQn"
        },
        "kind": {
            "type": "string",
            "enum": [
                "month",
                "quarter"
            ]
        },
        "status": {
            "type": "string",
            "enum": [
                "open",
                "approval_sent",
                "sent",
                "failed",
                "skipped"
            ]
        },
        "sent_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time",
            "description": "UTC; only for status sent"
        },
        "scheduled_send": {
            "type": [
                "string",
                "null"
            ],
            "format": "date",
            "description": "Day of the automatic send (Europe/Berlin)"
        },
        "scheduled_approval": {
            "type": [
                "string",
                "null"
            ],
            "format": "date",
            "description": "Day of the approval mail (Europe/Berlin)"
        }
    },
    "required": [
        "period",
        "kind",
        "status",
        "sent_at",
        "scheduled_send",
        "scheduled_approval"
    ],
    "additionalProperties": false
}
ReportListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/ReportListItem"
            }
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
ReportDocument
{
    "type": "object",
    "description": "Maintenance report as the customer sees it. Absent sections have no key.",
    "properties": {
        "language": {
            "type": "string",
            "enum": [
                "de",
                "en"
            ],
            "description": "Language of the report as the customer received it (the agency's language); keys and enums stay English, dates are always YYYY-MM-DD"
        },
        "client": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                }
            },
            "required": [
                "id",
                "name"
            ],
            "additionalProperties": false
        },
        "period": {
            "type": "string"
        },
        "kind": {
            "type": "string",
            "enum": [
                "month",
                "quarter"
            ]
        },
        "from": {
            "type": "string",
            "format": "date"
        },
        "to": {
            "type": "string",
            "format": "date"
        },
        "days": {
            "type": "integer",
            "minimum": 1
        },
        "headline": {
            "type": "string",
            "enum": [
                "all_good",
                "attention"
            ]
        },
        "note": {
            "type": [
                "string",
                "null"
            ],
            "description": "Remark of the agency; null when empty"
        },
        "kpis": {
            "type": "object",
            "properties": {
                "availability_percent": {
                    "type": [
                        "number",
                        "null"
                    ],
                    "description": "One decimal"
                },
                "updates": {
                    "type": "integer"
                },
                "backups": {
                    "type": "integer"
                },
                "speed_score": {
                    "type": "integer"
                },
                "speed_score_delta": {
                    "type": "integer"
                }
            },
            "required": [
                "availability_percent"
            ],
            "additionalProperties": false,
            "description": "updates and backups can be 0 even when the panel shows no card for them"
        },
        "summary": {
            "type": "object",
            "properties": {
                "sites": {
                    "type": "integer"
                },
                "open": {
                    "type": "integer"
                }
            },
            "required": [
                "sites",
                "open"
            ],
            "additionalProperties": false
        },
        "work": {
            "type": "object",
            "properties": {
                "entries": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "date": {
                                "type": "string",
                                "format": "date"
                            },
                            "minutes": {
                                "type": "integer"
                            },
                            "text": {
                                "type": "string"
                            },
                            "site_url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "date",
                            "minutes",
                            "text",
                            "site_url"
                        ],
                        "additionalProperties": false
                    }
                },
                "minutes": {
                    "type": "integer",
                    "description": "Sum of the visible entries"
                },
                "quota_minutes": {
                    "type": [
                        "integer",
                        "null"
                    ],
                    "description": "Monthly quota; null when none (0 counts as none)"
                }
            },
            "required": [
                "entries",
                "minutes",
                "quota_minutes"
            ],
            "additionalProperties": false
        },
        "updates": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "date": {
                        "type": "string",
                        "format": "date"
                    },
                    "text": {
                        "type": "string"
                    },
                    "security": {
                        "type": "boolean"
                    },
                    "site": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Address when the update ran on exactly one site"
                    },
                    "site_count": {
                        "type": "integer"
                    }
                },
                "required": [
                    "id",
                    "date",
                    "text",
                    "security",
                    "site",
                    "site_count"
                ],
                "additionalProperties": false
            }
        },
        "sites": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "site_url": {
                        "type": "string"
                    },
                    "address": {
                        "type": "string"
                    },
                    "availability": {
                        "type": "object",
                        "properties": {
                            "level": {
                                "type": "string",
                                "enum": [
                                    "ok",
                                    "warn",
                                    "bad",
                                    "none"
                                ],
                                "description": "none = no data"
                            },
                            "percent": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "level",
                            "percent"
                        ],
                        "additionalProperties": false
                    },
                    "backup": {
                        "type": "object",
                        "properties": {
                            "level": {
                                "type": "string",
                                "enum": [
                                    "ok",
                                    "warn",
                                    "bad",
                                    "none"
                                ],
                                "description": "none = no data"
                            }
                        },
                        "required": [
                            "level"
                        ],
                        "additionalProperties": false
                    },
                    "open": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "kind": {
                                    "type": "string",
                                    "description": "updates, security, backup, availability (other values only as [a-z_]+, else other)"
                                },
                                "level": {
                                    "type": "string",
                                    "enum": [
                                        "warn",
                                        "bad"
                                    ]
                                },
                                "code": {
                                    "type": "string",
                                    "description": "updates_core, updates_plugins, security_vulnerabilities, security_malware, backup_age_days, backup_failed, backup_none, availability_below_target, availability_disrupted, availability_paused; unknown values as [a-z_]+ or other"
                                },
                                "value": {
                                    "type": [
                                        "number",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "kind",
                                "level",
                                "code",
                                "value"
                            ],
                            "additionalProperties": false
                        }
                    }
                },
                "required": [
                    "site_url",
                    "address",
                    "availability",
                    "backup",
                    "open"
                ],
                "additionalProperties": false
            }
        },
        "background": {
            "type": "object",
            "description": "Checks and scans in the background, like the panel rows: checks and outages only with checks, scans and backups only above zero, php_version and ssl_valid_until only when known",
            "properties": {
                "checks": {
                    "type": "integer"
                },
                "outages": {
                    "type": "integer"
                },
                "scans": {
                    "type": "integer"
                },
                "backups": {
                    "type": "integer"
                },
                "php_version": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "ssl_valid_until": {
                    "type": "string",
                    "format": "date"
                }
            },
            "additionalProperties": false
        },
        "speed": {
            "type": "object",
            "properties": {
                "score": {
                    "type": "integer"
                },
                "previous_month": {
                    "type": "integer"
                },
                "ttfb_ms": {
                    "type": "integer"
                },
                "history": {
                    "type": "array",
                    "description": "Oldest first, at most 6 months, only with at least 2 months",
                    "items": {
                        "type": "object",
                        "properties": {
                            "month": {
                                "type": "string",
                                "pattern": "^[0-9]{4}-[0-9]{2}$"
                            },
                            "score": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "month",
                            "score"
                        ],
                        "additionalProperties": false
                    }
                }
            },
            "required": [
                "score"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "language",
        "client",
        "period",
        "kind",
        "from",
        "to",
        "days",
        "headline",
        "note",
        "kpis",
        "summary",
        "sites"
    ],
    "additionalProperties": false
}
ReportResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/ReportDocument"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
ShareLink
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "description": "Link id"
        },
        "url": {
            "type": "string",
            "format": "uri",
            "description": "Public report URL (secret, shown once)"
        },
        "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC, 90 days after creation"
        }
    },
    "required": [
        "id",
        "url",
        "expires_at"
    ],
    "additionalProperties": false
}
ShareLinkResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/ShareLink"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
SendReportRequest
{
    "type": "object",
    "properties": {
        "resend": {
            "type": "boolean",
            "default": false,
            "description": "true = send a report again that was already sent"
        }
    },
    "additionalProperties": false
}
SendReport
{
    "type": "object",
    "properties": {
        "period": {
            "type": "string",
            "example": "2026-09"
        },
        "sent_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time",
            "description": "Time of this send (UTC); null if it could not be read afterwards"
        },
        "email": {
            "type": [
                "string",
                "null"
            ],
            "format": "email",
            "description": "The customer's current report address (read after sending); null if it could not be read"
        }
    },
    "required": [
        "period",
        "sent_at",
        "email"
    ],
    "additionalProperties": false
}
SendReportResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/SendReport"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WebhookEventType
{
    "type": "string",
    "enum": [
        "operation.succeeded",
        "operation.failed",
        "site.down",
        "site.up",
        "plugin.vulnerability_found",
        "license.expiring",
        "report.sent",
        "report.failed"
    ],
    "description": "Event types a webhook can subscribe to. Agency types (plugin.*, license.*, report.*) need the agency API; every type needs the read right of its family: operation.* the right of the operation, site.* sites:read, plugin.* and license.* plugins:read, report.* reports:read. Events of operation.* are only sent for jobs of the creating token. The additional type ping exists only as the answer to POST /webhooks/{webhook_id}/test and cannot be subscribed."
}
Webhook
{
    "type": "object",
    "description": "A webhook. Never contains the secret.",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^wh_[a-z0-9]{24}$"
        },
        "url": {
            "type": "string",
            "maxLength": 2048,
            "description": "Target URL (https, port 443 or 1024-65535, DNS name, no turbopress.de host)"
        },
        "events": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/WebhookEventType"
            },
            "minItems": 1,
            "maxItems": 8,
            "uniqueItems": true
        },
        "active": {
            "type": "boolean"
        },
        "disabled_reason": {
            "type": [
                "string",
                "null"
            ],
            "enum": [
                "failing",
                "token_revoked",
                null
            ],
            "description": "null while active or after the owner switched it off. failing = switched off by the platform (3 days without success and at least 20 dead deliveries; the owner gets an email; PATCH {\"active\": true} switches it on again). token_revoked = the creating token was revoked, expired or lost its issuer (cannot be re-enabled: 409 webhook_token_revoked; create a new webhook)."
        },
        "failure_count": {
            "type": "integer",
            "minimum": 0,
            "description": "Failed delivery attempts since the last success or since enabling"
        },
        "created_at": {
            "type": "string",
            "format": "date-time"
        },
        "last_success_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time"
        },
        "last_failure_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time"
        }
    },
    "required": [
        "id",
        "url",
        "events",
        "active",
        "disabled_reason",
        "failure_count",
        "created_at",
        "last_success_at",
        "last_failure_at"
    ],
    "additionalProperties": false
}
WebhookCreateRequest
{
    "type": "object",
    "properties": {
        "url": {
            "type": "string",
            "maxLength": 2048,
            "description": "Target URL (https, port 443 or 1024-65535, DNS name, no turbopress.de host)"
        },
        "events": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/WebhookEventType"
            },
            "minItems": 1,
            "maxItems": 8,
            "uniqueItems": true
        }
    },
    "required": [
        "url",
        "events"
    ],
    "additionalProperties": false
}
WebhookCreateResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "pattern": "^wh_[a-z0-9]{24}$"
                },
                "url": {
                    "type": "string",
                    "maxLength": 2048,
                    "description": "Target URL (https, port 443 or 1024-65535, DNS name, no turbopress.de host)"
                },
                "events": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/WebhookEventType"
                    },
                    "minItems": 1,
                    "maxItems": 8,
                    "uniqueItems": true
                },
                "active": {
                    "type": "boolean"
                },
                "disabled_reason": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "enum": [
                        "failing",
                        "token_revoked",
                        null
                    ],
                    "description": "null while active or after the owner switched it off. failing = switched off by the platform (3 days without success and at least 20 dead deliveries; the owner gets an email; PATCH {\"active\": true} switches it on again). token_revoked = the creating token was revoked, expired or lost its issuer (cannot be re-enabled: 409 webhook_token_revoked; create a new webhook)."
                },
                "failure_count": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Failed delivery attempts since the last success or since enabling"
                },
                "created_at": {
                    "type": "string",
                    "format": "date-time"
                },
                "last_success_at": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time"
                },
                "last_failure_at": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "format": "date-time"
                },
                "secret": {
                    "type": "string",
                    "pattern": "^whsec_[0-9a-f]{64}$",
                    "example": "whsec_abababababababababababababababababababababababababababababababab",
                    "description": "Signing secret. Shown only in this answer; it is not stored in plain text and cannot be read again (use POST /webhooks/{webhook_id}/rotate-secret for a new one)."
                }
            },
            "required": [
                "id",
                "url",
                "events",
                "active",
                "disabled_reason",
                "failure_count",
                "created_at",
                "last_success_at",
                "last_failure_at",
                "secret"
            ],
            "additionalProperties": false
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WebhookUpdateRequest
{
    "type": "object",
    "properties": {
        "url": {
            "type": "string",
            "maxLength": 2048,
            "description": "Target URL (https, port 443 or 1024-65535, DNS name, no turbopress.de host)"
        },
        "events": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/WebhookEventType"
            },
            "minItems": 1,
            "maxItems": 8,
            "uniqueItems": true
        },
        "active": {
            "type": "boolean",
            "description": "true switches a webhook on again (resets failure_count; not possible after token_revoked), false switches it off and ends its open deliveries (dead, last_error webhook_inactive)."
        }
    },
    "minProperties": 1,
    "additionalProperties": false,
    "description": "At least one field. An empty body answers 400 invalid_arguments."
}
WebhookResponse
{
    "type": "object",
    "properties": {
        "data": {
            "$ref": "#/components/schemas/Webhook"
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WebhookListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/Webhook"
            },
            "maxItems": 10
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WebhookDelivery
{
    "type": "object",
    "description": "One delivery of an event to one webhook (outbox row). Kept for 14 days.",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^whd_[a-z0-9]{24}$",
            "description": "Delivery id, sent as header Turbopress-Delivery; identical for every retry"
        },
        "event_id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id (field id of the body)"
        },
        "event_type": {
            "type": "string",
            "enum": [
                "operation.succeeded",
                "operation.failed",
                "site.down",
                "site.up",
                "plugin.vulnerability_found",
                "license.expiring",
                "report.sent",
                "report.failed",
                "ping"
            ]
        },
        "status": {
            "type": "string",
            "enum": [
                "pending",
                "failed",
                "sent",
                "dead"
            ],
            "description": "pending = never tried, failed = tried, next attempt planned, sent = answered 2xx, dead = given up (after 8 attempts, a failed ping, or ended without an attempt)"
        },
        "attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8
        },
        "next_attempt_at": {
            "type": [
                "string",
                "null"
            ],
            "format": "date-time"
        },
        "last_status_code": {
            "type": [
                "integer",
                "null"
            ],
            "description": "HTTP status of the last attempt that got an answer"
        },
        "last_error": {
            "type": [
                "string",
                "null"
            ],
            "enum": [
                "http_status",
                "timeout",
                "connect_failed",
                "tls_failed",
                "transport_error",
                "address_mismatch",
                "address_rejected",
                "url_rejected",
                "access_removed",
                "webhook_inactive",
                null
            ],
            "description": "Fixed code of the last failure, never text of the remote side. http_status = no 2xx answer, timeout, connect_failed, tls_failed, transport_error, address_mismatch = the connection went to another address than the checked one, address_rejected = the name did not resolve or resolved to a non-public address, url_rejected = the stored URL no longer passes the URL rules, access_removed = the token lost the right for this event or site (ended without an attempt), webhook_inactive = the webhook was switched off (ended without an attempt)."
        },
        "created_at": {
            "type": "string",
            "format": "date-time"
        },
        "updated_at": {
            "type": "string",
            "format": "date-time"
        },
        "payload": {
            "type": [
                "object",
                "null"
            ],
            "description": "The event as sent (id, type, created_at, data)"
        }
    },
    "required": [
        "id",
        "event_id",
        "event_type",
        "status",
        "attempts",
        "next_attempt_at",
        "last_status_code",
        "last_error",
        "created_at",
        "updated_at",
        "payload"
    ],
    "additionalProperties": false
}
WebhookDeliveryListResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "$ref": "#/components/schemas/WebhookDelivery"
            },
            "maxItems": 50
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WebhookTestResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "delivery_id": {
                    "type": "string",
                    "pattern": "^whd_[a-z0-9]{24}$"
                },
                "event_id": {
                    "type": "string",
                    "pattern": "^evt_[a-z0-9]{24}$"
                },
                "status": {
                    "type": "string",
                    "enum": [
                        "pending"
                    ]
                }
            },
            "required": [
                "delivery_id",
                "event_id",
                "status"
            ],
            "additionalProperties": false
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WebhookSecretResponse
{
    "type": "object",
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "pattern": "^wh_[a-z0-9]{24}$"
                },
                "secret": {
                    "type": "string",
                    "pattern": "^whsec_[0-9a-f]{64}$",
                    "example": "whsec_abababababababababababababababababababababababababababababababab",
                    "description": "Signing secret. Shown only in this answer; it is not stored in plain text and cannot be read again (use POST /webhooks/{webhook_id}/rotate-secret for a new one)."
                }
            },
            "required": [
                "id",
                "secret"
            ],
            "additionalProperties": false
        },
        "meta": {
            "$ref": "#/components/schemas/Meta"
        }
    },
    "required": [
        "data",
        "meta"
    ],
    "additionalProperties": false
}
WebhookEventOperationSucceeded
{
    "type": "object",
    "description": "A job of this token finished successfully.",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "operation.succeeded"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "operation": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "action": {
                            "type": "string",
                            "description": "Operation kind, e.g. cache:purge"
                        },
                        "status": {
                            "type": "string",
                            "enum": [
                                "succeeded"
                            ]
                        },
                        "error_code": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    "required": [
                        "id",
                        "action",
                        "status",
                        "error_code"
                    ],
                    "additionalProperties": false
                },
                "site": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "domain": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    "required": [
                        "id",
                        "domain"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "operation",
                "site"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventOperationFailed
{
    "type": "object",
    "description": "A job of this token failed, or ended with an unknown result (status unknown).",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "operation.failed"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "operation": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "action": {
                            "type": "string",
                            "description": "Operation kind, e.g. cache:purge"
                        },
                        "status": {
                            "type": "string",
                            "enum": [
                                "failed",
                                "unknown"
                            ]
                        },
                        "error_code": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    "required": [
                        "id",
                        "action",
                        "status",
                        "error_code"
                    ],
                    "additionalProperties": false
                },
                "site": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "domain": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    "required": [
                        "id",
                        "domain"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "operation",
                "site"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventSiteDown
{
    "type": "object",
    "description": "A confirmed outage of a monitored site began.",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "site.down"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "site": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "domain": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "domain"
                    ],
                    "additionalProperties": false
                },
                "outage": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "started_at": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "reason": {
                            "type": "string",
                            "enum": [
                                "timeout",
                                "tls",
                                "dns",
                                "connection",
                                "http_5xx",
                                "redirect_not_allowed",
                                "too_many_redirects",
                                "target_blocked",
                                "target_not_allowed",
                                "empty_body",
                                "unexpected_status",
                                "unknown"
                            ]
                        }
                    },
                    "required": [
                        "id",
                        "started_at",
                        "reason"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "site",
                "outage"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventSiteUp
{
    "type": "object",
    "description": "The outage ended. Sent only to webhooks that received the matching site.down.",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "site.up"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "site": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "domain": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "domain"
                    ],
                    "additionalProperties": false
                },
                "outage": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "started_at": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "reason": {
                            "type": "string",
                            "enum": [
                                "timeout",
                                "tls",
                                "dns",
                                "connection",
                                "http_5xx",
                                "redirect_not_allowed",
                                "too_many_redirects",
                                "target_blocked",
                                "target_not_allowed",
                                "empty_body",
                                "unexpected_status",
                                "unknown"
                            ]
                        },
                        "ended_at": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "duration_seconds": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    "required": [
                        "id",
                        "started_at",
                        "reason",
                        "ended_at",
                        "duration_seconds"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "site",
                "outage"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventPluginVulnerabilityFound
{
    "type": "object",
    "description": "A known vulnerability was found in an installed plugin (once per site, plugin and vulnerability).",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "plugin.vulnerability_found"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "site": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "description": "null if the site is not in the API inventory"
                        },
                        "domain": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "domain"
                    ],
                    "additionalProperties": false
                },
                "client_id": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "description": "Customer id (string, as in GET /clients), null if the site is not assigned"
                },
                "plugin": {
                    "type": "object",
                    "properties": {
                        "slug": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "version": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "slug",
                        "name",
                        "version"
                    ],
                    "additionalProperties": false
                },
                "vulnerability": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string",
                            "description": "Identifier of the vulnerability source; may be an empty string"
                        },
                        "title": {
                            "type": "string"
                        },
                        "risk": {
                            "type": "string"
                        },
                        "fixed_in": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    "required": [
                        "id",
                        "title",
                        "risk",
                        "fixed_in"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "site",
                "client_id",
                "plugin",
                "vulnerability"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventLicenseExpiring
{
    "type": "object",
    "description": "A plugin license reached a threshold (once per license, expiry date and threshold).",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "license.expiring"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "license": {
                    "type": "object",
                    "properties": {
                        "slug": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "expires_at": {
                            "type": "string",
                            "format": "date"
                        },
                        "days_left": {
                            "type": "integer",
                            "description": "Negative once expired"
                        },
                        "threshold": {
                            "type": "string",
                            "enum": [
                                "30_days",
                                "7_days",
                                "expired"
                            ]
                        }
                    },
                    "required": [
                        "slug",
                        "name",
                        "expires_at",
                        "days_left",
                        "threshold"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "license"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventReportSent
{
    "type": "object",
    "description": "A maintenance report was sent to the end customer (a resend is a new event).",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "report.sent"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "client": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string",
                            "description": "Customer id (string, as in GET /clients)"
                        },
                        "name": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "name"
                    ],
                    "additionalProperties": false
                },
                "period": {
                    "type": "string",
                    "description": "YYYY-MM or YYYYQn"
                },
                "kind": {
                    "type": "string",
                    "enum": [
                        "month",
                        "quarter"
                    ]
                },
                "sent_at": {
                    "type": "string",
                    "format": "date-time"
                }
            },
            "required": [
                "client",
                "period",
                "kind",
                "sent_at"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventReportFailed
{
    "type": "object",
    "description": "Sending a maintenance report failed. Once per report and period until the next successful send.",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "report.failed"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "client": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string",
                            "description": "Customer id (string, as in GET /clients)"
                        },
                        "name": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "name"
                    ],
                    "additionalProperties": false
                },
                "period": {
                    "type": "string",
                    "description": "YYYY-MM or YYYYQn"
                },
                "kind": {
                    "type": "string",
                    "enum": [
                        "month",
                        "quarter"
                    ]
                }
            },
            "required": [
                "client",
                "period",
                "kind"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}
WebhookEventPing
{
    "type": "object",
    "description": "Test event from POST /webhooks/{webhook_id}/test. One attempt, no retries.",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^evt_[a-z0-9]{24}$",
            "description": "Event id; identical for every webhook and every retry of the same event"
        },
        "type": {
            "type": "string",
            "const": "ping"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened (UTC), not when it was sent"
        },
        "data": {
            "type": "object",
            "properties": {
                "webhook_id": {
                    "type": "string",
                    "pattern": "^wh_[a-z0-9]{24}$"
                }
            },
            "required": [
                "webhook_id"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "id",
        "type",
        "created_at",
        "data"
    ],
    "additionalProperties": false
}