Skip to main content

Retrieve assets

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

This endpoint retrieves a list of assets based on the provided query parameters. It supports forced pagination, with a maximum of 50 items per page, allowing clients to efficiently navigate through large sets of assets.

📘 Learn more about assets.

Request Endpoint:

GET /odata/v1.0/Assets

Parameters

No top-level parameters.
Supports OData query options: $filter, $expand, $select, $orderby, $top, $skip, $count.

⚠️ Current limitations: The properties BlockchainHash, ControllerAddress, CreatedInBlockchainOn, AmendedInBlockchainOn, and State cannot be used in $filter.

Example Queries

GET /Assets?$filter=Id eq '0x5f1e6522bd3b65be880007' or Id eq '0x86766979FD04114E1F90001'&$select=Name,Author
GET /Assets?$filter=Id in ('0x5f1e6522bd3b65be880007','0x86766979FD04114E1F90001')
GET /Assets?$count=true&$select=Name&$filter=startsWith(Name, 'k')&$skip=3

Response Body:

application/json — Returns a list of asset objects.

Asset Object Fields

ParameterDescription
IdThe unique asset ID.
AuthorThe address of the asset creator.
NameThe name 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
200Assets successfully retrieved.
400Bad Request.
401Unauthorized.