For the complete documentation index, see llms.txt. This page is also available as Markdown.

People & faces

Facial recognition groups the faces Shade detects into individuals. Name an individual once, and you can find every asset they appear in.

To find assets with a person in them, call POST /search with an individual filter whose options contain the individual's ID.

Get all the faces for an asset

get

Get all the faces an asset contains

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
asset_idstring · uuidRequired

The asset to get the faces for

Example: c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f
Query parameters
drive_idstring · uuidRequired

The id of the drive this asset is in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Responses
200

Successful Response

application/json
idstring · uuidRequired
individual_idstring · uuid · nullableOptional
get/assets/{asset_id}/faces
GET /assets/{asset_id}/faces?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  }
]

List all individuals

get

Get a list of all significant individuals. Note: an individual is only sig and returned if it contains >=1 faces.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Query parameters
drive_idstring · uuidRequired

The id of the drive to get individuals for

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
pageinteger · nullableOptional

The page to query

Default: 0
limitinteger · nullableOptional

The limit that is fetched per page

Default: 100
labeledboolean · nullableOptional

If set, only labeled individuals will be returned

Responses
200

A list of all individuals

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
get/individuals
GET /individuals?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "labeled": true,
    "preview_face": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "bbox": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "face_preview": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "frame": 1,
        "signed_url": "text"
      },
      "individual_id": "123e4567-e89b-12d3-a456-426614174000"
    },
    "profile_attachment": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploaded": true,
      "name": "text",
      "mime_type": "text",
      "size": 1,
      "download_url": "text"
    },
    "preview_image": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    }
  }
]
get

Search for individuals by name using trigram similarity. Uses the GIN trigram index for efficient fuzzy matching. Supports sorting by name or face count.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Query parameters
drive_idstring · uuidRequired

The id of the drive to search individuals in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
namestring · nullableOptional

The name to search for (uses trigram similarity)

pageinteger · nullableOptional

The page to query

Default: 0
limitinteger · nullableOptional

The limit that is fetched per page

Default: 100
sort_bystring · enumOptional

Field to sort by: 'name' or 'face_count'

Default: face_countPossible values:
sort_orderstring · enumOptional

Sort direction: 'asc' or 'desc'

Default: descPossible values:
Responses
200

A list of individuals matching the search query

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
get/individuals/search
GET /individuals/search?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "labeled": true,
    "preview_face": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "bbox": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "face_preview": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "frame": 1,
        "signed_url": "text"
      },
      "individual_id": "123e4567-e89b-12d3-a456-426614174000"
    },
    "profile_attachment": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploaded": true,
      "name": "text",
      "mime_type": "text",
      "size": 1,
      "download_url": "text"
    },
    "preview_image": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    }
  }
]

Get an individual

get

Get an individual by id

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
individual_idstring · uuidRequired

ID of the individual (a recognized person). List them with GET /individuals.

Responses
200

The individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
get/individuals/{individual_id}
GET /individuals/{individual_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Update an individual

put

Update an individual with a new name/label.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
individual_idstring · uuidRequired

The id of the individual to be updated

Body
namestring · nullableOptional

The new name/label for the individual

Responses
200

The updated individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
put/individuals/{individual_id}
PUT /individuals/{individual_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Get an individual with all details

get

Get an individual with full details including profile attachment, reference attachments, and assigned faces.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
individual_idstring · uuidRequired

ID of the individual (a recognized person). List them with GET /individuals.

Query parameters
faces_limitinteger · nullableOptional

Maximum number of faces to return

faces_random_samplebooleanOptional

If true and faces_limit is set, returns a random sample of faces

Default: false
Responses
200

The individual with profile, references, and faces

application/json

Extended individual DTO with full details including references and faces.

idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
get/individuals/{individual_id}/details
GET /individuals/{individual_id}/details HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "reference_attachments": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploaded": true,
      "name": "text",
      "mime_type": "text",
      "size": 1,
      "download_url": "text"
    }
  ],
  "faces": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "bbox": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "face_preview": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "frame": 1,
        "signed_url": "text"
      },
      "individual_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Delete a reference attachment from an individual

delete

Delete a reference attachment from an individual and recalculate the centroid.

