> ## Documentation Index
> Fetch the complete documentation index at: https://docs.headwaters.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Face Avatar

> Fetch the face's avatar as an image: the bytes themselves, not base64.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/faces/{face_id}/avatar
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/faces/{face_id}/avatar:
    get:
      tags:
        - Faces
      summary: Get Face Avatar
      description: 'Fetch the face''s avatar as an image: the bytes themselves, not base64.'
      operationId: get_face_avatar_v1_faces__face_id__avatar_get
      parameters:
        - name: face_id
          in: path
          required: true
          schema:
            type: string
            title: Face Id
        - name: v
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            description: >-
              A specific version. Omit for the current one. Only applies to the
              generated avatar.
            title: V
          description: >-
            A specific version. Omit for the current one. Only applies to the
            generated avatar.
        - name: format
          in: query
          required: false
          schema:
            type: string
            pattern: ^(png|svg)$
            default: png
            title: Format
        - name: size
          in: query
          required: false
          schema:
            type: string
            pattern: ^(sm|md|lg)$
            description: >-
              Dot grid: sm=32, md=64, lg=128 across. Coarser sizes are exact box
              averages of the stored grid, so they are what capture would have
              produced at that size.
            default: sm
            title: Size
          description: >-
            Dot grid: sm=32, md=64, lg=128 across. Coarser sizes are exact box
            averages of the stored grid, so they are what capture would have
            produced at that size.
        - name: width
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 2048
                minimum: 32
              - type: 'null'
            description: >-
              Render width in pixels. Defaults to 9 per dot, which is what the
              halftone needs to reach its darkest tone.
            title: Width
          description: >-
            Render width in pixels. Defaults to 9 per dot, which is what the
            halftone needs to reach its darkest tone.
        - name: owner
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              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.
            title: Owner
          description: >-
            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.
        - name: prefer
          in: query
          required: false
          schema:
            type: string
            pattern: ^(organic|uploaded)$
            description: >-
              `uploaded` serves the owner's uploaded picture when there is one
              and falls back to the generated avatar when there is not.
              `organic` (default) always serves the generated one. The response
              says which you got, in X-Avatar-Source: `organic`, `uploaded`, or
              `default` when the face has no picture at all and the placeholder
              was served.
            default: organic
            title: Prefer
          description: >-
            `uploaded` serves the owner's uploaded picture when there is one and
            falls back to the generated avatar when there is not. `organic`
            (default) always serves the generated one. The response says which
            you got, in X-Avatar-Source: `organic`, `uploaded`, or `default`
            when the face has no picture at all and the placeholder was served.
        - name: If-None-Match
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: If-None-Match
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.