Skip to main content

System interaction

This page aims to explain the flow of how when accessing the Catalogue API by explaining the different types of Tokens and when to use which.

There are two different ways to access the Catalogue API. Which one you will use depends on if you are using a Private AccessToken or a Public AccessToken.

The main difference between a Private AccessToken and a Public AccessToken is that a Private AccessToken should never be used in your client code. You should have your own server which will use the Private AccessToken to authenticate users. This will make it possible for you to add more security around the authentication call.

Overview

A Public AccessToken can be used client side, which removes the need to setup your own server in order to keep the Token secret.

The first step is to obtain a SessionToken. When using a Public AccessToken this is done through the Catalogue API instead of the Catalogue Auth API. After having recieved a SessionToken the process is the same as for a Private AccessToken.

The following sequence diagram displays an overview for accessing Catalogue API with a Public AccessToken.

Diagram showing the authentication flow
SessionTokenIcon
SessionToken

Sent to and used by your app or website.

SessionTokenIcon
Public AccessToken

Sent to our server to authenticate. Can be used in the client.

Cache data

You are forbidden to cache api data on your servers. For more info read our FAQ.