The attachment's per-embedding is auto-deleted via CASCADE. We recompute the attachment_embedding from remaining stored embeddings without re-processing through FR.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
individual_idstring · uuidRequired

ID of the individual (a recognized person). List them with GET /individuals.

attachment_idstring · uuidRequired
Responses
200

The updated individual details

application/json

Extended individual DTO with full details including references and faces.

idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
delete/individuals/{individual_id}/reference/{attachment_id}
DELETE /individuals/{individual_id}/reference/{attachment_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "reference_attachments": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploaded": true,
      "name": "text",
      "mime_type": "text",
      "size": 1,
      "download_url": "text"
    }
  ],
  "faces": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "bbox": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "face_preview": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "frame": 1,
        "signed_url": "text"
      },
      "individual_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Update the profile attachment for an individual

put

Update the profile attachment for an individual. Deletes the existing profile attachment (if any), links the new one, and recalculates the centroid.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
individual_idstring · uuidRequired

ID of the individual (a recognized person). List them with GET /individuals.

Body
profile_attachment_tokenstringRequired

JWT token for the new profile image attachment

Responses
200

The updated individual details

application/json

Extended individual DTO with full details including references and faces.

idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
put/individuals/{individual_id}/profile
PUT /individuals/{individual_id}/profile HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "profile_attachment_token": "text"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "reference_attachments": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploaded": true,
      "name": "text",
      "mime_type": "text",
      "size": 1,
      "download_url": "text"
    }
  ],
  "faces": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "bbox": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "face_preview": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "frame": 1,
        "signed_url": "text"
      },
      "individual_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Add reference attachments to an individual

post

Add new reference attachments to an existing individual and recalculate the centroid.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
individual_idstring · uuidRequired

ID of the individual (a recognized person). List them with GET /individuals.

Body
reference_attachment_tokensstring[]Required

JWT tokens for the new reference image attachments

Responses
200

The updated individual details

application/json

Extended individual DTO with full details including references and faces.

idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
post/individuals/{individual_id}/references
POST /individuals/{individual_id}/references HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "reference_attachment_tokens": [
    "text"
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "reference_attachments": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
      "uploaded": true,
      "name": "text",
      "mime_type": "text",
      "size": 1,
      "download_url": "text"
    }
  ],
  "faces": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "bbox": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "face_preview": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "frame": 1,
        "signed_url": "text"
      },
      "individual_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}
Deprecated

Hides the given individuals by id

put

Hide individuals by their ids.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive to hide individuals in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
individual_idsstring · uuid[]Required

The ids of the individuals to hide

Responses
200

Successful Response

application/json
nullOptional
put/individuals/{drive_id}/individual/disable
PUT /individuals/{drive_id}/individual/disable HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 59

