- Docs
- Api%2Freference%2Ftemplates%2FListTemplatesPublic
List Templates Public
Retrieve a list of public templates available for use. This endpoint allows filtering by various criteria such as ID, name, and creation date.
Query Parameters
id?string
Filter resources by their unique identifier
name?string
Filter resources by their name or title
autocomplete?string
Search term for autocomplete functionality
limit?integer
How many items to return at one time (max 100)
Format
int64next?string
Pagination token for retrieving the next page of results
order?string
Sort order for the results (ascending or descending)
Value in
"asc" | "desc"sortBy?string
Field name to sort the results by
when_created[$gt]?string
Filter templates created after this date and time
Format
date-timewhen_created[$lt]?string
Filter templates created before this date and time
Format
date-timewhen_created[$gte]?string
Filter templates created on or after this date and time
Format
date-timewhen_created[$lte]?string
Filter templates created on or before this date and time
Format
date-timeResponse Body
application/json
application/json
application/json
curl -X GET "https://api-testnet.dual.network/public/templates"{
"templates": [
{
"id": "string",
"name": "string",
"object": {
"metadata": {
"name": "string",
"description": "string",
"category": "string",
"image": {
"id": "string",
"name": "string",
"type": "string",
"url": "string",
"hash": "string",
"is_public": true,
"when_created": "2019-08-24T14:15:22Z"
},
"edition": 0
},
"custom": {}
},
"factory": {
"max_supply": 0,
"minted_count": 0,
"start_time": "2019-08-24T14:15:22Z",
"end_time": "2019-08-24T14:15:22Z",
"whitelist": [
"string"
]
},
"actions": [
{
"name": "mint",
"alias": "string",
"access": {
"type": "public",
"tokens": {
"property1": 0,
"property2": 0
}
},
"validators": [
{
"type": "http",
"url": "string"
}
],
"config": {},
"url": "string"
}
],
"face_id": "string",
"when_created": "2019-08-24T14:15:22Z",
"when_modified": "2019-08-24T14:15:22Z"
}
],
"next": "string"
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}