Getting the token_id

To manage an asset, i.e. a token, you will need to leverage it's {{token_id}}, which is an identifier such as 3a369172-cd22-4e54-8f39-d852d716143d. Each token has a unique {{token_id}}.

To find the {{token_id}}, call the following endpoint. Your account should be either an Owner and/or an Agent.

cURL request

curl -XGET 'https://api-testing.tokeny.com/servicing/api/tokens' \
  -H 'authorization: Bearer <jwt>'

Response

[  
    {  
        "id": "3a360372-cd32-4e64-8FG39-d323d716143O",  
        "address": "string",  
        "decimals": 0,  
        "image": "https\://…",  
        "isPaused": true,  
        "tradable": true,  
        "name": "string",  
        "symbol": "string",  
        "type": "string",  
        "protocol": "T-REX",  
        "blockchainNetwork": "string",  
        "identityRegistryStorage": "0x…",  
        "permissions": [  
            "string"  
        ],  
        "agentWallet": "0x…"  
    }  
]

This answer will list all your tokens for this account, with basic data for each of them, including the id field. This id is the {{token_id}} you will leverage in the documentation use cases.