Foxel
Menu
On this page

Cloudreve V4

Connect a Cloudreve V4 personal file space through its user API, with reads/writes, directory management, and quota reporting.

Adapter type: cloudreve. See Common configuration for mounting instructions.

Setup

  1. Set base_url to the Cloudreve V4 site URL without /api/v4.
  2. Use email and password for normal login. Complete CAPTCHA or additional verification in the browser when required.
  3. After browser login, find user access_token and refresh_token in the login/refresh response in Network tools or Local Storage. Map them to token and refresh_token.
  4. Use a Cloudreve URI for root: cloudreve://my for personal files, or a subdirectory such as cloudreve://my/Documents.

Configuration

Provide at least one authentication method: email + password, token, or refresh_token.

FieldTypeRequiredDefaultDescription
base_urlstringYes—Full HTTP(S) service URL; use the site address or protocol endpoint described below.
emailstringNo—Login email for password authentication.
passwordpasswordNo—Remote account password.
tokenpasswordNo—User access token (Bearer), not an SDK key.
refresh_tokenpasswordNo—User refresh token, which can be used on its own to obtain access.
rootstringNo"cloudreve://my"Cloudreve URI, such as cloudreve://my or cloudreve://my/Documents.
timeoutnumberNo60Request or connection timeout in seconds.

Example

This is a config object. In the admin form, fill the corresponding fields rather than pasting the whole object. Replace credential placeholders with your own values.

json
{
  "base_url": "https://cloudreve.example.com",
  "email": "[email protected]",
  "password": "YOUR_PASSWORD",
  "root": "cloudreve://my",
  "timeout": 60
}

Behavior and limitations

  • Supply at least email/password, a user access token, or a refresh token. Retain a refresh token for renewal when possible.
  • This is the V4 adapter, separate from V3 APIs. It does not use an SDK key or expose anonymous share mode.
  • Login/refresh tokens are saved to configuration. An access-token-only setup requires manual replacement or renewable credentials when it expires.

Troubleshooting

  • 404: verify the server is V4, the site URL is correct, and the proxy allows /api/v4.
  • 401 / CAPTCHA: complete browser verification and supply user tokens rather than an SDK key.
  • Root must use cloudreve:// URI: use cloudreve://my or a child URI rather than /Documents alone.

References

External documentation provides service and authorization context. Use this page and the current Foxel adapter for configuration fields and limitations.