Skip to content
Maua.Culturewire

Nextcloud

Files, shares, users and groups of your Nextcloud

ProductivityCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Nextcloud URLRequiredHTTPS URL
    • LoginRequired
    • App passwordSecretRequired

    Where to find them

    1. In Nextcloud click your avatar (top right), open “Settings” and then “Security” in the left menu.
    2. At the bottom of “Devices & sessions”, type a name in “App name” (e.g. Maua.Culturewire) and click “Create new app password”; confirm with your account password when asked.
    3. Copy the “Login” and the “Password” from “New app password”: the password is shown only once.
    4. Paste them here, together with your Nextcloud address. The app password acts as your account (it is the only kind of password that works with two-factor authentication on) and can be revoked from “Devices & sessions”.

    Get credentials (opens in a new tab)

Tools (1)

  • Nextcloud API requestNEXTCLOUD_SEND_REQUEST

    Authenticated call to the Nextcloud API ({url}). Any endpoint of the API is allowed. OCS API (JSON): GET /ocs/v2.php/cloud/user (your account: its “id” is the {user} of file paths), GET /ocs/v2.php/cloud/capabilities (version and enabled features), GET /ocs/v2.php/search/providers/files/search?term=… (find files by name), GET /ocs/v2.php/apps/files_sharing/api/v1/shares (add ?shared_with_me=true for the ones shared with you), POST /ocs/v2.php/apps/files_sharing/api/v1/shares {"path":"/Documents/report.pdf","shareType":3} (public link; shareType 0 with "shareWith":"<user>" shares with a user), GET /ocs/v2.php/cloud/users and GET /ocs/v2.php/cloud/groups (administrators and group admins only). Files (WebDAV): GET /remote.php/dav/files/{user}/Documents/notes.txt (download; binary files come back as base64), PUT /remote.php/dav/files/{user}/Documents/notes.txt with body_base64 (upload or overwrite; the folder must exist), DELETE /remote.php/dav/files/{user}/Documents/notes.txt.

    Required scopes

    No scopes required

    Input

    Nextcloud API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.