Authentication
App Builder API
Livechat API
Payment Gateway Plugin
Connect API
- Authentication Overview
- API Reference
- Get Profile
- List Categories
- List Available Apps
- Get App Information
- Connect Account
- Get Connected Account
- Popular Match List
- Popular Match Detail
- Get List Of Tiggers
- Trigger Detail By ID
- Get List Of Actions
- Action Detail By ID
- Create Connect With Popular Match
- List Drop Down Options
- Edit Trigger Options
- Edit Action Option
- Run Test Connect
- Turn On Connect
- Update Connect Name
- Check Connect History
- Connect List
- Turn Off Connect
- Delete Connect
Generate access token from refresh token
If an access token is expired this endpoint can be used with a grant_type
of refresh_token
and the refresh_token
stored for the user's access token.
Generate access token from refresh token
If it has been a while since you obtained your access token, all requests to Connect’s API will return an unauthorized error. To correct the error, you need to refresh your access token. This step works much like obtaining an access token. You will make a POST request to Connect’s token endpoint. This time specify a grant_type
of refresh_token
and you include your refresh token in the request (instead of the authorization code). The same rules apply to including your client credentials (client_id
and client_secret
).
Refresh token request URL
POST https://connectcloud.appypie.com/v1/oauth2/token
Required Parameters
Parameter Name | Required | Parameter Type | Parameter Description |
---|---|---|---|
client_id | Yes | String | The client ID of the application. |
client_secret | Yes | String | The client secret of the application. |
refresh_token | Yes | String | The refresh token associated with the expired access token. |
grant_type | Yes | String | The grant type of the token. E.g. -refresh_token |
Errors
Following are the error codes that indicate the success or failure of an API request:
Error Code | Meaning |
---|---|
400 | Bad Request -- Your request is invalid. |
401 | Unauthorized -- Your API key is wrong. |
403 | Forbidden -- The method requested is hidden for administrators only. |
404 | Not Found -- The specified method could not be found. |
405 | Method Not Allowed -- You tried to access a method with an invalid method. |
406 | Not Acceptable -- You requested a format that is not json. |
410 | Gone -- Request has been removed from our servers. |
429 | Too Many Requests |
500 | Internal Server Error -- We had a problem with our server. Try again later. |
503 | Service Unavailable -- We are temporarily offline for maintenance. Please try again later. |
2032 | API Key is required |
2034 | Email is required |
2036 | Invalid API Key |
2038 | Provide valid API Key |
2039 | Email already exists |
2040 | Phone already exists |
2041 | Email Invalid |
1wget --no-check-certificate --quiet \
2 --method POST \
3 --timeout=0 \
4 --header "ACCESSTOKEN: Access Token Key" \
5 --header "Content-Type: application/json" \
6 --body-data
7 '{
8 "client_id":"**********",
9 "client_secret":"**********",
10 "refresh_token":"eyJhbGciOiJIUzI1**************",
11 "grant_type":"refresh_token"
12 }' \
13 "https://connectcloud.appypie.com/v1/oauth2/token"
{ "access_token": "eyJhbGciOiJIUzI1*******************", "refresh_token": "eyJhbGciOiJIUzI********************", "expires_at": 1642508535, "type": "bearer" }