- Docs
- Api%2Freference%2Ftemplates%2FListTemplates
List templates
The templates your organization has designed, newest first — each one the blueprint for a kind of object you issue. Requires the `templates.read` permission.
The access token returned after a successful sign-in, sent as
Authorization: Bearer <access_token>.
It identifies the person and the organization they are working in, and
it lasts about fifteen minutes. When it runs out, use their refresh
token at POST /auth/refresh-token instead of asking them to sign in
again.
In: header
Query Parameters
Return only the resource with this identifier. Equivalent to fetching it by path, but usable together with the other list filters.
Return only resources associated with this organization. On protected endpoints, authorization may restrict or replace this value with the credential's active organization.
Return only resources whose name matches this value exactly.
length <= 255Search the endpoint's supported text and identifier fields. Matching may be an exact identifier lookup or a case-insensitive prefix search, depending on the resource. Alphanumeric characters only.
How many items to return in one page. The default and the maximum are both
25; a larger value is rejected with 400.
25int641 <= value <= 25Cursor for the next page, taken verbatim from the next field of the previous
response. Keep every other query parameter the same between pages: sortBy
and order are part of what the cursor means. An absent or empty next in a
response means there are no more pages.
The value is opaque. Do not parse it or build one yourself.
Sort direction. Defaults to desc, newest first.
"desc""asc" | "desc"Field used to sort the result. Supported fields depend on the endpoint; use
when_created for chronological ordering where it is available. The default
is the resource identifier, and identifiers break ties so cursor paging stays
stable.
Return only templates whose name starts with this text. autocomplete
does the same thing and is the one to reach for.
Return only templates published under this domain name, for organizations that use one.
Created strictly after this moment.
date-timeCreated strictly before this moment.
date-timeCreated at or after this moment.
date-timeCreated at or before this moment.
date-timeResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.dual.network/templates"{
"templates": [
{
"id": "665f1c2d4b1a2c3d4e5f6a99",
"name": "Summer Festival Ticket",
"owner": "0x1234567890abcdef1234567890abcdef12345678",
"face_id": "665f1c2d4b1a2c3d4e5f6a50",
"object": {
"metadata": {
"name": "Summer Festival 2026",
"description": "Three days, four stages, one wristband."
},
"custom": {
"tier": "general",
"seat": null
}
},
"factory": {
"max_supply": 4000,
"minted_count": 1284,
"start_time": "2026-04-01T09:00:00Z"
},
"actions": [
{
"name": "mint",
"access": {
"type": "private"
}
},
{
"name": "transfer",
"access": {
"type": "public"
}
},
{
"name": "redeem",
"alias": "check-in",
"access": {
"type": "private"
}
}
],
"public_access": {
"custom": [
"tier"
]
},
"when_created": "2026-03-01T10:00:00Z",
"when_modified": "2026-03-04T16:20:00Z"
}
]
}{
"code": 3,
"message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}{
"code": 16,
"message": "no auth provided"
}{
"code": 13,
"message": "internal error"
}