Question

200 Response with no Records - URI with AGW-401 Authorization header is not specified

  • 10 April 2020
  • 1 reply
  • 1565 views

Hi all,

I'm using the Call Log API for some reason I'm getting a 200 response but with no records


curl --request GET --url 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/XXXXXXXXX/call-log?extensionNumber=XXXX&showBlocked=true&direction=Inbound&direction=Outbound&view=Simple&withRecording=false&dateTo=2020-04-10&dateFrom=2019-12-01&page=1&perPage=100&showDeleted=false' --header 'accept: application/json' --header 'authorization: Bearer U0pDMTFQMDFQQVMwMHxBQURWMW5RMUM1NzBzOFRpYU5ENDBUSFhpa3RFemVRMlA1WnkycWNkcWhsbVVEOGF5RlFXaklaV09FcWNMSUFuSzJONF9QWWRPMEVYNENYQjd4dmJsWHJoeDJLT2I1dHROV0hIczcycTVONm13N1NzX2NxeXc3Nk1VSm1HSlhYNzRuZTJ3YTNuTHlNQmI3TEZ6YUpLX0R2YUppZ01WRkphb01JcTBhUE9fYmRscTZ2WUM3eVR4TlItOXA4Vkp0QWNvNExSVVR2bmVVOVZhN0YzOWVRVjNUeE98SkVrdzFnfG80eDd6cGpfZDZicWpHdV9JaXdnMlF8QUE'


I'm getting a 200 Respond but with no records but I know I should receive some

Checking the URI on the response I see this:

{  "errorCode" : "AGW-401",  "message" : "Authorization header is not specified",  "errors" : [ {    "errorCode" : "AGW-401",    "message" : "Authorization header is not specified"  } ] }


I'm I doing something wrong?


1 reply

Userlevel 1

Call like this:

curl GET --url 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/XXXXXXX/extension/YYYYYYY/call-log?' -H 'Accept: application/json' -H 'Authorization: Bearer your valid access token'


Reply