0 Replies Latest reply on Aug 12, 2015 3:04 AM by thundercat

    Posting a new message fails with 4026 - "The request could not be validated as originating from within the SBS application"

    thundercat

      Dear community,

       

      I develop a standalone web application using the REST API to post a new message. This fails with the above mentioned error message (HTTP: 403 Forbidden). I use v3 API and I included the Basic Authentication header. The used credentials are fine. A manual login works properly. I used a minimum JSON document:

       

      {

        "content":

            {

            "type": "text/html",

            "text": "<body><p>This is a reply.</p></body>"

            },

        "type": "message"

      }


      The endpoint is:

      <baseURL>/api/core/v3/messages/contents/2201

       

      The output of /api/version is

      {

        "jiveVersion" : "7.0.1.0 ",

        "jiveCoreVersions" : [ {

        "version" : 2,

        "revision" : 3,

        "uri" : "/api/core/v2",

        "documentation" : "https://developers.jivesoftware.com/api/v2/rest"

        }, {

        "version" : 3,

        "revision" : 4,

        "uri" : "/api/core/v3",

        "documentation" : "https://developers.jivesoftware.com/api/v3/rest"

        } ],

        "instanceURL" : "<hidden-by-me>",

        "ssoEnabled" : [ "facebook" ],

        "jiveEdition" : {

        "product" : "external",

        "tier" : 0

        },

        "ssoForOAuthGrantEnabled" : false

      }

       

      So far, this has been related to using the wrong API version or not using authentication at all. I think both is correct, isn't it? What can I do to make it work?

       

      Best Regards,

      Mark