GET consentRequests?serviceCode={serviceCode}&serviceEditionCode={serviceEditionCode}&direction={direction}&status[0]={status[0]}&status[1]={status[1]}&continuation={continuation}

Gets all consent requests for authenticated part, optionally filtered by service or pagination

Request Information

Parameters

NameDescriptionAdditional information
queryOptions optional filter parameter for OData-filtering

None.

serviceCode optional filter parameter for serviceCode

Define this parameter in the request URI.

serviceEditionCode optional filter parameter for serviceEditionCode

Define this parameter in the request URI.

direction Optional filter parameter for directions (incoming, outgoing). If no direction is specified, both incoming and outgoing requests will be returned

Define this parameter in the request URI.

status optional filter parameter for status

Define this parameter in the request URI.

continuation optional filter parameter for continuationToken

Define this parameter in the request URI.

Response Information

A ConsentRequest with errors if any

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 26"
    }
  },
  "_embedded": {
    "sample string 52": [
      {
        "AuthorizationCode": "3d10c211-560a-4a7b-ab8e-0f3911d277cc",
        "RequestStatus": "None",
        "CoveredBy": "sample string 3",
        "OfferedBy": "sample string 27",
        "OfferedByName": "sample string 71",
        "HandledBy": "sample string 89",
        "RequiredDelegator": "sample string 84",
        "RequiredDelegatorName": "sample string 43",
        "ValidTo": "2024-05-23T08:46:50.5176842+02:00",
        "RedirectUrl": "sample string 38",
        "RequestResources": [
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          },
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          },
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          }
        ],
        "RequestMessage": {
          "sample-string-10": "sample string 37",
          "sample-string-12": "sample string 98",
          "sample-string-24": "sample string 31"
        },
        "Errors": [
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          },
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          },
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          }
        ],
        "PortalViewMode": "sample string 23",
        "_links": {
          "self": {
            "href": "sample string 32"
          }
        }
      },
      {
        "AuthorizationCode": "3d10c211-560a-4a7b-ab8e-0f3911d277cc",
        "RequestStatus": "None",
        "CoveredBy": "sample string 3",
        "OfferedBy": "sample string 27",
        "OfferedByName": "sample string 71",
        "HandledBy": "sample string 89",
        "RequiredDelegator": "sample string 84",
        "RequiredDelegatorName": "sample string 43",
        "ValidTo": "2024-05-23T08:46:50.5176842+02:00",
        "RedirectUrl": "sample string 38",
        "RequestResources": [
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          },
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          },
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          }
        ],
        "RequestMessage": {
          "sample-string-10": "sample string 37",
          "sample-string-12": "sample string 98",
          "sample-string-24": "sample string 31"
        },
        "Errors": [
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          },
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          },
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          }
        ],
        "PortalViewMode": "sample string 23",
        "_links": {
          "self": {
            "href": "sample string 32"
          }
        }
      },
      {
        "AuthorizationCode": "3d10c211-560a-4a7b-ab8e-0f3911d277cc",
        "RequestStatus": "None",
        "CoveredBy": "sample string 3",
        "OfferedBy": "sample string 27",
        "OfferedByName": "sample string 71",
        "HandledBy": "sample string 89",
        "RequiredDelegator": "sample string 84",
        "RequiredDelegatorName": "sample string 43",
        "ValidTo": "2024-05-23T08:46:50.5176842+02:00",
        "RedirectUrl": "sample string 38",
        "RequestResources": [
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          },
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          },
          {
            "ServiceCode": "sample string 55",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 11",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-64": "sample string 11",
              "sample-string-34": "sample string 76",
              "sample-string-33": "sample string 39"
            }
          }
        ],
        "RequestMessage": {
          "sample-string-10": "sample string 37",
          "sample-string-12": "sample string 98",
          "sample-string-24": "sample string 31"
        },
        "Errors": [
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          },
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          },
          {
            "ErrorCode": "sample string 36",
            "ErrorMessage": "sample string 53"
          }
        ],
        "PortalViewMode": "sample string 23",
        "_links": {
          "self": {
            "href": "sample string 32"
          }
        }
      }
    ]
  },
  "continuationtoken": "sample string 27"
}