---
title: "Get face detection details"
method: GET
path: "/v1/face-detection/{id}"
tags: ["Files"]
---

# Get face detection details

`GET /v1/face-detection/{id}`

Get the details of a face detection task. 

Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps.

## Path parameters

- `id` string, required

## Response `200`

200

- object
  - `id` string, required — The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id).
  - `credits_charged` integer, required — The credits charged for the task.
  - `status` 'queued' | 'rendering' | 'complete' | 'error', required — The status of the detection.
  - `faces` object[], required — The faces detected in the image or video. The list is populated as faces are detected.
    - `path` string, required — The path to the face image. This should be used in face swap photo/video API calls as `.assets.face_mappings.original_face`
    - `url` string, required — The url to the face image. This is used to render the image in your applications.

## Other responses

- `400` — Invalid Request
- `401` — Unauthorized
- `402` — Payment Required
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/magichourhq/apis/magic-hour-api.md) · [All operations](https://skmtc.net/magichourhq/apis/magic-hour-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/magichourhq/magic-hour-api/versions/941298cfb29f/schema)
