1
0
-1

I'm trying to test the v2 API using Postman. This is my first time using any API and Postman. I put https://api.rescuegroups.org/http/v2.json in the GET request url and a sample 

{
"username":"demo",
"password":"demodemo",
"accountNumber":"1",
"action":"login"
}

in the body of the request. I made sure to note that it was raw and the text type was JSON. I got a 200 OK response back, but 

({
"status": "error",
"message": "Unable to read your data; it might not be in json format."
})

as the message. Please help! I'm not sure what to do!

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      Hi Joshua Jen,

      I had a similar issue a while back. I believe your issue has to do with the way the body is formed and the request method you are using.

      Your request body should look like this:

      // Using JS
      {
          "data": [ // credentials should be in an array
              {
                 "username": "demo",
                 "password": "demodemo",
                 "accountNumber": "1",
                 "action": "login" 
              }
          ]
      }

      And, your request method should be POST.

      I hope this helps!

      Dan

        CommentAdd your comment...
      1.  
        2
        1
        0

        Yes, it worked! Thank you so much!

        CommentAdd your comment...