Quick Start

Good to know: A quick start guide can be good to help folks get up and running with your API in a few steps. Some people prefer diving in with the basics rather than meticulously reading every page of documentation!

API Authentication

Our API uses JWTs according to the RFC 7519 specification for authentication. There are two options for obtaining these tokens.

Getting your API keys

Please read through the below options, and speak with your CG client solutions engineer about obtaining staging & production authentication keys or credentials.

Pregenerated long-lived JWT tokens

We can generate long-lived JWT tokens with an expiry of several years for partners, which can be stored on the partner's platform and used in perpetuity, until they need to be re-created down the track.

Login to retrieve a short-lived JWT tokens

We can provide an API key and secret/password credentials, which you can then use with a "login" endpoint, to generate a more short-lived token, lasting up to 2 weeks. Ideally, this task would be automated and scheduled to occur at a regular interval, and the latest token stored, so that the entire process requires no manual intervention on your end.

For further details of this workflow, go to the "Login to obtain a JWT" page.

API Overview

This is a JSON REST API, which aims to be compatible with the JSON:API specification.

When making API requests, please use the application/json in the Content-type header.

In terms of authentication, please use the JWT as described above. Your should use it in the Authorization header like so:

Bearer <TOKEN>

Last updated