Add Reference Media
POST https://app.resemble.ai/api/v2/identity/{uuid}/attachments
Attach a reference media file to an identity, one modality at a time. This is how face photos are enrolled for image matching — create the identity, then attach media to it. It also adds voice samples or reference videos to any existing identity.
The modality’s embedding recomputes asynchronously after each change; the media becomes searchable once its status in the identity’s embeddings array is ready.
Request Body (multipart)
Example — enroll a face photo
Example — add a voice sample
Response
Returns 201 Created with the updated Identity object:
Errors
Remove Reference Media
DELETE https://app.resemble.ai/api/v2/identity/{uuid}/attachments/{attachment_id}
attachment_id is the id of an entry in the identity’s voice_samples, face_photos, or reference_videos array. Returns 204 No Content; the affected modality’s embedding recomputes without the removed file. Returns 404 Not Found if the attachment does not belong to the identity.
