Request
Headers
The API key used for authentication and access control. This header parameter is required for authorization to add a new face to a collection.
Body Parameters
Unique identifier of the collection where the face will be added.
Name associated with the face being added to the collection.
Base64-encoded string representation of the face image.
Response
Success Response (200)
A success or error message indicating the result of the face submission
Unique identifier for the face submission.
Unique identifier corresponding to the metadata of the face submission.
Additional options and metadata for the face submission.
Error Responses
Bad Request (400)
Identifies the specific error for troubleshooting:
- 6010: CollectionId is required
- 6011: WorkspaceId is required
- 6012: Fail to add face
- 6013: Cannot find collection info
- 6014: This collection is unavailable
- 6015: Failed to validate liveness of face
- 6016: Image size is too large
- 6017: Unsupported image format
Briefly describes the error. Please refer to the error code for details.
Forbidden (403)
Identifies the specific error for troubleshooting.
Briefly describes the error:
- API Key is required
- Access Denied: API Key is unavailable
Authorizations
Body
application/json
Unique identifier of the collection where the face will be added
Example:
"col_123456789"
Name associated with the face being added to the collection
Example:
"John Doe"
Base64-encoded string representation of the face image
Example:
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ..."
Response
Face successfully added to collection
Success message
Example:
"Face added successfully"
Unique identifier for the face submission
Example:
"face_123456789"
Unique identifier corresponding to the metadata of the face submission
Example:
"meta_123456789"
Additional options and metadata for the face submission