API Endpoints
Authenticate
2 min
login this api endpoint is used to send a post request and generate a bearer token for authentication for further access tab examples url https tnt api rpalabs io api v1 auth login name overview method post request pathparameters queryparameters headerparameters bodydataparameters kind required name key type string description the key is used as identification to request the authentication process kind required name secret type string description secret serves as a password to request the initiation of the authentication process formdataparameters results languages id vh bybwktfxwvfcti9ep code r n type bearer r n access token eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjmcmvzaci6zmfsc2usimlhdci6mty2mdcymjg0nywianrpijoimzkwmmvmnwutmta0ns00mjyylwixzdktmtg1mgfimwfmy2m4iiwidhlwzsi6imfjy2vzcyisinn1yii6inrlc3qilcjuymyioje2nja3mji4ndcsimv4cci6mty2mdcyndy0n30 8ebqg7d095kpi50ilrt74sjzobbvy6oj2lrlnujkiek r n expiry duration 1800 r n language 200 customlabel id 1wfsysho3bfk llnhhc4m code r n message password error please try again with correct password r n status 400 r n error code 3 r n language 400 customlabel selectedlanguageid vh bybwktfxwvfcti9ep examples languages id dpcrid cg1bjb7mcdx8ow code curl location request post https tnt api rpalabs io api v1 auth login n header accept application json n data raw key string secret string language curl customlabel id z e1hhgtg i8im7ofsfof code var request require request ; nvar options n method post n url https tnt api rpalabs io api v1 auth login n headers n accept application json n n body key string secret string n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n language nodejs customlabel id zzsrmhzqop3sf a5gbnef code var myheaders new headers ; nmyheaders append accept application json ; n nvar raw key string secret string ; n nvar requestoptions n method post n headers myheaders n body raw n redirect follow n ; n nfetch https tnt api rpalabs io api v1 auth login requestoptions n then response response text n then result console log result n catch error console log error error ; language javascript customlabel id uuvvgwckugwsknc4f5zf7 code import http client n nconn http client httpsconnection tnt api rpalabs io npayload key string secret string nheaders n accept application json n nconn request post api v1 auth login payload headers nres conn getresponse ndata res read nprint data decode utf 8 language python customlabel id wdcil9dnjtdvtqnwx0v p code require uri nrequire net http n nurl uri https tnt api rpalabs io api v1 auth login n nhttps net http new url host url port nhttps use ssl true n nrequest net http post new url nrequest accept application json nrequest body key string secret string n nresponse https request request nputs response read body n language ruby customlabel selectedlanguageid dpcrid cg1bjb7mcdx8ow description this endpoint allows the user to request authentication by using the name as the key authentication and the secret as the password the request will return data with an access token currentnewparameter label header parameter value headerparameters see the error handling page for troubleshooting any errors âī¸ need some help? if you encounter a problem or require assistance, please contact our support team with details regarding your request at support\@rippey ai a representative will connect with you soon đ