Authentication Token

Authentication Token

Using Authentication Token

To use the API, you'll require the  Authentication Token from your CRM account. The authentication token should be passed in the request header for every API request. Please make sure that you have the permission to access the API service. If you do not have permission, please contact your CRM Administrator.
 

Generate Auth Token

To generate the Auth Token, you need to send an authentication request to the Vertical CRM Accounts using the URL format shown below. Make sure that you are a confirmed user, else while generating the Auth Token the you might receive an error - " ACCOUNT_REGISTRATION_NOT_CONFIRMED".

URL Format

API Mode:
  1. http://<APPDOMAIN>/crm/apiauthtoken.do?EMAIL_ID=[Username/EmailID]&PASSWORD=[Password]

APPDOMAIN is the the application URL that you provide at the time of creation of your application. If you have mapped your custom domain to your application, you can still use this application URL and it will automatically be mapped to your domain. If the EMAIL_ID and PASSWORD contain special characters, then they should be encoded.

For example : If " pharmahub.zohoplatform.com" is your application's URL, the the API format will be

http://pharmahub.zohoplatform.com/crm/apiauthtoken.do?EMAIL_ID=[Username/EmailID]&PASSWORD=[Password]
You will the get the required token as response as shown below.
 

Sample Response

  1. #
  2. #Wed Feb 29 03:07:33 PST 2012
  3. AUTHTOKEN=1000397765.1000414544.ca1f9949f637a8e667e35bd3654bf82e0c70975ee47349dc57aa7967b151a11a9ea419459381cd82e5757e644904df3315a6a729d528538df406f598c9e4f7f2
  4. RESULT=TRUE


Important:
The Auth Token can be used in all your API calls. You can also see the URL format under Setup > Developer Space > Vertical CRM API.
User Auth Token must be kept confidential.
Do NOT expose your Auth Token anywhere in public forums, public repositories or on your website's client side code like HTML or JavaScript.
Exposing it to public may lead to data theft, loss or corruption.
 

API Request Format

Every API calls made to the application requires the authtoken passed in the request header.
Sample Code snippet for passing authtoken in request header is shown below:
 

Code Snippet

  1. Java
  2. Using Apache HTTPClient. 
  3. DefaultHttpClient httpclient = new DefaultHttpClient();
  4. String url = "http://localhost";
  5. HttpPost httpPost = new HttpPost(url); 
  6. httpPost.addHeader("Authorization" , "<Generated Auth Token>");
  7. HttpResponse response = httpclient.execute(httpPost);
  8. VB .NET
  9. HttpWebRequest req= HttpWebRequest.Create("myURL");
  10. req.Headers.Add("Authorization", "<Generated Auth Token>");
 
Example
Here's an example to fetch records:
  1. https://<APPDOMAIN>/crm/private/xml/Leads/getRecords?
  2. Header:
  3. Authorization=1000397765.1000414544.ca1f9949f637a8e667e35bd3654bf82e0c70975ee47349dc57aa7967b151a11a9ea419459381cd82e5757e644904df3315a6a729d528538df406f598c9e4f7f2

Manage Auth Tokens

You can delete the Auth Token generated for your account (See Generate Auth Token  section), and call the below URL.
  1. http://<APPDOMAIN>/crm/deleteapiauthtoken.do?crmauthtoken=<Your AuthToken>


Note:
  1. Removing an Auth Token will delete the token permanently.
  2. If you regenerate the Auth Token, update your program with the new token.

Points to Remember

  1. The Auth Token is user-specific and is a permanent token.
  2. On deletion, the existing token will be deleted permanently. The new token has to be replaced in all API calls.
  3. The Auth Token of a user's account will become invalid if the user is deactivated.
  4. In case, your application requires more than the upper limit, your additional API requests will not be processed. To avoid data transfer issues, please assess your API requirements well in advance. If you need any help, please contact our Support at support@zohoplatform.com


    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                        Manage your brands on social media

                                          Zoho Desk Resources

                                          • Desk Community Learning Series


                                          • Digest


                                          • Functions


                                          • Meetups


                                          • Kbase


                                          • Resources


                                          • Glossary


                                          • Desk Marketplace


                                          • MVP Corner


                                          • Word of the Day


                                            Zoho Marketing Automation

                                              Zoho Sheet Resources

                                               

                                                  Zoho Forms Resources


                                                    Secure your business
                                                    communication with Zoho Mail


                                                    Mail on the move with
                                                    Zoho Mail mobile application

                                                      Stay on top of your schedule
                                                      at all times


                                                      Carry your calendar with you
                                                      Anytime, anywhere




                                                            Zoho Sign Resources

                                                              Sign, Paperless!

                                                              Sign and send business documents on the go!

                                                              Get Started Now




                                                                      Zoho TeamInbox Resources



                                                                              Zoho DataPrep Resources



                                                                                Zoho DataPrep Demo

                                                                                Get a personalized demo or POC

                                                                                REGISTER NOW


                                                                                  Design. Discuss. Deliver.

                                                                                  Create visually engaging stories with Zoho Show.

                                                                                  Get Started Now









                                                                                                      • Related Articles

                                                                                                      • Extension Token (ZAPI Key)

                                                                                                        The extension token, also known as ZAPI Key is an unique authentication key generated for each user who interacts with any component in the extension. This token can be used to connect your extension with a third party application through webhooks, ...
                                                                                                      • Vertical Solutions API - Overview

                                                                                                        Vertical Solutions provide APIs (Application Programming Interface) for integrating its modules with third-party applications such as, accounting, ERP, e-commerce, self-service portals and others. With this API, you can extract Solutions data in XML ...
                                                                                                      • API Methods

                                                                                                        Method Name Description getMyRecords To retrieve data by the owner of the Authentication Token specified in the API request getRecords To retrieve all users data specified in the API request getRecordById To retrieve individual records by record ID ...
                                                                                                      • API Limits

                                                                                                        To use the Vertical Solution API, you'll require the Authentication Token from your CRM account. Please make sure that you have the permission to access the API service. If you do not have permission, please contact your CRM administrator. API Limit ...
                                                                                                      • Examples

                                                                                                        1. Fetch Records from the "Leads" Module Programming Language JAVA Prerequisite JDK 1.6 commons-httpclient-3.1.jar  Code Snippet import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.*; public class GetRecords {     ...
                                                                                                        Wherever you are is as good as
                                                                                                        your workplace

                                                                                                          Resources

                                                                                                          Videos

                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                          eBooks

                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                          Webinars

                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                          CRM Tips

                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                            Zoho Show Resources