{
  "individual_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}

No content

Permanently deletes the given individuals by id

delete

Permanently delete individuals by their ids.

Faces associated with these individuals will be unassigned (not deleted) and can be re-assigned to other individuals later.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive to delete individuals from

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
individual_idsstring · uuid[]Required

The ids of the individuals to delete

Responses
200

Successful Response

application/json
nullOptional
delete/individuals/{drive_id}/individual/delete
DELETE /individuals/{drive_id}/individual/delete HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 59

{
  "individual_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}

No content

Create an individual from faces

post

Create an individual from a set of faces defined by the user.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive to create the individual in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
face_idsstring · uuid[]Required

The ids of the faces to create the individual from

individual_namestringRequired

The name/label for the individual

old_individual_idstring · uuid · nullableOptional

If provided, the individual that the faces are being taken from (must be a labeled individual)

Responses
200

The new individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
post/individuals/{drive_id}/individual/create
POST /individuals/{drive_id}/individual/create HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 137

{
  "face_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "individual_name": "text",
  "old_individual_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Create an individual with manual attachments

post

Create a labeled individual and attach manually uploaded reference images via attachments.

This is used by the create-individual wizard:

  • The client first uploads images via /attachments/upload to obtain tokens

  • Those tokens are then passed here to be linked to the individual

Note: embedding/face creation from these attachments is handled by follow-up jobs.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive to create the individual in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
individual_namestringRequired

The name/label for the individual

profile_attachment_tokensstring[]Optional

JWT tokens for the primary profile image attachments

Default: []
reference_attachment_tokensstring[]Optional

JWT tokens for additional reference image attachments

Default: []
Responses
200

The new individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
post/individuals/{drive_id}/individual/create_manual
POST /individuals/{drive_id}/individual/create_manual HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 102

{
  "individual_name": "text",
  "profile_attachment_tokens": [
    "text"
  ],
  "reference_attachment_tokens": [
    "text"
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Assign a face to another individual

put

Assign face(s) to an individual.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive to create the individual in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
face_idsstring · uuid[]Required

The id of the faces to assign

individual_idstring · uuidRequired

The id of the individual to assign the face to (must be a labeled individual)

old_individual_idstring · uuid · nullableOptional

If provided, the individual that the faces are being taken from (must be a labeled individual)

update_centroidbooleanOptional

If true, updates the individual's centroid embedding with the assigned faces. Should only be true for manual user actions (e.g., verification step, manual reassignments).

Default: false
Responses
200

The new individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
put/individuals/{drive_id}/individual/assign
PUT /individuals/{drive_id}/individual/assign HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 191

{
  "face_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "individual_id": "123e4567-e89b-12d3-a456-426614174000",
  "old_individual_id": "123e4567-e89b-12d3-a456-426614174000",
  "update_centroid": false
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Unassign faces from an individual and blacklist them

put

Unassign face(s) from an individual and blacklist them so they won't be re-clustered back into the same individual.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive containing the individual

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
face_idsstring · uuid[]Required

The ids of the faces to unassign

individual_idstring · uuidRequired

The id of the individual to unassign the faces from

Responses
200

The updated individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
put/individuals/{drive_id}/individual/unassign
PUT /individuals/{drive_id}/individual/unassign HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 108

{
  "face_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "individual_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Merges individuals together into one

put

Merge multiple individuals into one, combining their faces and setting a new name.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive to get faces for

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
individual_idsstring · uuid[]Required

The ids of the individuals to merge

namestringRequired

The new name given to the combined individuals

Responses
200

The newly merged individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
put/individuals/{drive_id}/individual/merge
PUT /individuals/{drive_id}/individual/merge HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 73

{
  "individual_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "name": "text"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Delete unclustered faces

delete

Delete unclustered faces (faces not assigned to any individual). This permanently removes them from the database.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive containing the unclustered faces

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
face_idsstring · uuid[]Required

The IDs of unclustered faces to delete

Responses
200

Successful Response

application/json
nullOptional
delete/individuals/{drive_id}/faces/unclustered
DELETE /individuals/{drive_id}/faces/unclustered HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "face_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}

No content

List faces for an individual

get

Get a paginated list of faces for an individual by id.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
individual_idstring · uuidRequired

The id of the individual to get faces for

Query parameters
limitinteger · nullableOptional

Maximum number of faces to return

Default: 100
offsetinteger · nullableOptional

Number of faces to skip

Default: 0
Responses
200

A list of faces for an individual

application/json
idstring · uuidRequired
individual_idstring · uuid · nullableOptional
get/individuals/{individual_id}/faces
GET /individuals/{individual_id}/faces HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  }
]

Suggest faces that may belong to an individual

get

Return likely face matches for an individual using its embedding and unclustered faces.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

The id of the drive to search faces in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
individual_idstring · uuidRequired

The id of the individual to suggest faces for

Query parameters
limitintegerOptional

Maximum number of candidate faces to return

Default: 12
Responses
200

A list of candidate faces for verification

application/json
idstring · uuidRequired
individual_idstring · uuid · nullableOptional
get/individuals/{drive_id}/individual/{individual_id}/verify_candidates
GET /individuals/{drive_id}/individual/{individual_id}/verify_candidates HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  }
]

Get the individual a face is for

get

Get the individual that a face is for by id

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
face_idstring · uuidRequired

The id of the face whose individual to get

Responses
200

The individual

application/json
idstring · uuidRequired
namestringRequired
labeledboolean · nullableOptional
get/faces/{face_id}/individual
GET /faces/{face_id}/individual HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "labeled": true,
  "preview_face": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "profile_attachment": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploader_id": "123e4567-e89b-12d3-a456-426614174000",
    "uploaded": true,
    "name": "text",
    "mime_type": "text",
    "size": 1,
    "download_url": "text"
  },
  "preview_image": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "frame": 1,
    "signed_url": "text"
  }
}

Get the asset a face is for

get

Get the asset that a face is for by id

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
face_idstring · uuidRequired

The id of the face whose asset to get

Responses
200

The asset

application/json

Full asset DTO with relationship fields that require eager loading.

idstring · uuidRequired
drive_idstring · uuidRequired
pathstringRequired
namestringRequired
extensionstringRequired
updatedstring · date-timeRequired
createdstring · date-timeRequired
typestring · enumRequiredPossible values:
size_bytesintegerRequired
stack_idstring · uuid · nullableOptional
stack_numberinteger · nullableOptional
is_fs_draft_blobbooleanRequired
is_fs_null_blobbooleanRequired
ratingnumber · nullableOptional
ai_indexedbooleanRequired
categorystring · nullableOptional
ocrstring · nullableOptional
transcription_idstring · uuid · nullableOptional
faces_presentboolean · nullableOptional
content_lengthinteger · nullableOptional
comment_countinteger · nullableOptional
preview_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
metadata_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
custom_metadata_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
core_vision_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
color_palette_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
core_audio_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
audio_job_statestring · enumOptional

The state of a processing job on an asset, such as previews or transcription.

Possible values:
facial_recognition_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
proxy_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
audio_proxy_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
transcription_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
scrub_sheet_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
custom_thumbnailstring · nullableOptional
get/faces/{face_id}/asset
GET /faces/{face_id}/asset HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "path": "text",
  "name": "text",
  "extension": "text",
  "updated": "2026-01-01T00:00:00.000Z",
  "created": "2026-01-01T00:00:00.000Z",
  "type": "IMAGE",
  "size_bytes": 1,
  "stack_id": "123e4567-e89b-12d3-a456-426614174000",
  "stack_number": 1,
  "is_fs_draft_blob": true,
  "is_fs_null_blob": true,
  "rating": 1,
  "ai_indexed": true,
  "system_metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "custom_metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "category": "text",
  "palette": [
    [
      1
    ]
  ],
  "ocr": "text",
  "transcription_id": "123e4567-e89b-12d3-a456-426614174000",
  "faces_present": true,
  "content_length": 1,
  "comment_count": 1,
  "preview_job_state": "NOT_STARTED",
  "metadata_job_state": "NOT_STARTED",
  "custom_metadata_job_state": "NOT_STARTED",
  "core_vision_job_state": "NOT_STARTED",
  "color_palette_job_state": "NOT_STARTED",
  "core_audio_job_state": "NOT_STARTED",
  "audio_job_state": "NOT_STARTED",
  "facial_recognition_job_state": "NOT_STARTED",
  "proxy_job_state": "NOT_STARTED",
  "audio_proxy_job_state": "NOT_STARTED",
  "transcription_job_state": "NOT_STARTED",
  "scrub_sheet_job_state": "NOT_STARTED",
  "objects": [],
  "texture_data": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "integration_data": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "preview_images": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    }
  ],
  "custom_thumbnail": "text",
  "proxy": {
    "id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "audio_proxy": {
    "id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "scrub_sheet": {
    "preview_width": 1,
    "preview_height": 1,
    "columns": 1,
    "rows": 1,
    "interval": 1,
    "total_frames": 1,
    "scrub_sheets": [
      "text"
    ]
  },
  "grid_scrub_sheet": {
    "preview_width": 1,
    "preview_height": 1,
    "columns": 1,
    "rows": 1,
    "interval": 1,
    "total_frames": 1,
    "scrub_sheets": [
      "text"
    ]
  }
}
Deprecated

List all unclustered faces

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Query parameters
drive_idstring · uuidRequired

The drive id to list faces for

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
pageinteger · nullableOptional

The page to query

Default: 0
limitinteger · nullableOptional

The limit that is fetched per page

Default: 100
Responses
200

List of all unclustered faces

application/json
idstring · uuidRequired
individual_idstring · uuid · nullableOptional
get/faces
GET /faces?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "bbox": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "face_preview": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "frame": 1,
      "signed_url": "text"
    },
    "individual_id": "123e4567-e89b-12d3-a456-426614174000"
  }
]

Last updated

Was this helpful?