Face Data Management
Basics
- Base URL:
https://api.ticos.cn - Auth:
Authorization: Bearer <token>
Endpoint overview
POST /faces: create a face recordGET /faces: list facesPOST /faces/{face_id}: create/replace byface_idGET /faces/{face_id}: get face detailsPUT /faces/{face_id}: update face metadataDELETE /faces/{face_id}: delete a face
Request fields
face_id: unique face identifiername: display nameimage_base64: Base64 image payload (data:image/jpeg;base64,...)
Example: create
curl --location 'https://api.ticos.cn/faces' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <API_KEY>' \--data '{ "face_id": "1", "name": "william", "image_base64": "data:image/jpeg;base64,XXXXXX"}'Example: list
curl --location 'https://api.ticos.cn/faces' \--header 'Authorization: Bearer <API_KEY>'Example: update name
curl --location --request PUT 'https://api.ticos.cn/faces/1' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <API_KEY>' \--data '{"name":"huyiyang"}'Example: delete
curl --location --request DELETE 'https://api.ticos.cn/faces/1' \--header 'Authorization: Bearer <API_KEY>'Common status codes
200 OK: success400 Bad Request: invalid params / malformed JSON401 Unauthorized: authentication failed