List Face Avatars
curl --request GET \
--url https://api.example.com/v1/faces/{face_id}/avatarsimport requests
url = "https://api.example.com/v1/faces/{face_id}/avatars"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/faces/{face_id}/avatars', 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/{face_id}/avatars",
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/{face_id}/avatars"
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/{face_id}/avatars")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/faces/{face_id}/avatars")
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{
"alias": "<string>",
"versions": [
{
"version": 123,
"etag": "<string>",
"rows": 123,
"cols": 123,
"bytes": 123,
"stale": false,
"seed": 123,
"created_at": "<string>"
}
],
"owned_by": "<string>",
"current_version": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Faces
List Face Avatars
Every stored version of this face’s avatar, newest first (metadata only).
GET
/
v1
/
faces
/
{face_id}
/
avatars
List Face Avatars
curl --request GET \
--url https://api.example.com/v1/faces/{face_id}/avatarsimport requests
url = "https://api.example.com/v1/faces/{face_id}/avatars"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/faces/{face_id}/avatars', 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/{face_id}/avatars",
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/{face_id}/avatars"
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/{face_id}/avatars")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/faces/{face_id}/avatars")
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{
"alias": "<string>",
"versions": [
{
"version": 123,
"etag": "<string>",
"rows": 123,
"cols": 123,
"bytes": 123,
"stale": false,
"seed": 123,
"created_at": "<string>"
}
],
"owned_by": "<string>",
"current_version": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
The account that owns the face, when it is not you. The same thing as the <owner>:<alias> handle in the path: /v1/faces/head:socrates and /v1/faces/socrates?owner=head are one request. Sending both and disagreeing is a 422. Without either, a bare alias means YOUR face of that name if you have one, and an alias is unique per owner, so me and any popular name collide across accounts.