URL parameter (API key) authentication
- Last Updated: July 2, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Aha! 6.0
- Documentation
To configure the driver to use URL
parameter (API key) authentication:
- Set the ServerName property to specify the base URL of the Aha! service to which you want to issue requests. For example, company.aha.io.
- Set the AuthenticationMethod property to
UrlParameter. - Set the SecurityToken to specify the API key required to make a connection to your endpoint. API keys can be generated through the Aha! user interface. Refer to the Aha! documentation for more information.
- Optionally, specify values for any additional properties you want to configure.
The following examples demonstrate a string with URL parameter authentication enabled.
For a connection URL:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:aha://company.aha.io;authenticationMethod=UrlParameter;
securitytoken=1234abc5d6789efg;");
For a data source:
AutoRESTDataSource mds = new AhaDataSource();
mds.setDescription("My Aha Data Source");
mds.setServerName("company.aha.io");
mds.setAuthenticationMethod("UrlParameter");
mds.setSecurityToken("1234abc5d6789efg");