MATRIX COSEC DEVICE API

Posted on September 24, 2025 • AVI HR Software Pvt Ltd

DEVICE API:

Device API enables client to access and monitor COSEC device directly, without installing COSEC Monitor or COSEC Server Using This API,

third party can send http request to device, then device execute and process request and return appropriate response

User Configuration:

http://192.168.1.11/device.cgi/users?action=set&user-id=3041&ref-user-id=3041&name=Himanshu1&user-active=1&enable-fr=1

User Face Enrollment:

http://192.168.1.11/device.cgi/enrolluser?action=enroll&type=7&user-id=3041

Enrollment Type:

1. Read Only Card
2. Smart Card
3. Biometric
4. Biometric Then Card
5. Mobile Device
6. Face
7. Duress Finger

Get Events from Device:
http://192.168.50.12/device.cgi/events?action=getevent&roll-over-count=0&seq-number=1&no-of-events=100&format=xml

Delete Credential:

http://192.168.1.11/device.cgi/credential?action=delete&type=2&user-id=3034

Get Card Number from One Device:

http://192.168.1.11/device.cgi/credential?action=get&type=2&user-id=3034


Set Card Number to Another Device:

http://192.168.1.12/device.cgi/users?action=set&user-id=3034&card1=856475433

http://10.0.44.30/device.cgi/users?action=set&user-id=3041&ref-user-id=3041&name=Himanshu1&user-active=1&user-pin=5431&validity-enable=1&validity-date-dd=28&validity-date-mm=12&validity-date-yyyy=2022

http://10.0.44.30/device.cgi/users?action=delete&user-id=3041

http://192.168.50.13/device.cgi/events?action=getevent&roll-over-count=1&seq-number=1&no-of-events=100&format=xml

Here’s a summary of the actions intended by these URLs:

  1. User Configuration:
    • Attempt to set user details (User ID: 3041, Name: Himanshu1, Enable Facial Recognition).
  2. User Face Enrollment:
    • Attempt to enroll user with User ID 3041 for facial recognition.
  3. Get Events from Device:
    • Attempt to retrieve events from the device with specific parameters.
  4. Delete Credential:
    • Attempt to delete a credential (type: 2) for User ID 3034.
  5. Get Card Number from One Device:
    • Attempt to retrieve the card number for User ID 3034.
  6. Set Card Number to Another Device:
    • Attempt to set a card number for User ID 3034 on another device.
  7. Additional User Configuration:
    • Attempt to set user details including a PIN and validity dates.
  8. Delete User:
    • Attempt to delete a user with User ID 3041.
  9. Get Events from Another Device:
    • Attempt to retrieve events from another device with specific parameters.