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
Build an authorization URL
The Connect API uses the OAuth 2.0 specification for authentication.
Connecting your integration to an Connect customer account requires the use of OAuth 2.0. This step is required before you start making requests to Connect’s API in order to do things like add connect, add trigger, add action & Run Test. We use OAuth 2.0 in order to ensure that an integration has permission to access a given Connect account.
Step 1: Build an authorization URL
The first thing you’ll need to do is create a hyperlink to start the authorization process. This code provides Connect’s API with information such as which integration is making the request and what access the integration requires. Please review the example below:
Authorization Request URL
GET https://connectcloud.appypie.com/oAuth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_CALLBACK&scope=YOUR_REQUESTED_SCOPES&response_type=YOUR_RESPONSE_TYPE
Query Parameters
Parameter Name | Required | Parameter Type | Parameter Description |
---|---|---|---|
client_id | Yes | String | The client ID of the application. |
redirect_uri | Yes | String | redirect_uri is your callback. This is where the user-agent (in most cases the customer browser) will be sent after the customer clicks authorize. |
response_type | Yes | String | response_type tells Connect what you want us to send back. For this step you should always use code since you want an authorization code. |
scope | Yes | String | scope is a list of space separated permissions your integration requires. To change permissions later, all customers will need to repeat the authorization process. Please ensure you have the ones you need. Please use (*) |
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 GET \
3 --timeout=0 \
4 --header "ACCESSTOKEN: Access Token Key" \
5 --header "Content-Type: application/json" \
6 --body-data
7 '{
8 "client_id":"1*****",
9 "redirect_uri":"https://app.example.com",
10 "response_type":"code",
11 "scope":"*****"
12 }' \
13 "https://connectcloud.appypie.com/oAuth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_CALLBACK&scope=YOUR_REQUESTED_SCOPES&response_type=YOUR_RESPONSE_TYPE"
https://app.example.com/auth?code=YOUR_NEW_AUTH_CODE