Skip to main content

Custom API Source Connector

The Custom API source connector in DataSync lets you connect to any REST API to extract and integrate data. To set up the connection, upload an API Profile file (.apip), table definitions (.rsd files), or both, and then fill in the required connection properties.

Once your source connection is ready, set up your destination connection to complete the configuration.

note

You need to create your API profile files (.apip or .rsd) before you configure a Custom API source connection. For more information, see Understand API Profile Structure, and Build a Custom API Profile.

Create a custom API source connection in DataSync

  1. Log in to DataSync.
  2. From the welcome screen, select Connections.
  3. Next to Source Connections, click New.
  4. Select Custom API.
  5. In the Connection Properties panel, enter the connection properties.
  6. (Optional) In the Additional Connection Properties panel, select Add property and enter the parameters for each property.
  7. In the Advanced Settings panel, configure the settings, including Tracking Type and any other values according your setup requires.
  8. Click Save.

Parameters

Connection properties

ParameterDescription
DescriptionUnique name for this API connection. For example: Custom API
Authentication TypeAuthentication method your API uses. Choose one of the following options:

VerbosityControls how much detail the connector writes to the log. Higher levels include everything from the level below, plus additional detail:

  • 1 – Queries, row counts, execution start and end, errors.
  • 2 – Everything in level 1, plus cache queries and HTTP headers.
  • 3 – Everything in level 2, plus request and response bodies.
  • 4 – Everything in level 3, plus transport-level communication.
  • 5 – Everything in level 4, plus all interface commands.
API ProfileUpload location for the API profile or table definition files. If you are using the client credentials method, see OAuth2 client credentials example.

HTTPS (Basic) additional connection properties

PropertyValue
OtherName-value pairs for additional provider options. Common examples:

  • DefaultColumnSize=number – Sets the default string length when the API metadata does not specify one (default is 2000).
  • ConvertDateTimeToGMT=true – Converts date-time values to GMT instead of local time.
  • RecordToFile=file name – Logs socket data transfers to the file you specify.
ProfileSettingsThe settings your data source requires, entered as a list separated by commas. For example: ProfileSettings='User=EmailId;Password=key';'Other=Domain=YourDomain'.

OAuth2 (authorization code) additional connection properties

Use this method when a user signs in through a browser and the authorization server redirects them back to your callback URL.

PropertyValue
OtherName-value pairs for additional provider options. Common examples:

  • DefaultColumnSize=number – Sets the default string length when the API metadata does not specify one (default is 2000).
  • ConvertDateTimeToGMT=true – Converts date-time values to GMT instead of local time.
  • RecordToFile=file name – Logs socket data transfers to the file you specify.
CallbackURLRedirect URL for OAuth2. This value must match the callback URL configured in your OAuth app settings. For example: https://.../OAuthCallback/CallbackUrl/....
OAuthClientIdCLient identifier assigned by your OAuth2 authorization server. For example: OAuthClientId=Unique Identifier key.
OAuthClientSecretSecret value assigned by your OAuth2 authorization server. Set the storage type to Encrypted. For example: OAuthClientSecret=password.
ScopePermission scope for your application. For example: Forms=Read.

OAuth2 (client credentials) additional connection properties

Use this method for system-to-system connections where no user sign-in is required and no callback URL is needed.

PropertyValue
OtherEnter OAuthIncludedCallbackURL=False.
AuthSchemeEnter OAuth.
OAuthClientIdClient identifier assigned by your OAuth2 authorization server.
OAuthClientSecretSecret value assigned by your OAuth2 authorization server. Set the storage type to Encrypted.
ScopeEnter the provider-specific scope. For example: employees.readonly.
InitiateOAuthEnter GETANDREFRESH.

Advanced settings

Advanced settings control how the Custom API connector tracks changes, handles time and regional configuration, and processes records during extraction. You should configure them to match your system environment for accurate and consistent results.

SettingDescription
Tracking TypeMethod the connector uses to track changes. Select None or Date.
RegionRegion for this connector, if your setup requires one.
Time ZoneTime zone of your Custom API application server. This value must match the time zone set in the API profile. A mismatch causes data to sync at the wrong time or return incorrect records.
Time OffsetOffset in seconds that compensates for timing differences during record selection. The minimum value is 0 and the maximum is 3600 seconds.
Batch SizeNumber of records the connector processes per batch during extraction. A larger batch size uses more memory but can improve performance. The default is 2000 records and the maximum is 10000. In most cases, the default works well. Adjust this value based on your network speed and available disk performance.