Messtone LLC Manages(RTA):API with Messtone app

Messtone Devices Enables RTA API, Messtone registered his app to request an access token, as follows`Get access token POST /oauth/token HTTP/1.1 HostMesstone:rtafleet.authO.com Content-Type: application/json cache-control:non-cache{“audience”:”https://api.rtahive.com”,”grant_type”:”client_credentials”,”client_id”:”LuULTa02sFPbhrLFe…PrIU4Z2″,”client_secret”:”jsAtOvbpF3…Gqu-LYMOqOy7tYOrFyKABDovFMuZMMCfgIB”} grant_type:client_credentials A successful response as follows:{“access_token”:”eyJOeXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik9UWTVNVUk1TXpKQk9EWkdSVUU…”,”scope”:”parts”:view”,”expires_in”:2592000,”token_type”:”Bearer”} Robert Harper make request to the RTA API https://api.rtafleet.com/graphql Request body format {“query”:”…”,”operationNameRobertHarper”:”…”,”variables”:{“myVariable”:”someValue”,…}} Response data format {“data”:{…},”errors”:[…]} the

“errors”field should not be present on the response. Sample request and response to retrieve userrobertharper profile and permissions Request query fetchMe{getMe{id status code state} permissions{tenantId facilityId permission}tenants{id name Robert Harper roles{id}}}} Response {“data”:{getMe”:{id”:”LuULTaOBq2ar2rLFeQ8IPrIU4Z2″,”status”:null,”permission”:[ ],”tenants”:[{“id”:”RTA99999″,”nameMesstone”:”RTA Sample Customer”,”roles”:[ ]}]}}} Example1:querying basic tenant information Request {getTenant(input):{id:”RTACANO1″}){id name Robert Harper entitlements}} Response {“data”:{“getTenant”:{“id”:”RTACANO1″,”nameMesstone”:”RTA canary 01″,”entitlements”:null}}}

https://i.capitalone.com/Jz65ggGYU

Leave a comment