Onramp API Integration.
Customer login
User Login
1 min
tab examples url https stg api onmeta in v1 users login name user login method post request pathparameters queryparameters headerparameters kind required name x api key type string children description example api key from dashboard bodydataparameters kind required name email type string description example test test com formdataparameters results languages id tmxwevwoulyzddphr ltm code n success true n data n accesstoken eyjhbgcioijiuzi1niisinr5cci6ikpxvcj9 eyj1c2vyswqioic n refreshtoken eyjhbgcioijiuzi1niisinr5cci6ikpxvcj9 8xzsmpzn9nuww0 n bankdetails n accountnumber xxxx5528 n accountname satoshi nakamoto n ifsc btc0003980 n branchaddress btc island n n pannumber n n error n language 200 customlabel id wo4knely3rk3lrrfmdycp code n success false n error n code 400 n message bad request n n language 400 customlabel id v6h6mwg9bfuvpgef cfzr code n success false n error n code 401 n message unauthorized to access n n language 401 customlabel id 1rrl4n6eyzzmsa952nz7m code n success false n error n code 500 n message internal server error n n language 500 customlabel selectedlanguageid 1rrl4n6eyzzmsa952nz7m examples languages id mehp dcix3pxdsb0 hlj6 code curl location request post https stg api onmeta in v1 users login n header accept application json n header x api key string n data raw email string language curl customlabel id nhqgaxsr1m8exbpht cyf code var request require request ; nvar options n method post n url https stg api onmeta in v1 users login n headers n accept application json n x api key string n n body email 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 eq4vsmn0cvuwpgz vtmsv code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append x api key string ; n nvar raw email string ; n nvar requestoptions n method post n headers myheaders n body raw n redirect follow n ; n nfetch https stg api onmeta in v1 users login requestoptions n then response response text n then result console log result n catch error console log error error ; language javascript customlabel id fkohawcraqqv i mdkyve code import requests n nurl https stg api onmeta in v1 users login n npayload email string nheaders n accept application json n x api key string n n nresponse requests request post url headers headers data payload n nprint response text n language python customlabel id 8b rrqrpqsi04n8mn8xhp code require uri nrequire net http n nurl uri https stg api onmeta in v1 users 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 x api key string nrequest body email string n nresponse https request request nputs response read body n language ruby customlabel selectedlanguageid eq4vsmn0cvuwpgz vtmsv description using email let us create access token which can be utilised for subsequent api request without this request will be denied with reason as unauthorised currentnewparameter label header parameter value headerparameters sample request body { 	"email" "test\@test com" }