Help Needed with Configuring ZC Microservice

Help Needed with Configuring ZC Microservice

I'm attempting to create a simple microservice, but am running into problems with scope and auth. Using Custom API Builder, here's my setup:
1. Method: GET
2. Auth: OAuth2
3. User Scope: All users
4. Response: Standard
5. Function: A function that returns a list of maps

If I test the API using invoke url, I receive an error. Note, the zoho_oauth_connection is active and includes ZohoCreate.report.READ. 

Can't seem to find a way to add Zohocreator.customapi.EXECUTE.

I'm using environments, but every env has access to that connection. 

What am I missing?

FUNCTION TO TEST API:
void testCustomAPI()
{

response = invokeUrl
[
type : GET
connection : "zoho_oauth_connection"
];
info response;
}

RESPONSE:
{"code":2945,"description":"This is an invalid oauthscope. Please regenerate the oauthtoken corresponding to the API with proper oauthscope."}

If I copy and paste the url into the web browser, I receive: 

{"code":1030,"message":"Authorization Failure. The access token is either invalid or has expired. Please check your Zoho Account for more information."}


      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ



                                ご検討中の方