List faces

The faces your organization has designed, newest first, with the design behind each one. Requires the `faces.read` permission.

GET
/faces
AuthorizationBearer <token>

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

id?string

Return only the resource with this identifier. Equivalent to fetching it by path, but usable together with the other list filters.

org_id?string

Return only resources associated with this organization. On protected endpoints, authorization may restrict or replace this value with the credential's active organization.

name?string

Return only resources whose name matches this value exactly.

Lengthlength <= 255
autocomplete?string

Search 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.

limit?integer

How many items to return in one page. The default and the maximum are both 25; a larger value is rejected with 400.

Default25
Formatint64
Range1 <= value <= 25
next?string

Cursor 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.

order?string

Sort direction. Defaults to desc, newest first.

Default"desc"
Value in"asc" | "desc"
sortBy?string

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.

when_created[$gt]?string

Created strictly after this moment.

Formatdate-time
when_created[$lt]?string

Created strictly before this moment.

Formatdate-time
when_created[$gte]?string

Created at or after this moment.

Formatdate-time
when_created[$lte]?string

Created at or before this moment.

Formatdate-time

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.dual.network/faces"
{
  "faces": [
    {
      "id": "665f1c2d4b1a2c3d4e5f6a50",
      "name": "Festival wristband",
      "renderer": "go-template",
      "views": [
        {
          "variant": "card",
          "media_type": "image/svg+xml",
          "aspect_ratio": "1/1",
          "content": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 400 400\">...{{.metadata.name}}...</svg>"
        },
        {
          "variant": "detail",
          "media_type": "text/html",
          "content": "<main><h1>{{.metadata.name}}</h1><p>Tier {{.custom.tier}}</p></main>"
        }
      ],
      "when_created": "2026-02-28T09:00:00Z",
      "when_modified": "2026-03-02T11:30: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"
}