Get records using Zoho Creator Rest API
In this vedio you will get to see a brief explanation of how to create Authorization token, Get records using Zoho Creator Rest API, Generate Authtoken using postman.
Get Records API
A record is an entity which stores all the combined information of a particular contact or company, which is acquired from various sources. The information may be acquired from a web-form, social media services, advertisements etc. The records API allows the user to get, create, update, delete, or search records.
Important Notes
– The Authentication Token is user-specific and is a permanent token.
– The Authentication Token of a user’s account will become invalid if the user is deactivated.
– It is recommended that you note down your Authentication Token.
– Access and manage all the active secret auth tokens of your account by selecting Settings -> Active Authtokens in https://accounts.zoho.com
Token
Once the client application receives an authorization code, it can exchange for an access token by making the following request:
Request URL
https:///oauth/v2/token?grant_type=authorization_code&client_id=&client_secret=&redirect_uri=&code=
Request Method
POST
where,
– base_accounts_url: The base URL of your Zoho Account
For example, it’s accounts.zoho.com if your account belongs to Zoho’s US DC.
– client_id & client_secret: The client credentials that were generated when you registered the client application.
– redirect_uri: One of the authorized redirect URIs that you associated while registering the client application.
– code: The authorization code that was generated upon making the authorization request.
Understanding the response
The success or failure of the API will be conveyed in its response. The response of the generate token API will include:
– access_token
The access token that the requesting user will need to access the resources that correspond to the scopes that were included while making the authorization request.
– refresh_token
The refresh token that will be required to refresh the requesting user’s access token.
– expires_in
The time (in seconds) after which the access token will expire.
– api_domain
The domain where the API calls are to be made for the requesting user. Though the value will contain the zohoapis domain, the client application must use your Creator account’s base URL in its API requests. For example, if your account belongs to Zoho’s US DC, the client must make the API requests at creator.zoho.com
– token_type
This indicates the generated token’s type. The value Bearer indicates that it’s an access token.
Note
– An access token is valid for only an hour and can be used only to perform the operations defined by the scopes that were included while making the authorization request.
– A refresh token has no expiry. However, it can be revoked. It’s purpose is to refresh the access token upon its expiry.
– A maximum of five refresh tokens can be generated per minute.
https://www.youtube.com/embed/OFl9VuE7-tI