The Staffbase API is secured by HTTPS and Basic Authentication. For performing requests on our API you need to create an API token in the administration panel ( in your own organisation. This token needs to be added on every request within the Authorization header as follow:

Authorization: Basic {{insert-your-token-here}}

A plain HTTP request may look like:

GET /api/users HTTP/1.1
Authorization: Basic dGVzdDEyMzQ2Nzg6dGVzdDEyMzQ2Nzg=

When everything worked like expected you should receive an HTTP response with the status code 200 and a list of users. An example response could look like:

HTTP/1.1 200 OK
Content-Type: application/json