curl --request GET \
--url https://api.example.com/v1/facesimport requests
url = "https://api.example.com/v1/faces"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/faces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/faces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/faces"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/faces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/faces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"alias": "<string>",
"created": 123,
"owned_by": "<string>",
"styles": [
"<string>"
],
"uid": "<string>",
"object": "face",
"name": "<string>",
"specialty": "<string>",
"description": "<string>",
"basic_facts": {},
"default_tools": [
"<string>"
],
"default_model": "<string>",
"formula": "<string>",
"profile_addendum": "<string>",
"published": true,
"via": [
"<string>"
],
"shared_with": [
"<string>"
],
"read_only": true,
"warnings": [
"<string>"
],
"fidelity": 123,
"fidelity_at": "<string>",
"fidelity_competitor": "<string>",
"tags": [
"<string>"
],
"groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"component_counts": [
123
],
"compiled": true,
"avatar_status": "<string>",
"avatar_version": 123,
"avatar_uploaded": true,
"owner_followed": true,
"owner_avatar": true,
"usage": {},
"updated_at": "<string>",
"compile_tokens_synced": 123,
"last_synced_at": "<string>"
}
],
"object": "list",
"next_cursor": "<string>",
"has_more": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}List Faces
List all faces owned by the authenticated user.
curl --request GET \
--url https://api.example.com/v1/facesimport requests
url = "https://api.example.com/v1/faces"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/faces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/faces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/faces"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/faces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/faces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"alias": "<string>",
"created": 123,
"owned_by": "<string>",
"styles": [
"<string>"
],
"uid": "<string>",
"object": "face",
"name": "<string>",
"specialty": "<string>",
"description": "<string>",
"basic_facts": {},
"default_tools": [
"<string>"
],
"default_model": "<string>",
"formula": "<string>",
"profile_addendum": "<string>",
"published": true,
"via": [
"<string>"
],
"shared_with": [
"<string>"
],
"read_only": true,
"warnings": [
"<string>"
],
"fidelity": 123,
"fidelity_at": "<string>",
"fidelity_competitor": "<string>",
"tags": [
"<string>"
],
"groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"component_counts": [
123
],
"compiled": true,
"avatar_status": "<string>",
"avatar_version": 123,
"avatar_uploaded": true,
"owner_followed": true,
"owner_avatar": true,
"usage": {},
"updated_at": "<string>",
"compile_tokens_synced": 123,
"last_synced_at": "<string>"
}
],
"object": "list",
"next_cursor": "<string>",
"has_more": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Optional enrichment fields to include on each face item. Repeatable or comma-separated. Recognized values: 'tags', 'groups', 'profile', 'sharing', 'avatar'. 'avatar' populates avatar_status and avatar_uploaded (avatar_status is one of 'none', 'current' or 'stale'), so a client can show a refresh affordance without a request per face. It is opt-in because deciding it reads the compiled-profile rows, which a bare listing does not fetch. 'sharing' populates shared_with, which is otherwise present but always empty on this route: it is the only way to see who a face is shared with in a listing. 'owner_follow' populates owner_followed (whether YOU follow each row's owner), so a wall of badges can style a Follow button per creator without fetching your whole following list first. Null on your own faces. 'owner_avatar' populates owner_avatar: whether the row's owner's me face has a REAL picture rather than the placeholder, so a badge fetches /v1/faces/{owned_by}:me/avatar only for the creators who have one and draws the placeholder locally for the rest. Unknown values are silently ignored. The face description is always included; tags, groups, and the compiled-profile fields (component_counts, compile_tokens_synced, last_synced_at) are populated only when requested here, and returned as null otherwise.
Which way to read sort. Omit it for the field's own direction, which is what every ordering did before this existed: created newest first, usage most used first, relevance best match first, alias A to Z. So ?sort=usage&order=asc is least-used and ?sort=alias&order=desc is Z to A. The tiebreak is never reversed.
^(asc|desc)$Also include faces other users have shared with you specifically, either by naming your account, or by putting the face on the roster of a workspace you actively belong to. Each such item carries via saying which of those applies (a face reachable both ways appears ONCE with both). Independent of include_published, which covers faces open to everyone. Defaults to false.
Filter to faces owned by these accounts (repeatable for OR / union, the same shape as ?group_id=). Case-insensitive. ANDs with every other filter: ?owner=head&q=engine&sort=usage means what it reads as. An unknown username is an empty page, not a 404: a creator with nothing published and a creator who does not exist look the same from here (GET /v1/users/{username} tells them apart). NARROWS what you can already see and never widens it, so pair it with include_published=true to read someone else's wall.
Restrict to faces owned by accounts you follow. IMPLIES include_published=true, because the faces of people you follow are reachable only as published ones; without that it would always return an empty page, which is the sort of answer a client cannot tell from a mistake of its own. Combines with ?owner= as an intersection. Following nobody returns an empty page, never the whole corpus.