News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
200 Response with no Records - URI with AGW-401 Authorization header is not specified
Tags: getting started
Apr 10, 2020 at 1:33pm   •   1 replies  •  0 likes
Edwin Ramirez

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 Answer
answered on Apr 10, 2020 at 3:26pm  

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'



 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us