PT EN

Definições das aplicações

URL base: $PUBLIC_API

O objecto

uploadsobject · obrigatório
Mostrar atributos filhos
max_file_bytesinteger (int64) · obrigatório
sessionobject · obrigatório
Mostrar atributos filhos
refresh_ahead_secondsinteger (int64) · obrigatório
challengeobject · opcional

Present only when security.challenge.provider is not none.

Mostrar atributos filhos
providerstring · obrigatório

um de builtin, turnstile, hcaptcha, recaptcha

site_keystring · opcional
challenge_urlstring (uri) · opcional
attributionstring · opcional
O objecto
{
  "uploads": {
    "max_file_bytes": 1
  },
  "session": {
    "refresh_ahead_seconds": 1
  },
  "challenge": {
    "provider": "builtin",
    "site_key": "site key",
    "challenge_url": "https://example.org/",
    "attribution": "attribution"
  }
}

Obter as definições das aplicações

Registos

GET /client-settings

The largest file an upload may carry (storage.uploads.max_file_bytes) and how long before an access token expires to renew it (security.token_refresh_ahead), so no client repeats them in its own code. Clients that cannot read it keep working: the server enforces the limit, and a 401 still triggers a refresh.

Devolve

200 Client settings

Mostrar atributos
uploadsobject · obrigatório
Mostrar atributos filhos
max_file_bytesinteger (int64) · obrigatório
sessionobject · obrigatório
Mostrar atributos filhos
refresh_ahead_secondsinteger (int64) · obrigatório
challengeobject · opcional

Present only when security.challenge.provider is not none.

Mostrar atributos filhos
providerstring · obrigatório

um de builtin, turnstile, hcaptcha, recaptcha

site_keystring · opcional
challenge_urlstring (uri) · opcional
attributionstring · opcional
curl -X GET "$PUBLIC_API/client-settings"
Resposta 200
{
  "uploads": {
    "max_file_bytes": 1
  },
  "session": {
    "refresh_ahead_seconds": 1
  },
  "challenge": {
    "provider": "builtin",
    "site_key": "site key",
    "challenge_url": "https://example.org/",
    "attribution": "attribution"
  }
}