API: Personnel Credentials

This article explains how to retrieve personnel credentials using the UnityIS REST API.

🔑 Note: Before proceeding, please ensure you’ve reviewed the guide on Generating and Validating API Tokens. Keep in mind that only the most recently generated token is valid. Regenerating a new token will automatically invalidate the previous one.

1. Retrieve Credentials

To retrieve a person’s credential information, use the get_credential_api command. Refer to the screenshot below for an example of the API call and its output.

When querying credentials for a person ID, the response will include data in the following format:

{

  "id": "28247",

  "credential_number": "560202",

  "status": "1",

  "activate_date": "04-Jan-2024",

  "de_activate_date": "01-Jan-2034"

}

Field Descriptions

  • id: The person’s unique record ID.

  • credential_number: The assigned credential (e.g., card or fob number).

  • status: The current status of the credential.

  • activate_date: The date from which the credential becomes active.

  • de_activate_date: The expiration or deactivation date of the credential.

Credential Status Codes

Below is a list of possible values for the status field:

CodeDescription
1Active
2Lost
3Returned
4Deactivated
5Terminated
6Broken
7Furlough
100Created
101Created and Email Sent
102Activated
103Pending Revoke
104Revoked
105Deleted
106Lost (duplicate code, may need clarification)
107Created and Email Not Sent



Was this article helpful?