Skip to main content

Check Grant Status via REST API

This document describes a simple REST API call to check the revocation status of a specific identity on Currently.io. This functionality is useful for organizations that implement the TyDIDS Trust Framework for GDPR compliance.

API Endpoint

Response

The API responds with a JSON object containing information about the revocation status and consensus value. The HTTP status code of the response indicates the overall status of the request.

  • HTTP Status Code 200 (OK):

    • Body:

      JSON
      {
        "status": "granted",
        "consensus": 40856
      }
      
    • Description: The identity has not revoked data approval.

      • status: String indicating the approval status. In this case, the value is "granted".
      • consensus: Integer representing the number of the latest consensus reached at the time of the request.
  • HTTP Status Code 403 (Forbidden):

    • Body:

      JSON
      {
        "status": "revoked",
        "consensus": 40850,
        "revoked": 1722722789
      }
      
    • Description: The identity has revoked data approval.

      • status: String indicating the approval status. In this case, the value is "revoked".
      • consensus: Integer representing the number of the latest consensus reached at the time of the request.
      • revoked: Integer representing the timestamp (in Unix time) at which the approval was revoked.

Example Usage

GDPR Compliance

Organizations implementing the TyDIDS Trust Framework for GDPR can use this API to regularly check the revocation status of identities. If an identity revokes data approval, the organization can take appropriate actions, such as stopping data processing or informing the user.