Consistent_identitiesUpload_face
Step 2) Upload a face/identity
POST
Upload a face/identity to be used as reference for the consistent identity generation.
Example:
import requestsapi_url = "https://api.piktid.com/api"access_token = "your_access_token"face_path = "path_to_face_image"with open(face_path, "rb") as face:response = requests.post(api_url + "/consistent_identities/upload_face",headers={"Authorization": "Bearer " + access_token},files={"file": face,},).json()face_id = response.get("identity_name")print(face_id)token_auth_2header
AuthorizationBearer <token>multipart/form-data- body
file?unknownurl?stringidentity_name?stringSuccess
application/json- response
identity_name?stringcurl -X POST "https://example.com/api/consistent_identities/upload_face"{ "identity_name": "string"}