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

# Get Face Detection Results

> Retrieve face detection results including all detected faces



## OpenAPI

````yaml GET /face-detect/{face_detection_id}
openapi: 3.0.0
info:
  title: Cloudglue API
  description: API for Cloudglue
  license:
    name: Apache License 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 0.7.9
servers:
  - url: https://api.cloudglue.dev/v1
security:
  - bearerAuth: []
paths:
  /face-detect/{face_detection_id}:
    get:
      tags:
        - Face Detection
      summary: Get face detection results
      description: Retrieve face detection results including all detected faces
      operationId: getFaceDetection
      parameters:
        - name: face_detection_id
          in: path
          required: true
          description: The ID of the face detection to retrieve
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          description: Number of detected faces to return
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
        - name: offset
          in: query
          description: Offset from the start of the detected faces list
          required: false
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: Face detection results retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FaceDetection'
        '404':
          description: Face detection job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: An unexpected error occurred on the server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FaceDetection:
      type: object
      required:
        - face_detection_id
        - status
        - created_at
      properties:
        face_detection_id:
          type: string
          format: uuid
          description: Unique identifier for the face detection job
        frame_extraction_id:
          type: string
          format: uuid
          description: ID of the frame extraction used
        file_id:
          type: string
          format: uuid
          description: ID of the target file
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
          description: Status of the face detection job
        created_at:
          type: number
          description: Unix timestamp in milliseconds when the job was created
        data:
          type: object
          description: Face detection results (only present when status is completed)
          properties:
            object:
              type: string
              enum:
                - list
              description: Object type, always 'list'
            total:
              type: integer
              description: Total number of faces detected
            limit:
              type: integer
              minimum: 1
              maximum: 100
              description: Number of faces returned per page
            offset:
              type: integer
              minimum: 0
              description: Offset from the start of the faces list
            faces:
              type: array
              items:
                $ref: '#/components/schemas/DetectedFace'
              description: Array of detected faces
    Error:
      required:
        - error
      type: object
      properties:
        error:
          type: string
    DetectedFace:
      type: object
      required:
        - id
        - face_bounding_box
        - frame_id
        - timestamp
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the detected face
        face_bounding_box:
          $ref: '#/components/schemas/FaceBoundingBox'
          description: Bounding box of the detected face in the frame
        frame_id:
          type: string
          format: uuid
          description: ID of the frame where the face was detected
        timestamp:
          type: number
          description: Timestamp of the frame in seconds
        thumbnail_url:
          type: string
          description: URL of the frame thumbnail (if frame extraction enabled thumbnails)
    FaceBoundingBox:
      type: object
      required:
        - height
        - width
        - top
        - left
      properties:
        height:
          type: number
          minimum: 0
          maximum: 1
          description: Height of the bounding box (normalized 0-1)
        width:
          type: number
          minimum: 0
          maximum: 1
          description: Width of the bounding box (normalized 0-1)
        top:
          type: number
          minimum: 0
          maximum: 1
          description: Top position of the bounding box (normalized 0-1)
        left:
          type: number
          minimum: 0
          maximum: 1
          description: Left position of the bounding box (normalized 0-1)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````