The Face.Match.Expert API uses API login and API password to authenticate all requests with the Authorization HTTP header.
You can find these details in the API Set up page in your Panel.
The Face.Match.Expert API uses API login and API password to authenticate all requests with the Authorization HTTP header.
You can find these details in the API Set up page in your Panel.
Keep your API credentials secure and don’t expose them publicly.
You have to attach the header below to all API calls.
Authorization: API_LOGIN:API_PASSWORDYou must replace API_LOGIN:API_PASSWORD with your personal API credentials.
Our API returns HTTP responses with error codes in case of invalid requests, missing data, failed authorization and in any other unexpected cases. In all instances, JSON body with an error explanation will be available.
Schema
Error name.
Example: "UNAUTHORIZED"Issue description.
Example: "Incorrect user credentials"Code | Status |
---|---|
401 | UNAUTHORIZED |
404 | NOT FOUND |
422 | UNPROCESSABLE ENTITY |
500 | INTERNAL SYSTEM ERROR |
503 | SERVICE UNAVAILABLE |
API URL
https://api.expertum.ai/v1
Endpoint that is responsible for adding images to the chosen collection. In case of adding larger datasets estimated time of photographs being loaded on the servers is up to 15 minutes.
POST https://api.expertum.ai/v1/collection/{collectionId}/add
Schema
Id of collection generated while creation in the panel
Example: "EXAMPLEID1"Array < Object {
Id of image that is chosen by the user. It will identify images in search and delete requests.
Example: "image_01"Image encoded in Base64 format.
Example: "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAg..."} >
Example
Example request (cURL):
curl --request POST https://api.expertum.ai/v1/collection/EXAMPLEID1/add \ --header 'Authorization: API_LOGIN:API_PASSWORD' \ --header 'Content-Type: application/json' \ --data '[{"id":"image_01","image":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAg..."}]'
Success evaluation based on the response code – 200 in case of success.
Endpoint that is responsible for face detection and image processing. Does not change the content of the collection.
POST https://api.expertum.ai/v1/detect
Schema
Image encoded in Base64 format.
Example: "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAg…"Example
Example request (cURL):
curl --request POST https://api.expertum.ai/v1/detect \ --header 'Authorization: API_LOGIN:API_PASSWORD' \ --header 'Content-Type: application/json' \ --data '{"image":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAg\u2026"}'
Schema
Encoded string that can be reused as input data in order to search through collection.
Part of image where face was detected encoded in Base64 format
X,Y position of left eye.
X,Y position of right eye.
X,Y position of left part of mouth.
X,Y position of right part of mouth.
X,Y position of nose.
Endpoint that is responsible for collection search and finding images containing a given face.
POST https://api.expertum.ai/v1/collection/{collectionId}/search/face-data
Schema
Id of collection generated while creation in the panel
Example: "EXAMPLEID1"Schema
Value that was given while using face detection
Example: "ywqAXtKxTKGqolFSWLrSFqwY9s_HrpdWI3k5QEMFa9..."Example
Example request (cURL):
curl --request POST https://api.expertum.ai/v1/collection/EXAMPLEID1/search/face-data \ --header 'Authorization: API_LOGIN:API_PASSWORD' \ --header 'Content-Type: application/json' \ --data '{"faceData":"ywqAXtKxTKGqolFSWLrSFqwY9s_HrpdWI3k5QEMFa9..."}'
Schema
Id of image that was given while adding it to the collection
Similarity of face that was found in comparison to face in request body
X,Y position of left eye.
X,Y position of right eye.
X,Y position of left part of mouth.
X,Y position of right part of mouth.
X,Y position of nose.
Endpoint that is responsible for collection search and finding images containing a given face.
POST https://api.expertum.ai/v1/collection/{collectionId}/search/image
Schema
Id of collection generated while creation in the panel
Example: "EXAMPLEID1"Schema
Image encoded in Base64 format.
Example: "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAg..."Example
Example request (cURL):
curl --request POST https://api.expertum.ai/v1/collection/EXAMPLEID1/search/image \ --header 'Authorization: API_LOGIN:API_PASSWORD' \ --header 'Content-Type: application/json' \ --data '{"image":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAg..."}'
Schema
Id of image that was given while adding it to the collection
Similarity of face that was found in comparison to face in request body
X,Y position of left eye.
X,Y position of right eye.
X,Y position of left part of mouth.
X,Y position of right part of mouth.
X,Y position of nose.
Endpoint that is responsible for comparing similarity of two person based on face data.
POST https://api.expertum.ai/v1/compare/face-data
Schema
Value that was given while using face detection
Example: "ywqAXtKxTKGqolFSWLrSFqwY9s_HrpdWI3k5QEMFa9..."Value that was given while using face detection
Example: "ywqAXtKxTKGqolFSWLrSFqwY9s_HrpdWI3k5QEMFa9..."Example
Example request (cURL):
curl --request POST https://api.expertum.ai/v1/compare/face-data \ --header 'Authorization: API_LOGIN:API_PASSWORD' \ --header 'Content-Type: application/json' \ --data '{"faceData1":"ywqAXtKxTKGqolFSWLrSFqwY9s_HrpdWI3k5QEMFa9...","faceData2":"ywqAXtKxTKGqolFSWLrSFqwY9s_HrpdWI3k5QEMFa9..."}'
Schema
Similarity of face that was found in comparison to face in request body
Endpoint that is responsible for comparing similarity of two person based on uploaded images.
POST https://api.expertum.ai/v1/compare/image
Schema
Image encoded in Base64 format.
Example: "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAg..."Image encoded in Base64 format.
Example: "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAg..."Example
Example request (cURL):
curl --request POST https://api.expertum.ai/v1/compare/image \ --header 'Authorization: API_LOGIN:API_PASSWORD' \ --header 'Content-Type: application/json' \ --data '{"image1":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAg...","image2":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAg..."}'
Schema
Similarity of face that was found in comparison to face in request body
Endpoint that is responsible for deleting records from the chosen collection.
DELETE https://api.expertum.ai/v1/collection/{collectionId}/delete
Schema
Id of collection generated while creation in the panel
Example: "EXAMPLEID1"Schema
Id of image that was chosen by the user while adding it to the collection
Example: "image_01"Example
Example request (cURL):
curl --request DELETE https://api.expertum.ai/v1/collection/EXAMPLEID1/delete \ --header 'Authorization: API_LOGIN:API_PASSWORD' \ --header 'Content-Type: application/json' \ --data '{"id":"image_01"}'
Success evaluation based on the response code – 200 in case of success.