Device Status Check
This API endpoint allows you to inquire about the status of a device using its associated credential ID. The response will provide information on the device's current status, indicating whether it is active or inactive.
API Description
API to check device status
POST https://{{environment_url}}/api/v1/device/status
Headers
Content-Type*
application/json
accept*
String
*/*
Authorization*
String
Bearer <Token>
Request Body
credential_id*
String
registered credential id
API Response
Device Status Check - If the Device is Active
The API response will have the details about the device
reasonprovides information about the state of the credentialId. Its purpose is to communicate the status or specific details to the user.statusproperty indicates the overall outcome of the credentialId retrieval process. If thecredential_idis successfully found, the status will be labeled as "SUCCESS." if thecredential_idis not found, the status will be marked as "FAILURE." In both cases, thereasonproperty can be consulted for additional user-facing information about the state.stateproperty to transmit opaque data during the registration process, it can be subsequently retrieved by querying the status. This facilitates the tracking and maintenance of the same state information throughout your workflow.
HTTP Status Code: 200
JSON Response
Device Status Check - If the Device is Inactive
The device is un registered successfully and credential_id is made inactive
status: Indicates "SUCCESS" if the credential Id was disabled.reason: Provides a detailed explanation of the status.
HTTP Status Code: 200
JSON Response
Invalid Bearer Token
HTTP Status Code: 401
JSON Response
Invalid Request Body
HTTP Status Code: 400
JSON Response
Integration Code Snippets
Last updated
