Getting the token_id
To manage an asset, i.e. a token, you will need to leverage it's {{token_id}}, which is an offchain 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/v2/assets/servicing/tokens/me' \
-H 'authorization: Bearer <jwt>'Response
{
"items": [
{
"id": "string",
"accountPermissions": [
"Qualified"
],
"accountWallet": "string",
"address": "string",
"decimals": 0,
"image": "string",
"isPaused": true,
"name": "string",
"tradable": false,
"symbol": "string",
"protocol": "T-REX",
"type": "COMMODITY",
"blockchainNetwork": "string",
"identityRegistryStorage": "string",
"status": "DEPLOYED"
}
],
"totalItemsFound": 0
}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.
Updated 8 days ago
