Zoho Recruit | Generating Tokens

Generating Tokens


Note If you’re using the new version of APIs (V2), refer this link. 
OAuth 2.0 requests are usually authenticated with an access token, which is passed as bearer token. To use this access token, you need to construct a normal HTTP request and include it in an authorization header along with the value of bearer.
Note: 
You must use your domain-specific Zoho Accounts URL to generate access and refresh tokens. The domains and their corresponding accounts URLs are listed below:
To generate access and refresh tokens

Make a POST request using the following URL. Replace {Accounts_URL} with your domain-specific Zoho accounts URL when you make the following request.

{Accounts_URL}/oauth/v2/token
Note: For security reasons, pass the below parameters in the body of your request.

Request Parameters

Parameter

Description

grant_type

Enter the value as "authorization_code".

client_id

Enter the client ID obtained from the connected app.

client_secret

Enter the client secret obtained from the connected app.

redirect_uri

Specify the callback URL that you registered during app registration.

code

Enter the grant token generated in the previous step.

If the request is successful, you will receive the following:
{
"access_token": "{access_token}",
"refresh_token": "{refresh_token}",
"api_domain": "
https://www.zohoapis.com/",
"token_type": "Bearer",
"expires_in": 3600
}

Response Parameters  

Parameter

Description

access_token

Access token to access Zoho Recruit APIs.

refresh_token

Refresh token to obtain new access tokens.

expires_in

Time in seconds after which the access token expires.

api_domain

Domain name of the API. Use this domain in your requests to make API calls to Zoho Recruit.

token_type

Type of token obtained. "Bearer" indicates this is an access token.

Calling APIs using your Access Token

This completes the authentication. Once your app receives the access token, send the token in your HTTP authorization header to the Zoho Recruit API with the value "Zoho-oauthtoken {access_token}" for each endpoint (for each request).
Note:
  1. Each access token is only valid for an hour and can only be used for the operations defined in the scope.
  2. The refresh token does not expire. Use it to refresh access tokens when they expire.
  3. You can only generate a maximum of five refresh tokens in a minute.

    Access your files securely from anywhere

      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

                                                                                                              • Refreshing Access Tokens

                                                                                                                Access tokens expire an hour after they are generated. To generate a new access token, use the refresh token you generated earlier. Note:  You must use your domain-specific Zoho Accounts URL to refresh your access token. For ...
                                                                                                              • Revoking Tokens

                                                                                                                If you want to revoke your refresh token: Make a POST request with the following URL ​ {Accounts_URL}/oauth/v2/token/revoke?token={refresh_token} Note: You must use your domain-specific Zoho Accounts URL to revoke your refresh token.
                                                                                                              • Generating Reports

                                                                                                                You can create new module-specific reports linking some of the other cross-functional modules. For example, you can create a report in the accounts module linking other modules such as Contacts, Job Openings, and others. Types of Report Tabular ...
                                                                                                              • Generating Formatted Resumes

                                                                                                                Generate and forward formatted resumes to your clients faster and better using the Basic, Standard and Advanced templates. Before you generate a formatted resume, you need to configure it in the Formatted Resume Settings page of your Zoho Recruit ...
                                                                                                              • Overview

                                                                                                                The Zoho Recruit API uses the OAuth 2.0 protocol for authentication. It uses the Authorization Code Grant Type to obtain the grant token (code). This grant type allows you to share specific data with any application while keeping your usernames and ...
                                                                                                                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