Onramp API Integration.
Crypto Tokens
Fetch Tokens
1 min
tab examples url https stg api onmeta in v1 tokens name fetch tokens method get request pathparameters queryparameters headerparameters kind required name x api key type string children description x api key bodydataparameters formdataparameters results languages id tkw h1rt525j5bu6kkkjp code n n address 0x9c3c9283d3e44854697cd22d3faa240cfb032889 n chainid 80001 n decimals 18 n name wrapped matic wmatic n symbol wmatic n n language 200 customlabel id hh3ezj jjdjljs6z1lub0 code n success false n error n code 401 n message unauthorized to access n n language 401 customlabel selectedlanguageid tkw h1rt525j5bu6kkkjp examples languages id cj60czqatli6hcdrrquxv code curl location request get https stg api onmeta in v1 tokens n header accept application json n header x api key string language curl customlabel id c6ycsql8uk498lqdusgj1 code var request require request ; nvar options n method get n url https stg api onmeta in v1 tokens n headers n accept application json n x api key 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 fxkvhagevi74noqnpcits code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append x api key string ; n nvar requestoptions n method get n headers myheaders n redirect follow n ; n nfetch https stg api onmeta in v1 tokens requestoptions n then response response text n then result console log result n catch error console log error error ; language javascript customlabel id v3epbxmrbbpen6gygls w code import requests n nurl https stg api onmeta in v1 tokens n npayload nheaders n accept application json n x api key string n n nresponse requests request get url headers headers data payload n nprint response text n language python customlabel id h2ipryw4yqpaqgyfw8sgb code require uri nrequire net http n nurl uri https stg api onmeta in v1 tokens n nhttps net http new url host url port nhttps use ssl true n nrequest net http get new url nrequest accept application json nrequest x api key string n nresponse https request request nputs response read body n language ruby customlabel selectedlanguageid c6ycsql8uk498lqdusgj1 description fetch list of enabled tokens for your api key currentnewparameter label header parameter value headerparameters response name id kind optional type string description id of the cake retrieved if you are not seeing the desired coin in response list check the selected token list in dashboard once all selected tokens from dashboard will be visible in response