The response from https://authorization.publish.adobe.io/permissions/ is:
{ code: '4002',
message: 'Parameter [X-GW-IMS-User-Email] is empty or null.' }
Including a header or get query with that parameter has no effect. The request has all the headers necessary according to the documentation and example.
{ 'X-DPS-Client-Version': '0.0.1',
'X-DPS-Client-Id': 'CLIENT_ID',
'X-DPS-Client-Request-Id': '2a76a3c6-4946-4d8b-9926-5ff8670cc89b',
'X-DPS-Client-Session-Id': '8eb48262-0541-4c89-a7e0-63216c53d441',
'X-DPS-Api-Key': 'CLIENT_ID',
Accept: 'application/json',
'X-GW-IMS-User-Email': 'USER@EMAIL.COM',
Authorization: 'bearer REDACTEDACCESSTOKEN' }
Any idea what this error means and how to tackle it?