Zoho Docs API sharing method

Zoho Docs API sharing method

Hello, i am experiencing difficulties in sharing a file with an external email in Zoho Docs through the API.
This is the coding i am using for test:
$url = "https://apidocs.zoho.eu/files/v1/share/?authtoken=".$AUTHTOKEN."&scope=docsapi";
$fields = array(
'docids' => '4yfsme75c5a69e3be4ed9a78675997e8e644f',
'emailids' => 'example@mail.com',
'permission' => 'readwrite',
'notify' => true,
'message' => 'test msg'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_URL, $url );

$result = curl_exec($ch);

$information = curl_getinfo($ch);

curl_close($ch);

echo '<pre/>';
var_dump($result);
exit;
And this is the response i am receiving:

I am pretty sure that my AuthToken is valid, because i am uploading files successfully.
I am sure that this is an existing file Id in my Zoho Docs.

I will appreciate any help with this, thank you :)

      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          • Sticky Posts

          • Zoho Docs EOL extended to March 15, 2023. Migrate to WorkDrive now!

            Update: Zoho Docs access will be blocked for all users. Read this official post to know more. Most Zoho Docs individual and org users (including Workplace and Zoho One users) have already migrated their data and users to Zoho WorkDrive in response to
          • Live Webinar - Drive your team towards tighter collaboration

            Any project, big or small, involves a lot of planning, strategizing, scheduling, and budgeting. However, how your team executes the project really makes it a success. That's why teams need to work closer, stay dynamic, and be ready when they're needed.    However skilful your team might be, a collaboration platform can make them even more efficient and productive.    With organizations expanding globally, it's not only a challenge for teams to work together, but all to stay on the same page.    To
          • Live Webinar: Collaboration Made Simple with Our Brand New Tool

            Creating successful work groups when a team is geographically dispersed can be quite challenging. The process of keeping work and tasks in order becomes difficult and collaboration between team members can go haywire.  As a result, companies have shifted the way in which teams traditionally manage and organize their work. More organizations now want an exclusive, convenient place to work together, one that’s accessible by both internal and external collaborators.  That is why we have developed a
          • Live Webinar - Go 'Pro Team' With Our New Productivity Tool

            Is your team forced to keep switching between apps to get work done? Does it take everyone longer to complete their tasks?    Join us for a webinar on Thursday, May 17, 2018  to learn about our new product that'll transform the way you work and collaborate with teams across your organization - whether they are in the next room or even miles away.  Teams are dynamic and they require tools that are flexible enough to cope with the ever-changing environment. But working with your colleagues doesn't
          • Live Webinar - Make the Most of your Team Collaboration

            Do you have a collaborative team that's constantly looking for better ways to optimize productivity, connect with each other, and have better tools to share files? Well, look no further.   The Zoho Docs team has something big in store for you and your team. Join us on  Tuesday, April 17, 2018  to learn how to keep all your team files in one place, and turn you and your colleagues into productivity superstars! You'll also get a sneak peek at a new product that will help you:  Organize your team's

          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 コンテンツ



                                ご検討中の方

                                  • Recent Topics

                                  • Introducing Withdrawal Reasons for Offers

                                    We’re excited to introduce a new enhancement to the Offer module that brings more clarity and accountability to every withdrawn offer. The Withdrawal Reason update ensures that each withdrawal — manual or automatic — is backed by a clear explanation,
                                  • Zoho Creator customer portal users

                                    Hi, I'm in a Zoho One subscription with our company. I'm running a project now that involves creating a Zoho Creater application and using the Zoho Creator Customer Portal.  At most we need 25 customer portal users. In our Zoho One plan we only get 3
                                  • GPS tracking only or Check out facility

                                    Dear Team, Zoho CRM is quite robust CRM but till date i was waiting for the feature of having GPS tracking of Sales employees which is a common demand by all customers for thier field sales executives. We cover them by saying that CRM provides Checkin
                                  • Appraisals on Employee Information Profile

                                    Is it possible to show completed appraisals on each employee's "Employee Information" page? I would presume at the bottom - similar to the "Related Lists" concept in Zoho CRM. Obviously view access would be limited to employee and appropriate other roles
                                  • AI Interview Insights: Turn Recorded Interviews into Quick Transcripts & Summaries

                                    Evaluating interviews shouldn’t require replaying long recordings or taking manual notes. With AI Interview Insights, you can now review complete transcripts and AI-generated summaries of your One-way (Recorded) interviews right inside Zoho Recruit. This
                                  • Kaizen #220: Actions API - Webhooks APIs - Part 2

                                    Hello all!! Welcome back to the follow-up Kaizen post of Kaizen #219: Actions API - Webhooks APIs - Part 1. In the previous week, we covered how to configure a basic Webhook and how to include Headers, Body, and URL Parameters using both the POST Webhook
                                  • Standard Payment Term is not pulled from account to quotation

                                    Hey Team There seems to be something off. I do have "Net 30" as my default payment term in Zoho Books for my customers. If, from the customer overview or quote section, I create a new Quotation, the payment terms field stays blank and doesn't get the
                                  • Manage your invoices from Bigin's mobile app (iOS)

                                    Hello everyone! We're happy to announce that users can now integrate Zoho Books with the latest version of Bigin's iOS app. Zoho Books can be integrated with Bigin only via the web application. Users can view the Zoho Books tab in the detail pages of
                                  • Systematic SPF alignment issues with Zoho subdomains

                                    Analysis Period: August 19 - September 1, 2025 PROBLEM SUMMARY Multiple Zoho services are causing systematic SPF authentication failures in DMARC reports from major email providers (Google, Microsoft, Zoho). While emails are successfully delivered due
                                  • Accessibility controls and multilingual captcha authorization for Help Center users ​

                                    Hello everyone, As part of our ongoing effort to improve user experience, we are excited about the accessibility controls and predefined accessibility personas added in the Help Center, similar to what is already available in Zoho Desk. Help Center users
                                  • Zoho Sign + Zoho CRM : la solution pour simplifier vos accords de vente

                                    La conclusion d’un contrat de vente nécessite de nombreuses étapes : préparation de documents, validations successives et collecte des signatures. Les équipes commerciales passent souvent par plusieurs cycles de collaboration et de révision, tout en assurant
                                  • Zoho Desk Limitations

                                    Good day, all, I would like to know whether others share my frustration with some of Zoho's limitations. Don't get me wrong, I like Desk (and I also have a subscription for Analytics), I have been with them for close to 10 years, and unfortunately, I
                                  • Item/service subtotal

                                    Just discovered & really pleased that we can drag to re-order the line items in Sales orders & Invoices, a very nice feature which doesn't seem to be documented? It would be nice to be able to insert a subtotal as a line item to complete this great feature
                                  • how to Solve Conflict Invoices in Zoho POS

                                    Hello Team, I am facing a repeated issue in Zoho POS while saving a sale that contains service-based items. My products are intentionally created as Service (Non-Inventory) items because I do not want to track stock for them. However, every time I try
                                  • Copy, Paste, Highlighted text

                                    when i copy paste text it gets highlighted. Fix this.  WTF is with this black highlight ? Fix copy pasting. Some people pay for using this mail service. 
                                  • Pricing Strategies: #6 Common Mistakes while Configuring Pricing

                                    "Why does this month's billing feel messy again?" That was the exact line Priya muttered while staring at the spreadsheet full of edited pricing, one-off discounts and mismatched subscription details. Her business was growing, but the pricing machine
                                  • Publish to LinkedIn via API

                                    Hi, Is it possible to publish a job opening to LinkedIn (paid job slots) if creating a job opening via api / deluge function? Or is the user required to manually publish via the job boards process? Many Thanks Adrian
                                  • FSM - Associating and selecting Contacts based on Service Addresses

                                    Hi FSM team, I've come across an FSM limitation I wanted to share for improvement. I'm currently configuring FSM for a client who provides heating system install and maintenance services. The are often sub contracted by building management companies to
                                  • Do Unpublished Products in Shopify Sync to Zoho POS?

                                    Will an unpublished product in Shopify sync to Zoho POS? I would like to know how Zoho POS handles products that are in draft/unpublished status in Shopify.
                                  • Problem in Zoho POS frontend ERP.

                                    We are facing some difficulties in our billing and inventory processes and require your support to resolve them at the earliest. Customer Advance Payments We receive advance payments from customers for upcoming sales. Please guide us on how to record
                                  • How to create estimates/Invoices with sub-totals

                                    Every other accounting package can create estimates and invoices with Sub-totals. How can I do that in ZohoBooks?
                                  • Categorize Items with Item Headers

                                    Hello customers, Did you ever want to classify items based on specific categories to help your customers understand your invoice better? With the new Item Header feature, you can easily categorize items in your invoices and estimates and give them a common title.  Item Headers are available in the Invoices, the Recurring Invoices and the Estimates module. It can be carried forward from estimates to invoices at the time of converting the estimates.  To add an item header: Go to the Estimates, Invoices
                                  • Emails sent through Bigin are not posting in IMAP Sent folder

                                    I have set up my email to work from within Bigin using IMAP.  I am using IMAP so I can sync my email across multiple devices - phone / laptop / desktop / iPad / etc.  I want all my emails to populate my email client (outlook & iphone email) whether or
                                  • Painfully Slow Zoho mail

                                    Since yesterday Zoho Mail seems to have starting functioning very slowly and having a few bugs. It's slow to open mails, slow to send, slow to change between email accounts. Sometimes clicking on a particular folder (eg Sent folder) stops working and
                                  • Discount on the transaction level in POS

                                    "Is it possible to apply a discount on the total bill before tax in Zoho POS?" I want to apply a discount on the total transaction amount in Zoho POS, but the discount should be calculated before the taxes are applied. Is there an option to do this in
                                  • Create Tasklist with Tasklist Template using API v3

                                    In the old API, we could mention the parameter 'task_template_id' when creating a tasklist via API to apply a tasklist template: https://www.zoho.com/projects/help/rest-api/tasklists-api.html#create-tasklist In API v3 there does not seem to be a way to
                                  • Send Automated WhatsApp Messages and Leverage the Improved WhatsApp Templates

                                    Greetings, I hope all of you are doing well. We're excited to announce a major upgrade to Bigin's WhatsApp integration that brings more flexibility, interactivity, and automation to your customer messaging. WhatsApp message automation You can now use
                                  • Jobs at multiple locations

                                    Hi A lot of times we have same job open at multiple locations. So I would like an option where we can create a job and choose multiple locations. Currently we have to create individual jobs for each location. If we can create one job and mention multiple
                                  • From Zoho CRM to Paper : Design & Print Data Directly using Canvas Print View

                                    Hello Everyone, We are excited to announce a new addition to your Canvas in Zoho CRM - Print View. Canvas print view helps you transform your custom CRM layouts into print-ready documents, so you can bring your digital data to the physical world with
                                  • Passing the CRM

                                    Hi, I am hoping someone can help. I have a zoho form that has a CRM lookup field. I was hoping to send this to my publicly to clients via a text message and the form then attaches the signed form back to the custom module. This work absolutely fine when
                                  • Tag Adding Option in Kanban Card Customization Bigin CRM Mobile App

                                    I would like to request an option to add and display tags on Kanban cards in the Bigin CRM mobile app. This feature would make it easier to categorize deals and quickly identify priorities while working on the go.
                                  • Empowered Custom Views: Cross-Module Criteria Now Supported in Zoho CRM

                                    Hello everyone, We’re excited to introduce cross-module criteria support in custom views! Custom views provide personalized perspectives on your data and that you can save for future use. You can share these views with all users or specific individuals
                                  • WhatsApp Voice Message Sending Option in Bigin CRM

                                    I would like to request a feature that allows users to send WhatsApp voice messages directly from Bigin CRM. This would help improve communication efficiency and make it easier for teams to respond quickly to customer inquiries.
                                  • CRM: hosting a single html file in Zoho and displaying it as a widget

                                    I have seen that CRM offers the option of uploading a web project to Zoho itself and displaying it as a widget in CRM. The instructions then talk about setting a development environment with Node and developing an application to upload to Zoho. But I
                                  • How to change position button transtition of Blueprint?

                                    Hi Everyone, Look at my screenshoot, it is possible move the reject button to the right? I couldn't find that setting in the blueprint. Thank you.
                                  • Multi file upload

                                    Hi, I just wonder if one could upload multiple files in one shot, say between one and three files, without adding multiple File Upload fields? Thanks, Alalbany
                                  • Sorting Descending in a lookup

                                    I have a case number lookup on multiple forms. I need the most recent added to appear at the top of the lookup or as the list of cases grom it's too much to scroll. Is there a way to have a look up sort descending?
                                  • Importing customer comments and multiple shipto addresses

                                    I am evaluating Zoho Books and have most of my data imported with two exceptions: (1) Import customer comments - in my current system I have several comments of different types, and I need to bring these into Zoho. Preferably Books customer records, but
                                  • Auto-upload Creator Files to WorkDrive

                                    Hi everyone, I’m working on a workflow that uploads files from Zoho Creator to specific subfolders in Zoho WorkDrive, as illustrated in the attached diagram. My Creator application form has two multi-file upload fields, and I want—on successful form submission—to
                                  • Asap Widget 2.0

                                    Where's the documentation for the new ASAP widget? https://www.zoho.com/desk/developers/asap/#introduction this one is outdated How can we dynamically navigate between different views? How can we prefill ticket forms using ASAP 2.0?
                                  • Next Page