Return current consent information for a list of SmartConsents for the subject.

GET https://api.consentgrid.io/v1/consents/subjects/{type}:{subjectId}/smartconsents/current/status?consents=consentList
Authorization: Bearer apiKey
GET https://api.consentgrid.io/v1/my/consents/{acct}/smartconsents/current/status?consents=consentList
cookie cgs_{accountURL}: session

Returns current consent information for the subject for a list of SmartConsents. This API only works for SmartConsents where latest consent entry cancels older consent information. If there are more than one active consent records for any of the SmartConsents, those SmartConsents will not be returned, as it is not possible to determine which consent is active under what contex without the context information. The returned SmartConsent list can be limited with the comma-separated consents query parameter. If omitted, all SmartConsents will be returned.

type determines the subject type, usually user.

Response

200 Ok

The response contains the consents, consent status, and user choices:

{
  "consents": {
    "c1": {
      "value": true,
      "choices": {
        User choices
      }
    },
    ...  
  } 
}
404 Not Found

Subject not found.