Remote API access

Discussion in 'General' started by _pX_, May 22, 2025.

  1. _pX_

    _pX_ New Member

    I'm trying to do a small automation based on N8N and I'm trying (first) to authorize myself via /remote/json.php, but without a positive result.
    I created a remote user.

    I found information that authorization data should be passed in BODY in JSON as:
    Code:
    {
    "jsonrpc": "2.0",
    "method": "login",
    "params": ["remote_user_name", "remote_user_pass"],
    "id": 1
    }
    but no matter what I do, I always get at the end:
    Code:
    {
    "code": "invalid_method",
    "message": "Method not provided in json call",
    "response": false
    }
    What am I doing wrong?
    Regards,
    Dawid
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. till

    till Super Moderator Staff Member ISPConfig Developer

  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. _pX_

    _pX_ New Member

    Thank you.
    All the instructions I found led me in the wrong direction - now it looks promising and I'm moving on.
     
  6. _pX_

    _pX_ New Member

    I'm stuck again.
    What I want to achieve at the moment is access to the user's autoresponder (setting an autoresponder).
    The user sends an email to the appropriate address, which N8N receives, checks all conditions (security) and tries to set up an autoresponder.
    I created a remote API user and gave him full rights temporarily.
    What I achieved is logging into the API (/remote/json.php?login) and getting the session ID via

    Code:
    {
    "username": "remoteuser",
    "password": "remotepass",
    "client_login": false
    }
    but any call to /remote/json.php?mail_user_get or client_get
    returns me empty response

    Code:
    {
        "code": "ok",
        "message": "",
        "response": []
    }
    Any help?
     

Share This Page