Skip to content

Full Setup Guide

Step1: Authenticate: Generate a Token

Client

POST /authenticate‚Äč/client

The response from successful authentication (status code 200) will return an authorization token. This token needs to be passed in the header ('authorization') for all other calls to the webservice.

Example request:

{
  "client_id": <string>,
  "client_secret": <string>
}

Example response:

{
  "access_token": "eyJhbG...",
  "expires_in": 3600,
  "token_type": "Bearer"
}

User

POST /authenticate‚Äč/user

When authenticating as a user, the response will include a set-cookie header with the token.

Example request:

{
  "email": <string>,
  "password": <string>
}

Example response:

{
  "id": <uuid string>,
  "tos_accepted": <boolean>
}