API referenceSections

Start connecting a cloud account; the browser goes to auth_url, the service's consent page (OAuth2 with PKCE)

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/backups/cloud/connect

Start connecting a cloud account; the browser goes to auth_url, the service's consent page (OAuth2 with PKCE)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • provider string required
    Allowed values: "gdrive" "onedrive" "dropbox"
  • folder string optional

    Default: Zopanel backups

Example
{
  "provider": "gdrive",
  "folder": "string"
}

Responses

200 Where to send the browser

Content type: application/json

object
  • auth_url string required
Example
{
  "auth_url": "string"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required