06-04-2021 09:43 AM
Hi,
We are getting 403 error code when trying to get phone book list from secondary finesse server.
What could be the reason? Generally 403 error returns by the configuration APIs.
Thanks & Regards,
Umesh
06-04-2021 10:35 AM
Hi,
Is the same API working fine on the primary Finesse server? Or is it giving the same error.
A 403 usually means that the credentials are right, but that user doesn't have the permissions to use that API. The PhoneBook - Get List API can only be used by the administrator (https://developer.cisco.com/docs/finesse/#!phonebookget-list). Are you using administrator crednetials?
Thanx,
Denise
06-06-2021 12:07 AM - edited 06-07-2021 03:23 AM
Thanks for reply Denise. With primary server it's running fine and returning phone book and respective contact list.
I will check with site engineer and make sure that user configured is right. Any other reasons of 403 error??
Thanks & Regards,
Umesh
06-07-2021 09:39 AM
Hi,
I just remembered that you cannot run the configuration apis against the secondary server. Per the documentation, you will get a 403 when you do: https://developer.cisco.com/docs/finesse/#!phonebook-api-errors/phonebook-api-errors
Thanx,
Denise
06-07-2021 06:23 PM
But "Phone Book - Get List" doesn't come under configuration API. I think creating, modifying & deleting comes under configuration API.
Can you please confirm that "Phone Book - Get List" API comes under configuration API list?
Thanks & Regards,
Umesh
06-07-2021 08:04 PM
Hi,
PhoneBook - Get List is a configuration API (https://developer.cisco.com/docs/finesse/#!phonebookget-list/phonebookget-list). You can see this from the navigation tree in the documentation and it specifically states that "This API allows an administrator to get a list of all global and team phone books."
Thanx,
Denise
06-07-2021 08:05 PM
If you are trying to get a User's list of phone books, you need to use this API: https://developer.cisco.com/docs/finesse/#!userget-list-of-phone-books
Thanx,
Denise
06-08-2021 06:51 AM
Thanks for reply Denise. Is this categorization for phone book came after Finesse release 11.0?
Regards,
Umesh
06-08-2021 11:00 AM
Hi,
No, I see these APIs in the Finesse 10.0 docs: https://developer.cisco.com/docs/finesse/#!previous-documentation-pdfs/finesse-developer-and-javascript-guide
Thanx,
Denise
06-10-2021 04:11 AM
Hi Denise,
As per "User—Get List of Phone Books" description -
This API allows a user to get a list of phone books and the first list of associated contacts for that user, based on the defined range (1 to 6000). Contacts are retrieved from the global phone books first, followed by the team phone books, up to the maximum limit of 6000. Cisco Finesse Release 12.5(1) onward, this API is deprecated.
So, going forward which API we need to call to get Phone Book Contacts.
We can not call Phone Book API as those are configuration API and configuration API can not execute on secondary Finesse server.
I don't see any other API for phone book contacts to run using user credentials.
Thanks & Regards,
Umesh
06-10-2021 09:30 AM
Hi,
You want to use the TeamResource-Get Phone Books API: https://developer.cisco.com/docs/finesse/#!teamresourceget-phone-books
Thanx,
Denise
07-26-2022 11:08 PM
I was also getting the same error while using UCCX 12.0 sandbox. I was using Mozilla RESTer to make the call. I figured the issue was that I was unknowingly sending some extra data with my API request. I changed the Request Mode to Clean Request and it started working.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide