Authentication

Some resources require authentication to return valid data.

Resources requiring authentication will indicate this requirement, in order to pass this authentication a valid jwt-token for a user must be included in the Authentication header.

Failed authentication

When authentication fails a http status code 401 will be returned. The response body of the request will not contain the data key but a message key instead, this will contain a simple message specifying the error.

Header

Header Required Example
Authentication optional Bearer eyJ0eXAiOIUzI1NiJ9.eyJpc3MiOiJodHRwczGRkOTA2In0.nYptsbhEI6iYKE