Get data subject request.

GET https://api.consentgrid.io/v1/dsr/requests/{id}?version=ver
Authorization: Bearer apiKey
GET https://api.consentgrid.io/v1/dsr/my/{acct}/requests/{id}?version=ver
cookie cgs_{accountURL}: session

Returns a data subject request with the given id. If ver is given, it returns an earlier version of the request. If ver=0 or omitted, it returns the latest version.

If this API is called with a session cookie or session token, only the requests of the session user are visible.

Response

200 Ok

The response is a DSR request object.

{
    "id": "item id",
    "version": 2,
    "typeId": "deletion",
    "typeName": "Data deletion request",
    "labels": [ "label1", "label2", ...],
    "enteredBy": { "type": "user", "id": "..."},
    "enteredOn": "20200203T00:00:00Z",
    "modifiedBy": { "type": "user", "id": "..." },
    "modifiedOn": "20020303T00:00:00Z",
    "status": "submitted",
    "owner": {
      "type": "user",
      "id": "...",
      "uri": "https://api.consentgrid.io..."
    },
    "data": {
    Fields defined for request type
    },
    "metadata": {
      "key": "value",
      ...
    },
    "attachments": {
      "attachmentField": [
        {
           "fileName": "file.png",
           "contentType": "image/png",
           "id": "atch_23hakusyesr"
        },
        ...
      ],
      ...
    }
}
400 Bad Request

Malformed request, invalid value, etc. The return value is a JSON error object containing diagnostic information.

403 Forbidden

The authenticated key does not have the privileges for this operation. The return value is a JSON error object containing diagnostic information.