Skip to content

Building an integration

Cadence fully support integrations via the REST API. Nearly everything that can be done via the staff or customer portals, can be done via the REST API.

The majority of endpoints in the Cadence REST API are protected, and require you to authenticate before using them. There are two ways to authenticate to the API: an API Key or OAuth tokens. If you’re just getting started, or plan to only use the integration within your organisation, API Keys are a good place to start. However, if you plan to use your integration across multiple organisations, or need higher configurable rate-limits, the OAuth method is recommended.

In your organisation, open Workspace Settings -> Integrations -> API Keys. From here you can view all current API Keys, revoke, rotate and create new keys. When creating a key, you can select it’s expiration date, and what resources/permissions it has access to.

OAuth support is still a work in progress, the documentation here reflects the intended pathway and will be updated over time.

When developing integrations for multiple organisations, the OAuth pathway allows organisations to consent and add your integration from within Cadence.

To begin, you’ll need to setup an account on our developer portal, and create an application.

After creating your application you can create and manage your applications secrets from the Credentials tab, and use these to authenticate to the API.

For testing, you can authenticate/authorise up to 5 “test” organisations from our sandbox environment. Some API Resources require extra approval, and you’ll need to request these from the developer portal.

Once your app is approved, you’ll be provided with a direct link, as well as listed in our marketplace.

Payments are not yet supported directly within our marketplace, but are on the roadmap - which will allow you to take payment/offer paid integrations without needing to setup your own payment pipeline.

Each organisation in Cadence is deployed on their own custom subdomain. If you’re developing an integration just for your organisation, you may use that base domain/api (ie https://acme.example.com/api/v1/) with the API Key authentication method. However, for projects using OAuth authentication, or requiring multi-organisation access you may also use our platform endpoint.

Instead of using a different domain per organisation, you can call https://au.platform.keja.co/api/v1, and use the same endpoints your normally would. However, every request will require a X-Tenant-ID header with the organisation’s tenant id. This can be found from the integration setting’s page, or when using the standard marketplace flow, your application will be provided the organisation’s tenant id (and region id/domain if different) during onboarding.

If an organisation has not authorised your application (or you attempt to access a resource for a scope that the organisation did not approve), your application will receive an error message and fail the request.