Skip to main content

MyGeotab SDK Authenticate in POSTMAN

DPete-1854
Original Poster

I'm a new GEOTAB customer, trying to authenticate using POSTMAN. I've read the discussions, but I don't find an answer to my problem. I can authentication successfully from a browser to get a session-id. When I attempt to authentication from POSTMAN I get an return code of 200, but the results shows a JSONRPCError. I'm not sure what I'm doing wrong. I 've read the related discussion items but haven't found an answer to resolve the issue I'm having. I'm doing a POST with the endpoint https://my.geotab.com/apiv1. I have the body {

    "method": "Authenticate",

    "params": {

        "database": {{geotab_database}},

        "password": {{geotab_password}},

        "userName": {{geotab_user}}

    }

}

I get a RC = 200, with the following result:

{

    "error": {

        "message": "An error occurred dealing with JSON data.",

        "code": -32700,

        "data": {

            "id": "2ff6e525-5ea9-4455-8f98-bc940c09c5cf",

            "type": "JsonSerializerException",

            "requestIndex": 0

        },

        "name": "JSONRPCError",

        "errors": [

            {

                "message": "An error occurred dealing with JSON data.",

                "name": "JsonSerializerException"

            }

        ]

    },

    "jsonrpc": "2.0",

    "requestIndex": 0

}

Join the conversation

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

Top Answers

Hey @DPete-1854​,

 

Try this:

 

Postman_aotKFhtCLf 

 

Hope this helps!

 

Thanks,

Tucker

2 Replies

Hey @DPete-1854​,

 

Try this:

 

Postman_aotKFhtCLf 

 

Hope this helps!

 

Thanks,

Tucker

DPete-1854
Original Poster

Thank you kind sir, I appreciate the help. When I changed the body to use form-data with properly formatted info, I was able to get a session-id.😀

Still have questions?