Connecting to AirCall
To authenticate to AirCall, you can use either Basic authentication or the OAuth standard. Use Basic to connect to your own data. In order to allow other users to access their data, use OAuth authentication.
Using Basic Authentication
To authenticate to Aircall via Basic authentication, you'll need to specify your API Key and API ID. You can find your API Key and ID under your company's setting in 'Add a new API Key'. Set the User connection property to your API ID and the Password connection property to your API Token.
Example connection string
Profile=C:\profiles\AirCall.apip;User=my_api_id;Password=my_api_token;
Using OAuth Authentication
You will first need to register an OAuth app with Aircall. To create an Aircall app, sign up at the following link: https://aircall.io/partners/registration/. You also need to provide the Redirect URL that will be associated with your app.
After setting the following in your connection string, you are ready to connect:
- AuthScheme: Set this to OAuth.
- OAuthClientId: Set this to the client_id that AirCall has sent to you.
- OAuthClientSecret: Set this to the client_secret that has sent to you.
- CallbackURL: Set this to the Redirect URL you specified when applied for an app with AirCall.
- InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to manage the process to obtain the OAuthAccessToken.
Example connection string
Profile=C:\profiles\AirCall.apip;Authscheme=OAuth;InitiateOAuth=GETANDREFRESH;OAuthClientId=your_client_id;OAuthClientSecret=your_client_secret;CallbackUrl=your_callback_url;
Connection Properties
The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider.
Property | Description |
AuthScheme | The scheme used for authentication. Accepted entries are Basic or OAuth. Allowed values are: BASIC, OAUTH |
CallbackURL | The OAuth callback URL to return to when authenticating. This value must match the callback URL you specify in your app settings. |
InitiateOAuth | Set this property to initiate the process to obtain or refresh the OAuth access token when you connect. Allowed values are: OFF, GETANDREFRESH, REFRESH |
OAuthClientId | The client Id assigned when you register your application with an OAuth authorization server. |
OAuthClientSecret | The client secret assigned when you register your application with an OAuth authorization server. |
Password | The password used to authenticate the user. |
User | The API user account used to authenticate. |