API Reference
Server
Supported Tokens

Get an array of all the whitelisted tokens on your API key.

How to whitelist a token? Click here

Headers

x-api-key : string
The S2S API Key provided by Okto.


Query Parameters

page : number
Page number. Default is 1.


size : number
Number of items per page. Default is 10.


user_id : string
User ID of the user for whom you want to get the tokens.


Code

curl -X GET '${baseUrl}/s2s/api/v1/supported/tokens??user_id=80f5b553-4650-4943-9721-8db41d78ccc9&page=1&size=10'
-H 'accept: application/json' 
-H 'x-api-key: API_KEY'

Response

{
    "status": "success",
    "data": {
        "tokens": [
        {
            "token_name": "MATIC",
            "token_address": "",
            "network_name": "POLYGON_TESTNET"
        },
        {
            "token_name": "USDT",
            "token_address": "0x2f7b97837f2d14ba2ed3a4b2282e259126a9b848",
            "network_name": "POLYGON_TESTNET"
        },
        {
            "token_name": "WMATIC",
            "token_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
            "network_name": "POLYGON_TESTNET"
        },
        {
            "token_name": "WMATIC",
            "token_address": "0x9c3c9283d3e44854697cd22d3faa240cfb032889",
            "network_name": "POLYGON_TESTNET"
        }
        ]
    }
}