Skip to main content

Retrieve an asset by unique asset Id

An asset, often referred to as a token, represents a digital artifact on the TEOS platform that can be stored, managed, and verified on blockchain.

This endpoint retrieves a single asset identified by its uniqueAssetId.

📘 Learn more about assets.

Request Endpoint:​

GET /odata/v1.0/Assets({key})

Parameters​

NameTypeDescriptionMandatory
keystringThe requested uniqueAssetId. Example: '0x86766979FD04114E1F90001'✅

Supports OData query options: $expand, $select.

Example Request​

GET /Assets('0x86766979FD04114E1F90001')?$select=Name,Author,Description

Response Body​

application/json— Returns the requested asset object.

Asset Object Fields

ParameterDescription
IdThe unique asset ID.
AuthorAddress of the asset creator.
NameName of the asset.
DescriptionDescription of the asset.
LanguageCodeDefault language code (ISO 2).
JurisdictionCodeJurisdiction country code (ISO 2).
UnitOfMeasureCodeUnit of measure of the asset.
CurrencyCodeCurrency code (ISO 4217).
SparkFactorNumber of Sparks per unit.
SparkFactorModifierFormula defining Spark factor.
AssetClassCodeClass of the asset.
CustomDefinitionItemsList of custom properties.
AssetLinkIdsList of linked asset IDs.
CreatedInBlockchainOnTimestamp when asset was activated in blockchain.
AmendedInBlockchainOnTimestamp of last blockchain amendment.
BlockchainHashBlockchain hash of asset documentation.
DocumentDbHashHash of asset documentation in TEOS database.
TransactionIdTransaction ID where asset was written to blockchain.
ControllerAddressController address for the asset.
TranslationsList of asset translations by language.
StateCurrent state of the asset.

CustomDefinitionItems Fields

ParameterDescription
KeyUnique identifier of the custom property.
NameName of the custom property.
TypeType of the custom property (e.g., TEXT).
ValueValue of the property.
SectionsPathJSON path where property is located.
SectionsPathNamesLabels for sections in JSON path.

Translations Fields

ParameterDescription
LanguageCodeLanguage code of translation (ISO 2).
NameTranslated asset name.
DescriptionTranslated asset description.
CustomDefinitionItemsCustom properties in the specific language.

Example Response Body​

In EVM-compatible networks (e.g., Sparknet, Ethereum, and Polygon), the "Author" is 42 characters long. In non-EVM networks, the address length may differ. For example, on Internet Computer, the "Author" has 63 characters.

{
"Id": "0x5db616f7e9aaa6fce9b0001",
"Author": "0xabe9e6c2b231ae427cd089b2b68be0a1dab565a1",
"Name": "Gold",
"Description": "1oz Gold bars",
"LanguageCode": "en",
"JurisdictionCode": "CH",
"UnitOfMeasureCode": "kg",
"CurrencyCode": "str",
"SparkFactor": "1000000",
"SparkFactorModifier": "{\"type\":\"FORMULA\",\"start\":\"2021-08-12T14:01:52Z\",\"t\":\"1d\",\"f\":\"1\"}",
"AssetClassCode": "\"A017\" - Document",
"CustomDefinitionItems": [
{
"Key": "apitutorial",
"Name": "API Tutorial",
"Type": "TEXT",
"Value": "My Private documentation: lorem ipsum",
"SectionsPath": "[documentation][manuals]",
"SectionsPathNames": "[Documentation][Manuals]"
}
],
"AssetLinkIds": ["string"],
"CreatedInBlockchainOn": "2021-05-18T15:23:12.5246259+02:00",
"AmendedInBlockchainOn": "2021-05-18T15:23:12.5246259+02:00",
"BlockchainHash": "0x263865a752660b9dd6b9377df57466d1348661aa9a49d5dde8e9d16dddddf69b",
"DocumentDbHash": "263865a752660b9dd6b9377df57466d1348661aa9a49d5dde8e9d16dddddf69b",
"TransactionId": "C0D34D73-6FD3-40F2-A7E1-08D9412448F7",
"ControllerAddress": "string",
"Translations": [
{
"LanguageCode": "en",
"Name": "Gold",
"Description": "1oz Gold bars",
"CustomDefinitionItems": [
{
"Key": "apitutorial",
"Name": "API Tutorial",
"Type": "TEXT",
"Value": "My Private documentation: lorem ipsum",
"SectionsPath": "[documentation][manuals]",
"SectionsPathNames": "[Documentation][Manuals]"
}
]
}
],
"State": "CreatedInTeos"
}

Response Codes​

CodeDescription
200Asset successfully retrieved.
400The request is invalid. Error details included.
401Unauthorized.
404The asset does not exist.