API Authentication

Learn about Staffbase App / Intranet API authentication.

Employee App
Front Door Intranet

The Staffbase API is secured by HTTPS and basic authentication. Learn more about security at Staffbase website.

For performing requests on our API, you need the following from the API token page in the Staffbase Studio:

Create an API request

You need the base URL and the API token to create an API request.

Add base URL

You need to add the base URL as the host on every request within the authorization header.

For example,

Host: exampleapp.staffbase.com

Add API token

You need to add the API token on every request within the authorization header as follows:

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

Example of an API request

An example of a plain API request is as follows:

GET /api/users HTTP/1.1
Host: exampleapp.staffbase.com
Authorization: Basic dGVzdDEyMzQ2Nzg6dGVzdDEyMzQ2Nzg=

When the API request works as expected, you receive an HTTP response with the status code 200 and response data.
For example:

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4...