Skip to content
On this page

Get Photo Match Request Details

Endpoint for getting photo match request details by Id.

Endpoints

EnvironmentURL
Sandboxhttps://api-test.streamline.laboremus.ug/idv/api/photomatches/{id}?v=2.0
Productionhttps://api.streamline.laboremus.ug/idv/api/photomatches/{id}?v=2.0

Request

Request Type : GET

Authorization

INFO

Always add your Subscription key to the request.

Path Parameters

NameTypeRequiredDescription
idstring(uuid)yesThe Unique ID of the id photo match request

Query Parameters

NameTypeRequiredDescription
vstringyesThe API Version

Response

Response Values

NameTypeDescription
idstringUnique Id of the request
externalReferencestring or nullExternal Reference for the request if it exists
resultobjectThe result for a photo match request
sourceImagestring or nullThe unique id for the source image
targetImagestring or nullThe unique id for the target image
initiatorstring or nullThe names for the request initiator
initiatorIdstring or nullThe unique id for the request initiator
receivedAtstring or null (date-time)Date the request was created
completedAtstring or null (date-time)Date the request was submitted to NIRA
requestStatusstring (Enum: Pending, Completed, Failed)The stage of processing at which the request is

result

The result for a photo match request

NameTypeDescription
matchbooleanIndicates if there is a match.
scoredouble or nullA number between 0 and 1 representing the similarity score of the two photos
percentageScorestring or nullA number between 0 and 100 representing the similarity score of the two photos
isErrorbooleanIndicates if there is an error with the request
errorMessagestring or nullThe reason why the processing was unsuccessful

Example Response Body

Content type

application/json

json
{
 "id": "3a16b2ca-b30e-4302-9834-192ea16cc946",
 "externalReference": null,
 "result": {
  "match": true,
  "score": 0.99764,
  "percentageScore": "99.76%",
  "isError": false,
  "errorMessage": null
 },
 "sourceImage": "85d2b4f3-4b53-4995-9d61-c89d6f2d22e9",
 "targetImage": "1b4db7eb-4057-5ddf-91e0-36dec72071f5",
 "initiator": "John Doe",
 "initiatorId": "a704eede-2d7f-4803-bdc4-58fb922edaed",
 "receivedAt": "2024-11-18T07:54:59.57633+03:00",
 "completedAt": "2024-11-18T07:55:03.95475+03:00",
 "requestStatus": "Completed"
}
{
 "id": "3a16b2ca-b30e-4302-9834-192ea16cc946",
 "externalReference": null,
 "result": {
  "match": true,
  "score": 0.99764,
  "percentageScore": "99.76%",
  "isError": false,
  "errorMessage": null
 },
 "sourceImage": "85d2b4f3-4b53-4995-9d61-c89d6f2d22e9",
 "targetImage": "1b4db7eb-4057-5ddf-91e0-36dec72071f5",
 "initiator": "John Doe",
 "initiatorId": "a704eede-2d7f-4803-bdc4-58fb922edaed",
 "receivedAt": "2024-11-18T07:54:59.57633+03:00",
 "completedAt": "2024-11-18T07:55:03.95475+03:00",
 "requestStatus": "Completed"
}

Error Response

400 The request data is invalid

application/json

NameTypeDescription
typestring or nullType of error response
titlestring or nullThe title of the error response
statusinteger(int32)The status of the error response
traceIdstring or nullThe traceId of the error request producing the error
errorsobjectObject defining the errors

errors

NameTypeDescription
propertyArray of stringsThe definition of the errors

401 Not authorized to access the endpoint

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

403 Refuse to authorize access to the endpoint

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

404 Request does not exist

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

500 The server encountered an unexpected error

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

Tech served right